public IActionResult GetUserInfoById(int id) { tblUser userInfo = _userInfoService.Find(id); if (userInfo == null) { return(NotFound()); } else { return(new ObjectResult(userInfo)); } }
public JsonResult _ShowName(string AgentMudid) { var res = IUserInfoService.Find(AgentMudid); if (res != null) { return(Json(new { state = 1, ishave = 1, res })); } return(Json(new { state = 1, ishave = 0, txt = "不存在此MUDID" })); }
public JsonResult ShowSecondName(string AgentMudid) { var res = IUserInfoService.Find(AgentMudid); if (res != null) { var userId = res.UserId; var isHaveApproval = IUserInfoService.isSecondApproval(userId); var has = PreApprovalService.HasApprove(userId); if (isHaveApproval.ApprovalCount > 0 || has) { return(Json(new { state = 1, ishave = 1, res })); } else { return(Json(new { state = 1, ishave = 0, txt = "当前代理人不是二线经理,或没有审批权限,请重试!" })); } } return(Json(new { state = 1, ishave = 0, txt = "不存在此MUDID" })); }
public WP_QYUSER Find(string userId) { return(userInfoService.Find(userId)); }