public IHttpActionResult Get(string empNo, string loginName, string orgid, int userId, string fingtype) { BaseRequest <UserFilter> request = new BaseRequest <UserFilter> { Data = { LoginName = loginName, EmpNo = empNo, Findtype = fingtype, OrgId = orgid, UserId = userId } }; //有传入值就按传入的值来查,没有就按默认当前机构 if (string.IsNullOrEmpty(orgid)) { request.Data.OrgId = SecurityHelper.CurrentPrincipal.OrgId; } var response = usersService.CheckUserEmpAndLogName(request); return(Ok(response)); }