丽知:组装单优化,存货分配加休眠时间避免并发问题

This commit is contained in:
zhengyf 2024-10-25 23:19:44 +08:00
parent bb11543592
commit f7210e574d
2 changed files with 5 additions and 3 deletions

View File

@ -178,13 +178,14 @@ public class AdjustInZZPluginInitializer extends PluginBaseEntity {
* 按单号
*/
public void start(String stockinNo) {
String[] split = stockinNo.split("_");
try {
QueryOfsStockinOrderRequestVO queryOfsStockinOrderRequestVO = new QueryOfsStockinOrderRequestVO();
queryOfsStockinOrderRequestVO.setCode(stockinNo);
queryOfsStockinOrderRequestVO.setCode(split[0]);
List<StockinOrderSearchResponse.StockinOrder> stockinOrders = queryOfsStockinOrder(queryOfsStockinOrderRequestVO);
if (stockinOrders.size() == 0) {
if (stockinOrders==null||stockinOrders.size() == 0) {
Assert.state(false, "丽知OFS调整入库(组装入库)--->U8C组装订单根据单据号[入库完成]{},未查询到调整出库单", stockinNo);
}
//过滤日志
@ -217,7 +218,7 @@ public class AdjustInZZPluginInitializer extends PluginBaseEntity {
queryOfsStockinOrderRequestVO.setClosedAt_end(end);
List<StockinOrderSearchResponse.StockinOrder> stockinOrders = queryOfsStockinOrder(queryOfsStockinOrderRequestVO);
if (stockinOrders.size() == 0) {
if (stockinOrders==null||stockinOrders.size() == 0) {
Assert.state(false, "丽知OFS调整入库(组装入库)--->U8C组装订单根据日期期间[开始时间]-[结束时间]{}-{},未查询到调整入库单[入库完成]", startTime, endTime);
}
//过滤日志

View File

@ -165,6 +165,7 @@ public class GoodsAutoAllotPluginInitializer extends PluginBaseEntity {
public void start(String invcode) {
String[] split = invcode.split("_");
try {
Thread.sleep(500);
BdInvbasdocEntity bdInvbasdocEntity = new BdInvbasdocEntity();
bdInvbasdocEntity.setInvcode(split[0]);
bdInvbasdocEntity.setDataSourceCode(ProfilesActiveConstant.LETS_DATE_SOURCE);