diff --git a/api_v1/Appointment.Repository/ApptRepo.cs b/api_v1/Appointment.Repository/ApptRepo.cs index 06c3b25..37236cd 100644 --- a/api_v1/Appointment.Repository/ApptRepo.cs +++ b/api_v1/Appointment.Repository/ApptRepo.cs @@ -1431,7 +1431,8 @@ namespace Appointment.Repository DateTime now = DateTime.Now; - var userList =await Db.Queryable().ToListAsync().Replace(); + var userList =await Db.Queryable().ToListAsync(); + userList = userList.Replace(); var user = userList.Where(t => t.OpId == appt.Info.UserId).FirstOrDefault(); if (user == null && user.Locked == "T") return ApiResult.Failed("生成正式预订失败,提交人不存在!"); diff --git a/api_v1/Appointment.Repository/ApptRepoJNC.cs b/api_v1/Appointment.Repository/ApptRepoJNC.cs index 76d0606..119984e 100644 --- a/api_v1/Appointment.Repository/ApptRepoJNC.cs +++ b/api_v1/Appointment.Repository/ApptRepoJNC.cs @@ -1662,7 +1662,8 @@ namespace Appointment.Repository if (req.ToUserAccounts == null || req.ToUserAccounts.Length <= 0) return ApiResult.Failed("操作失败,未选择抄送人!"); - var userList = await Db.Queryable().Where(t => t.Locked == "F").In(t => t.OpId, req.ToUserAccounts).ToListAsync().Replace(); + var userList = await Db.Queryable().Where(t => t.Locked == "F").In(t => t.OpId, req.ToUserAccounts).ToListAsync(); + userList = userList.Replace(); if (userList.Count != req.ToUserAccounts.Length) { List notUser = new List(); @@ -3619,7 +3620,8 @@ namespace Appointment.Repository string AppId = BaseConfig.App(new string[] { "WeChatService", "AppId" }); string Hotelid = BaseConfig.App(new string[] { "Hotelid" }); string appId = BaseConfig.App(new string[] { "WeChat", "AppId" });// 小程序的appid - var userAll = await Db.Queryable().ToListAsync().Replace(); + var userAll = await Db.Queryable().ToListAsync(); + userAll = userAll.Replace(); var userCreate = userAll.Where(t => t.OpId == summary.UserId).FirstOrDefault(); if (userCreate == null) return new ApiResult { Code = 500, Msg = "用户信息不存在" }; List createUserOpenid = new List() { userCreate.WxServiceId };