|
|
|
@ -104,17 +104,19 @@ public class PanFactoryDataServiceImpl implements IPanFactoryDataService {
|
|
|
|
|
QueryWrapper<PanFactoryOrder> queryWrapper = new QueryWrapper<>(); |
|
|
|
|
queryWrapper.eq("order_no",orderNo); |
|
|
|
|
PanFactoryOrder panFactoryOrder = factoryOrderService.getOne(queryWrapper); |
|
|
|
|
if(Objects.isNull(panFactoryOrder)){ |
|
|
|
|
logger.info("#############handleData: 合同自编码orderNo={}",orderNo); |
|
|
|
|
throw new CustomerException(400,"未找到订单数据"); |
|
|
|
|
} |
|
|
|
|
String plantId = panFactoryOrder.getPlantId();//工厂id
|
|
|
|
|
String deliveryNumber = panFactoryOrder.getDeliveryNumber(); |
|
|
|
|
orderInfoDTO.setPlantId(plantId); |
|
|
|
|
orderInfoDTO.setDeliveryNumber(deliveryNumber); |
|
|
|
|
|
|
|
|
|
QueryWrapper<PanFactoryOrder> panFactoryOrderQueryWrapper = new QueryWrapper<>(); |
|
|
|
|
panFactoryOrderQueryWrapper.eq("order_no",orderNo); |
|
|
|
|
PanFactoryOrder one = panFactoryOrderService.getOne(panFactoryOrderQueryWrapper); |
|
|
|
|
if(Objects.isNull(one)){ |
|
|
|
|
logger.info("#############handleData: 合同自编码orderNo={}",orderNo); |
|
|
|
|
throw new CustomerException(400,"未找到订单数据"); |
|
|
|
|
//判断数据是都已存在
|
|
|
|
|
if(!orderInfoDTO.verifyData()){ |
|
|
|
|
logger.info("#############handleData: 数据不齐全 orderInfoDTO={}",orderInfoDTO); |
|
|
|
|
throw new CustomerException(400,"数据不齐全"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//拼接参数
|
|
|
|
@ -124,12 +126,6 @@ public class PanFactoryDataServiceImpl implements IPanFactoryDataService {
|
|
|
|
|
Gson gson = new GsonBuilder().setPrettyPrinting().create(); |
|
|
|
|
String s = gson.toJson(map); |
|
|
|
|
|
|
|
|
|
//判断数据是都已存在
|
|
|
|
|
if(!orderInfoDTO.verifyData()){ |
|
|
|
|
logger.info("#############handleData: 数据不齐全 orderInfoDTO={}",orderInfoDTO); |
|
|
|
|
throw new CustomerException(400,"数据不齐全"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//先获取token
|
|
|
|
|
String panToken = getPanToken(); |
|
|
|
|
|
|
|
|
|