feat(purchase): 更新采购订单状态过滤逻辑
- 将审计时间改为最后更新时间 - 过滤掉状态为 100、500、510 的订单 - 只推送状态为 700 和 900 的订单到 U8C
This commit is contained in:
parent
ff5c8adae5
commit
aae67832b7
|
@ -217,8 +217,10 @@ public class ProxyPurchaseWarehousOrder extends PluginBaseEntity {
|
|||
//不需要采购订单对应的状态放在接口里查询,和杨运确认过,如果采购订单在订单池,那么不会有审核时间,除了订单池+订单关闭状态,其他状态都可以理解为审批状态
|
||||
List<OfsPoOrderData> allOfsPoOrderList = new ArrayList<>();
|
||||
QueryOfsSoSaleOutVo queryOfsSoSaleOutVo = new QueryOfsSoSaleOutVo();
|
||||
queryOfsSoSaleOutVo.setAuditAt_start(startTime);
|
||||
queryOfsSoSaleOutVo.setAuditAt_end(endTime);
|
||||
// queryOfsSoSaleOutVo.setAuditAt_start(startTime);
|
||||
// queryOfsSoSaleOutVo.setAuditAt_end(endTime);
|
||||
queryOfsSoSaleOutVo.setLastUpdated_start(startTime);
|
||||
queryOfsSoSaleOutVo.setLastUpdated_end(endTime);
|
||||
queryOfsSoSaleOutVo.setClientCode("LETS");
|
||||
queryOfsSoSaleOutVo.setPageNo(1L);
|
||||
// queryOfsSoSaleOutVo.setStatus(900L);
|
||||
|
@ -236,6 +238,12 @@ public class ProxyPurchaseWarehousOrder extends PluginBaseEntity {
|
|||
if (filter_company.contains(header.getCompanyCode().trim())) {
|
||||
return true;
|
||||
}
|
||||
//2025年5月23日17:51:14
|
||||
//如果采购订单状态为:100订单池、500待同步、510已同步则过滤掉
|
||||
//700收货中,900入库完成 则推送到U8C
|
||||
if (!"700,900".contains(header.getStatus())) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue