|
|
|
@ -464,7 +464,18 @@ namespace _24Hour.Controllers
|
|
|
|
|
{ |
|
|
|
|
_db.BeginTran(); |
|
|
|
|
data.audit = 2; |
|
|
|
|
data.describe = ""; |
|
|
|
|
data.photo = "/CaseFile/resource/headicon.png"; |
|
|
|
|
data.name = UserModel.name; |
|
|
|
|
data.sex = UserModel.sex; |
|
|
|
|
data.phone = UserModel.phone; |
|
|
|
|
data.cardId = UserModel.cardId; |
|
|
|
|
data.identitycardId = UserModel.identitycardId; |
|
|
|
|
data.departmentName = UserModel.departmentName; |
|
|
|
|
data.Password = Elight.Utility.Encrypt.Md5.Encrypt32($"{UserModel.Password}").ToLower(); |
|
|
|
|
data.cardIdphoto = UserModel.cardIdphoto; |
|
|
|
|
data.identityphoto = UserModel.identityphoto; |
|
|
|
|
data.departmentPhoto = UserModel.departmentPhoto; |
|
|
|
|
var num = await _db.Updateable(data).IgnoreColumns(true).ExecuteCommandAsync(); |
|
|
|
|
_db.CommitTran(); |
|
|
|
|
if (num > 0) |
|
|
|
|