Browse Source

导入的预约信息设置默认值

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

3
24Hour/Controllers/Common/LawyerArchivesController.cs

@ -1841,7 +1841,7 @@ namespace _24Hour.Controllers.Common
lawyersvc.legalAidPhoto = legalAidPhotos; lawyersvc.legalAidPhoto = legalAidPhotos;
lawyersvc.relationshipProofPhoto = relationshipProofPhotos; lawyersvc.relationshipProofPhoto = relationshipProofPhotos;
lawyersvc.otherPhoto = otherPhotos; lawyersvc.otherPhoto = otherPhotos;
lawyersvc.IsAssigned = false;
_db.BeginTran(); _db.BeginTran();
var num = await _db.Insertable(lawyersvc).ExecuteCommandAsync(); var num = await _db.Insertable(lawyersvc).ExecuteCommandAsync();
_db.CommitTran(); _db.CommitTran();
@ -1860,6 +1860,7 @@ namespace _24Hour.Controllers.Common
svc.legalAidPhoto = legalAidPhotos; svc.legalAidPhoto = legalAidPhotos;
svc.relationshipProofPhoto = relationshipProofPhotos; svc.relationshipProofPhoto = relationshipProofPhotos;
svc.otherPhoto = otherPhotos; svc.otherPhoto = otherPhotos;
svc.IsAssigned = false;
_db.BeginTran(); _db.BeginTran();
var num = await _db.Updateable(svc) var num = await _db.Updateable(svc)
.UpdateColumns(x => new .UpdateColumns(x => new

Loading…
Cancel
Save