| | |
| | | [Obsolete] |
| | | public async Task<int> AcceptAppointmentDeliver(int KeiId) |
| | | { |
| | | throw Oops.Oh("已经启用"); |
| | | throw Oops.Oh("已经弃用"); |
| | | if (!(KeiId > 0)) |
| | | throw Oops.Oh("Keyid不能为空"); |
| | | |
| | |
| | | //强制增加员工过滤 |
| | | RefAsync<int> totle = 0; |
| | | var data = await _client.Queryable<OA_DeliverPlanPaiche>().Includes(x => x.Car,car=>car.Staff).Includes(x => x.SentStaff).Includes(x=>x.DeliverPlans) |
| | | .Where(SearchList).OrderBy(x => x.DeliverTime).OrderBy(x => x.Sort).Mapper(x => |
| | | .Where(SearchList).OrderBy(x => x.DeliverTime).OrderBy(x => x.DriverId).Mapper(x => |
| | | { |
| | | if (x.Car?.Staff != null) |
| | | { |
| | | x.Car.CarNumber = x.Car.CarNumber + "(" + x.Car.Staff.Name + ")"; |
| | | x.Car.Staff = null; |
| | | } |
| | | }).ToPageListAsync(Param.page.PageIndex, Param.page.PageSize, totle); |
| | | }).ToPageListAsync(Param.page.PageIndex, Param.page.PageSize, totle); |
| | | |
| | | Param.page.TotalCount = totle; |
| | | return new DeliverOderPageRet |