Browse Source

同步时同步单位编码

develop
胡超1 2 years ago
parent
commit
de68649df3
  1. 6
      24Hour/Controllers/Common/LawyerArchivesController.cs

6
24Hour/Controllers/Common/LawyerArchivesController.cs

@ -1646,7 +1646,7 @@ namespace _24Hour.Controllers.Common
userim.cardIdphoto = cardids; userim.cardIdphoto = cardids;
userim.identityphoto = files; userim.identityphoto = files;
userim.departmentPhoto = departments; userim.departmentPhoto = departments;
userim.unitCode = _userdata.unitCode;
_db.BeginTran(); _db.BeginTran();
var num = await _db.Insertable(userim).ExecuteCommandAsync(); var num = await _db.Insertable(userim).ExecuteCommandAsync();
_db.CommitTran(); _db.CommitTran();
@ -1656,13 +1656,15 @@ namespace _24Hour.Controllers.Common
user.cardIdphoto = cardids; user.cardIdphoto = cardids;
user.identityphoto = files; user.identityphoto = files;
user.departmentPhoto = departments; user.departmentPhoto = departments;
user.unitCode = _userdata.unitCode;
_db.BeginTran(); _db.BeginTran();
var num = await _db.Updateable(user) var num = await _db.Updateable(user)
.UpdateColumns(x => new .UpdateColumns(x => new
{ {
x.cardIdphoto, x.cardIdphoto,
x.identityphoto, x.identityphoto,
x.departmentPhoto x.departmentPhoto,
x.unitCode,
}) })
.IgnoreColumns(ignoreAllNullColumns: true) .IgnoreColumns(ignoreAllNullColumns: true)
.ExecuteCommandAsync(); .ExecuteCommandAsync();

Loading…
Cancel
Save