Browse Source

重复导入时,将已删除的预约信息恢复

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

11
24Hour/Controllers/Common/LawyerArchivesController.cs

@ -29,12 +29,14 @@ using System.Data;
using System.IO.Compression;
using System.Linq;
using System.Net.WebSockets;
using System.Runtime.InteropServices;
using System.Text;
using static _24Hour.TwentySystemProxyClient;
using static com.sun.tools.@internal.xjc.reader.xmlschema.bindinfo.BIConversion;
using static NPOI.HSSF.Util.HSSFColor;
using Exception = System.Exception;
using Path = System.IO.Path;
using StringBuilder = System.Text.StringBuilder;
using User = Elight.Utility.User;
namespace _24Hour.Controllers.Common
@ -1810,6 +1812,7 @@ namespace _24Hour.Controllers.Common
userim.departmentPhoto = departments;
userim.unitCode = _userdata.unitCode;
userim.identity = "律师";
userim.IsDeleted = 0;
_db.BeginTran();
var num = await _db.Insertable(userim).ExecuteCommandAsync();
_db.CommitTran();
@ -1821,6 +1824,7 @@ namespace _24Hour.Controllers.Common
user.departmentPhoto = departments;
user.unitCode = _userdata.unitCode;
user.identity = "律师";
user.IsDeleted = 0;
_db.BeginTran();
var num = await _db.Updateable(user)
.UpdateColumns(x => new
@ -1829,7 +1833,8 @@ namespace _24Hour.Controllers.Common
x.identityphoto,
x.departmentPhoto,
x.unitCode,
x.identity
x.identity,
x.IsDeleted
})
.IgnoreColumns(ignoreAllNullColumns: true)
.ExecuteCommandAsync();
@ -1908,6 +1913,7 @@ namespace _24Hour.Controllers.Common
svc.relationshipProofPhoto = relationshipProofPhotos;
svc.otherPhoto = otherPhotos;
svc.IsAssigned = false;
svc.IsDeleted = 0;
_db.BeginTran();
var num = await _db.Updateable(svc)
.UpdateColumns(x => new
@ -1916,7 +1922,8 @@ namespace _24Hour.Controllers.Common
x.createuserId,
x.relationshipProofPhoto,
x.otherPhoto,
x.legalAidPhoto
x.legalAidPhoto,
x.IsDeleted
})
.IgnoreColumns(ignoreAllNullColumns: true)
.ExecuteCommandAsync();

Loading…
Cancel
Save