|
|
|
@ -17,7 +17,6 @@ import org.springframework.stereotype.Component;
|
|
|
|
|
|
|
|
|
|
import java.io.IOException; |
|
|
|
|
import java.util.Map; |
|
|
|
|
import java.util.Objects; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -48,7 +47,7 @@ public class DealWithDataHandler {
|
|
|
|
|
String unitNo = orderStatusDTO.getUnitNo(); |
|
|
|
|
String operationTime = orderStatusDTO.getOperationTime(); |
|
|
|
|
Integer trayId = orderStatusDTO.getTrayId(); |
|
|
|
|
if ("4".equals(status)) { |
|
|
|
|
if ("4".equals(status) || "2".equals(status)) { |
|
|
|
|
//继续判断是否到达目的仓
|
|
|
|
|
String currentWarehouseId = orderStatusDTO.getCurrentWarehouse();//当前仓Id
|
|
|
|
|
//查询destinationWarehouse logiBillNo plantId数据
|
|
|
|
@ -68,11 +67,16 @@ public class DealWithDataHandler {
|
|
|
|
|
} else { |
|
|
|
|
//真正的处理需要的数据
|
|
|
|
|
try { |
|
|
|
|
panFactoryDataService.handleDataToPlatform(unitNo, operationTime); |
|
|
|
|
//同步打托数据
|
|
|
|
|
if(!Objects.isNull(trayId)){ |
|
|
|
|
factoryCommonService.syncTrayTypeData(unitNo,trayId,currentWarehouseId); |
|
|
|
|
if ("4".equals(status)) { |
|
|
|
|
panFactoryDataService.handleDataToPlatform(unitNo, operationTime); |
|
|
|
|
}else if("2".equals(status)){ |
|
|
|
|
// //同步打托数据
|
|
|
|
|
// if(!Objects.isNull(trayId)){
|
|
|
|
|
// factoryCommonService.syncTrayTypeData(unitNo,trayId,currentWarehouseId);
|
|
|
|
|
// }
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} catch (Exception e) { |
|
|
|
|
e.printStackTrace(); |
|
|
|
|
} |
|
|
|
|