Commit ad1e990a authored by liudong1993's avatar liudong1993

1

parent 2bc0e534
...@@ -1132,7 +1132,7 @@ namespace Property.WebApi.Controllers.User ...@@ -1132,7 +1132,7 @@ namespace Property.WebApi.Controllers.User
x.BranchId, x.BranchId,
BranchName = x.BranchId==-1?"通用": CacheManager.User.BranchReidsCache.GetBranch(x.BranchId)?.BName ?? "", BranchName = x.BranchId==-1?"通用": CacheManager.User.BranchReidsCache.GetBranch(x.BranchId)?.BName ?? "",
x.Enabled, x.Enabled,
WeekdayList = x.WeekdayList.Select(x => new WeekdayList = x.WeekdayList.OrderBy(x=>x.Id).Select(x => new
{ {
x.Id, x.Id,
x.ApplyforId, x.ApplyforId,
...@@ -1270,13 +1270,13 @@ namespace Property.WebApi.Controllers.User ...@@ -1270,13 +1270,13 @@ namespace Property.WebApi.Controllers.User
Model.Id, Model.Id,
Model.BranchId, Model.BranchId,
BranchName = CacheManager.User.BranchReidsCache.GetBranch(Model.BranchId)?.BName ?? "", BranchName = CacheManager.User.BranchReidsCache.GetBranch(Model.BranchId)?.BName ?? "",
WeekdayList = Model.WeekdayList.Select(x => new WeekdayList = Model.WeekdayList.OrderBy(x=>x.Id).Select(x => new
{ {
x.Weekday, x.Weekday,
x.StartTime, x.StartTime,
x.EndTime x.EndTime
}), }),
SpecialList = Model.SpecialList.Select(x => new SpecialList = Model.SpecialList.OrderBy(x=>x.Date).Select(x => new
{ {
Date = x.Date.Value.ToString("yyyy-MM-dd"), Date = x.Date.Value.ToString("yyyy-MM-dd"),
x.StartTime, x.StartTime,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment