|
|
@ -1079,7 +1079,7 @@ namespace _24Hour.Controllers.Common |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
await UploadPhoto(lawyer.identityphoto, "1423000000100"); |
|
|
|
await UploadPhoto(lawyer.identityphoto, "1423000000100"); |
|
|
|
await UploadPhoto(lawyer.departmentPhoto, "1423000000200"); |
|
|
|
await UploadPhoto(lawyersvc.departmentPhoto, "1423000000200"); |
|
|
|
await UploadPhoto(lawyersvc.annex, "1423000000300"); |
|
|
|
await UploadPhoto(lawyersvc.annex, "1423000000300"); |
|
|
|
await UploadPhoto(lawyersvc.legalAidPhoto, "1423000000400"); |
|
|
|
await UploadPhoto(lawyersvc.legalAidPhoto, "1423000000400"); |
|
|
|
await UploadPhoto(lawyer.cardIdphoto, "1423000000500"); |
|
|
|
await UploadPhoto(lawyer.cardIdphoto, "1423000000500"); |
|
|
@ -1824,7 +1824,7 @@ namespace _24Hour.Controllers.Common |
|
|
|
{ |
|
|
|
{ |
|
|
|
userim.cardIdphoto = cardids; |
|
|
|
userim.cardIdphoto = cardids; |
|
|
|
userim.identityphoto = files; |
|
|
|
userim.identityphoto = files; |
|
|
|
userim.departmentPhoto = departments; |
|
|
|
|
|
|
|
userim.unitCode = _userdata.unitCode; |
|
|
|
userim.unitCode = _userdata.unitCode; |
|
|
|
userim.identity = "律师"; |
|
|
|
userim.identity = "律师"; |
|
|
|
userim.IsDeleted = 0; |
|
|
|
userim.IsDeleted = 0; |
|
|
@ -1836,7 +1836,6 @@ namespace _24Hour.Controllers.Common |
|
|
|
{ |
|
|
|
{ |
|
|
|
user.cardIdphoto = cardids; |
|
|
|
user.cardIdphoto = cardids; |
|
|
|
user.identityphoto = files; |
|
|
|
user.identityphoto = files; |
|
|
|
user.departmentPhoto = departments; |
|
|
|
|
|
|
|
user.unitCode = _userdata.unitCode; |
|
|
|
user.unitCode = _userdata.unitCode; |
|
|
|
user.identity = "律师"; |
|
|
|
user.identity = "律师"; |
|
|
|
user.IsDeleted = 0; |
|
|
|
user.IsDeleted = 0; |
|
|
@ -1846,7 +1845,6 @@ namespace _24Hour.Controllers.Common |
|
|
|
{ |
|
|
|
{ |
|
|
|
x.cardIdphoto, |
|
|
|
x.cardIdphoto, |
|
|
|
x.identityphoto, |
|
|
|
x.identityphoto, |
|
|
|
x.departmentPhoto, |
|
|
|
|
|
|
|
x.unitCode, |
|
|
|
x.unitCode, |
|
|
|
x.identity, |
|
|
|
x.identity, |
|
|
|
x.IsDeleted |
|
|
|
x.IsDeleted |
|
|
@ -1894,6 +1892,14 @@ namespace _24Hour.Controllers.Common |
|
|
|
.ToList() |
|
|
|
.ToList() |
|
|
|
.ConvertToJsonStr(); |
|
|
|
.ConvertToJsonStr(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var departmentPhoto = Path.Combine(ziplawyersvcs, lawyersvc.Id, "departmentPhoto"); |
|
|
|
|
|
|
|
var departmentPhotos = new DirectoryInfo(departmentPhoto) |
|
|
|
|
|
|
|
.GetFiles() |
|
|
|
|
|
|
|
.Select(x => "/CaseFile/imports/" + Path.GetRelativePath(dir, x.FullName) |
|
|
|
|
|
|
|
.Replace(@"\", @"/")) |
|
|
|
|
|
|
|
.ToList() |
|
|
|
|
|
|
|
.ConvertToJsonStr(); |
|
|
|
|
|
|
|
|
|
|
|
if (svc == null) |
|
|
|
if (svc == null) |
|
|
|
{ |
|
|
|
{ |
|
|
|
var lawyer = await _db.Queryable<App_Sys_UserModel>() |
|
|
|
var lawyer = await _db.Queryable<App_Sys_UserModel>() |
|
|
@ -1908,6 +1914,7 @@ namespace _24Hour.Controllers.Common |
|
|
|
lawyersvc.legalAidPhoto = legalAidPhotos; |
|
|
|
lawyersvc.legalAidPhoto = legalAidPhotos; |
|
|
|
lawyersvc.relationshipProofPhoto = relationshipProofPhotos; |
|
|
|
lawyersvc.relationshipProofPhoto = relationshipProofPhotos; |
|
|
|
lawyersvc.otherPhoto = otherPhotos; |
|
|
|
lawyersvc.otherPhoto = otherPhotos; |
|
|
|
|
|
|
|
lawyersvc.departmentPhoto = departmentPhotos; |
|
|
|
lawyersvc.IsAssigned = false; |
|
|
|
lawyersvc.IsAssigned = false; |
|
|
|
_db.BeginTran(); |
|
|
|
_db.BeginTran(); |
|
|
|
var num = await _db.Insertable(lawyersvc).ExecuteCommandAsync(); |
|
|
|
var num = await _db.Insertable(lawyersvc).ExecuteCommandAsync(); |
|
|
@ -2027,6 +2034,7 @@ namespace _24Hour.Controllers.Common |
|
|
|
packetPhotoField(item?.legalAidPhoto, "legalAidPhoto"); |
|
|
|
packetPhotoField(item?.legalAidPhoto, "legalAidPhoto"); |
|
|
|
packetPhotoField(item?.relationshipProofPhoto, "relationshipProofPhoto"); |
|
|
|
packetPhotoField(item?.relationshipProofPhoto, "relationshipProofPhoto"); |
|
|
|
packetPhotoField(item?.otherPhoto, "otherPhoto"); |
|
|
|
packetPhotoField(item?.otherPhoto, "otherPhoto"); |
|
|
|
|
|
|
|
packetPhotoField(item?.departmentPhoto, "departmentPhoto"); |
|
|
|
} |
|
|
|
} |
|
|
|
//存储用户的相关附件 |
|
|
|
//存储用户的相关附件 |
|
|
|
foreach (var item in users) |
|
|
|
foreach (var item in users) |
|
|
@ -2062,19 +2070,19 @@ namespace _24Hour.Controllers.Common |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var departmentPhotos = item.departmentPhoto.ConvertToModel<List<string>>(); |
|
|
|
////var departmentPhotos = item.departmentPhoto.ConvertToModel<List<string>>(); |
|
|
|
var departmentPhotosDir = Path.Combine(userdir, "departmentPhotos"); |
|
|
|
////var departmentPhotosDir = Path.Combine(userdir, "departmentPhotos"); |
|
|
|
if (Directory.Exists(departmentPhotosDir) == false) Directory.CreateDirectory(departmentPhotosDir); |
|
|
|
////if (Directory.Exists(departmentPhotosDir) == false) Directory.CreateDirectory(departmentPhotosDir); |
|
|
|
foreach (var file in departmentPhotos) |
|
|
|
////foreach (var file in departmentPhotos) |
|
|
|
{ |
|
|
|
////{ |
|
|
|
//var filepath = Path.Combine(Environment.CurrentDirectory, "wwwroot") + file.Replace("/", @"\"); |
|
|
|
//// //var filepath = Path.Combine(Environment.CurrentDirectory, "wwwroot") + file.Replace("/", @"\"); |
|
|
|
var urlpath = file.Split('/'); |
|
|
|
//// var urlpath = file.Split('/'); |
|
|
|
var filepath = Path.Combine(Environment.CurrentDirectory, "wwwroot", Path.Combine(urlpath)); |
|
|
|
//// var filepath = Path.Combine(Environment.CurrentDirectory, "wwwroot", Path.Combine(urlpath)); |
|
|
|
if (System.IO.File.Exists(filepath)) |
|
|
|
//// if (System.IO.File.Exists(filepath)) |
|
|
|
{ |
|
|
|
//// { |
|
|
|
System.IO.File.Copy(filepath, Path.Combine(departmentPhotosDir, Path.GetFileName(filepath)), true); |
|
|
|
//// System.IO.File.Copy(filepath, Path.Combine(departmentPhotosDir, Path.GetFileName(filepath)), true); |
|
|
|
} |
|
|
|
//// } |
|
|
|
} |
|
|
|
////} |
|
|
|
} |
|
|
|
} |
|
|
|
logger.LogInformation("step4"); |
|
|
|
logger.LogInformation("step4"); |
|
|
|
ZipFile.CreateFromDirectory(packegdir, packegzipname); |
|
|
|
ZipFile.CreateFromDirectory(packegdir, packegzipname); |
|
|
|