Commit 90413ed2 by ruyun.zhang

Merge branch 'feature/宜宾高县安全' into release/v23.2.19高县版

parents ab70f537 2872b5de
......@@ -356,7 +356,7 @@ public ApiResponse<UserResponse> UpdateUser([CustomizeValidator(RuleSet = "Updat
}
/// <summary>
/// 新增用户
/// 删除用户
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
......
......@@ -455,7 +455,8 @@ public UserResponse InsertUser(UserRequest request, int userid)
int[] roleArray = UnitTypeUtil.Maps.Keys.ToArray();
if (roleArray.Intersect(request.RoleArr).Any() && string.IsNullOrEmpty(request.Department))
throw new PerformanceException("二次绩效管理员科室不能为空");
//Md5小写加密
request.Password = PwdHelper.MD5AndSalt(request.Password);
var user = _mapper.Map<sys_user>(request);
user.CreateDate = DateTime.Now;
user.CreateUser = userid;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment