Browse Source

代码优化

develop
胡超1 2 years ago
parent
commit
673cffb766
  1. 7
      24Hour/Controllers/Common/LawyerArchivesController.cs

7
24Hour/Controllers/Common/LawyerArchivesController.cs

@ -1871,7 +1871,7 @@ namespace _24Hour.Controllers.Common
try try
{ {
var lawyerarchives = await _db.Queryable<App_LawyerServicesModel>() var lawyerarchives = await _db.Queryable<App_LawyerServicesModel>()
.In(info => info.Id, ids) .Where(x => ids.Contains(x.Id))
.ToListAsync(); .ToListAsync();
var userids = lawyerarchives var userids = lawyerarchives
.Select(x => x.createuserId) .Select(x => x.createuserId)
@ -1896,7 +1896,10 @@ namespace _24Hour.Controllers.Common
{ {
lawyerservices = lawyerarchives, lawyerservices = lawyerarchives,
users = users users = users
}.ConvertToJsonStr().ConvertToBase64(); }
.ConvertToJsonStr()
.ConvertToBase64();
System.IO.File.WriteAllText(jsonfilepath, jsonstr); System.IO.File.WriteAllText(jsonfilepath, jsonstr);
//存储预约申请的相关附件 //存储预约申请的相关附件
foreach (var item in lawyerarchives) foreach (var item in lawyerarchives)

Loading…
Cancel
Save