调整同步状态

This commit is contained in:
18942506660
2023-12-01 11:11:16 +08:00
parent 5f6d1d0de0
commit 8c37838402
11 changed files with 155 additions and 57 deletions

View File

@@ -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(),

View File

@@ -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();