|
|
|
@ -40,10 +40,10 @@ public class FactoryCommonServiceImpl implements IFactoryCommonService {
|
|
|
|
|
|
|
|
|
|
//先判断是否两个数据已经执行完成
|
|
|
|
|
String ruku = bladeRedis.get("arrive-"+unitNo); |
|
|
|
|
String tray = bladeRedis.get("tray-"+unitNo); |
|
|
|
|
trayId = bladeRedis.get("tray-"+unitNo); |
|
|
|
|
|
|
|
|
|
if(StringUtil.isBlank(ruku) || StringUtil.isBlank(tray)){ |
|
|
|
|
log.error("###############syncTrayTypeData: 数据不完整,暂不打托 ruku={} tray={}",ruku,tray); |
|
|
|
|
if(StringUtil.isBlank(ruku) || Objects.isNull(trayId)){ |
|
|
|
|
log.error("###############syncTrayTypeData: 数据不完整,暂不打托 ruku={} trayId={}",ruku,trayId); |
|
|
|
|
throw new CustomerException(403,"数据不完整,暂不打托"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -60,6 +60,7 @@ public class FactoryCommonServiceImpl implements IFactoryCommonService {
|
|
|
|
|
//判断托盘是否已经存在
|
|
|
|
|
BasicdataTrayEntity basicdataTrayEntity = basicdataTrayClient.getTrayByTrayCode("T" + trayId); |
|
|
|
|
if(Objects.isNull(basicdataTrayEntity)){ |
|
|
|
|
log.info("############syncTrayTypeData: 托盘信息不存在"); |
|
|
|
|
//如果托盘不存在就去同步该托盘
|
|
|
|
|
TrayEntity trayEntity = trayClient.getTrayById(trayId); |
|
|
|
|
basicdataTrayEntity = new BasicdataTrayEntity(); |
|
|
|
|