调整同步状态
This commit is contained in:
@@ -141,7 +141,12 @@ namespace WMS.Web.Repositories
|
||||
if (dto.Type != null)
|
||||
query = query.Where(w => w.order.Type == (OutStockType)dto.Type);
|
||||
if (dto.SuccessSync != null)
|
||||
query = query.Where(w => w.order.SuccessSync == dto.SuccessSync);
|
||||
{
|
||||
if (dto.SuccessSync == true)
|
||||
query = query.Where(w => w.order.SuccessSync == SyncStatus.Success);
|
||||
else
|
||||
query = query.Where(w => w.order.SuccessSync != SyncStatus.Success);
|
||||
}
|
||||
if (dto.DeliveryOrgId != null)
|
||||
query = query.Where(w => w.order.DeliveryOrgId == dto.DeliveryOrgId);
|
||||
if (!string.IsNullOrEmpty(dto.StockCode))
|
||||
@@ -160,7 +165,7 @@ namespace WMS.Web.Repositories
|
||||
Type = s.order.Type.GetRemark(),
|
||||
Creator = _singleDataService.GetSingleData(SingleAction.Staffs, _loginRepositories.CompanyId, s.order.CreatorId),
|
||||
CreateTime = s.order.CreateTime.DateToStringSeconds(),
|
||||
SuccessSync = s.order.SuccessSync == true ? "成功" : "失败",
|
||||
SuccessSync = s.order.SuccessSync == SyncStatus.Success ? "成功" : "失败",
|
||||
Stock = _singleDataService.GetSingleData(SingleAction.StocksJoinOrgCode, _loginRepositories.CompanyId, s.order.StockCode + s.order.OrgCode),
|
||||
SourceBillNoList = s.detail.ErpDetails.Select(s => s.SourceBillNo).ToList(),
|
||||
SaleBillNoList = s.detail.ErpDetails.Select(s => s.SaleBillNo).ToList(),
|
||||
|
||||
@@ -207,7 +207,7 @@ namespace WMS.Web.Repositories
|
||||
Remark = s.Remark,
|
||||
Creator = _singleDataService.GetSingleData(SingleAction.Staffs, _loginRepositories.CompanyId, s.CreatorId),
|
||||
Date = s.Date.DateToStringSeconds(),
|
||||
SuccessSync = s.SuccessSync==true?"成功":"失败",
|
||||
SuccessSync = s.SuccessSync== SyncStatus.Success ? "成功":"失败",
|
||||
#endregion
|
||||
|
||||
}).Skip((dto.PageNo - 1) * dto.PageSize).Take(dto.PageSize).ToListAsync();
|
||||
|
||||
Reference in New Issue
Block a user