丽知:组装单优化,存货分配加休眠时间避免并发问题
This commit is contained in:
parent
bb11543592
commit
f7210e574d
|
@ -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);
|
||||
}
|
||||
//过滤日志
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue