Browse Source

1.皮阿诺数据接收逻辑修改

test
zhenghaoyu 2 years ago
parent
commit
bdfc932bfc
  1. 13
      blade-service/logpm-factory/src/main/java/com/logpm/factory/snm/service/impl/AsyncDataServiceImpl.java
  2. 20
      blade-service/logpm-factory/src/main/java/com/logpm/factory/snm/service/impl/PanFactoryDataServiceImpl.java

13
blade-service/logpm-factory/src/main/java/com/logpm/factory/snm/service/impl/AsyncDataServiceImpl.java

@ -177,7 +177,18 @@ public class AsyncDataServiceImpl implements IAsyncDataService {
}
Integer detailId = advanceDetailEntity.getId();
//TODO 这里还要确认是否需要
//查询包件明细
// List<DetailProductEntity> saveList = new ArrayList<>();
// QueryWrapper<PanPackageList> listQueryWrapper = new QueryWrapper<>();
// orderQueryWrapper.eq("package_id",detailId)
// .eq("is_deleted",0);
// List<PanPackageList> lists = panPackageListService.list(listQueryWrapper);
// for (PanPackageList panPackageList:lists){
// DetailProductEntity detailProductEntity = new DetailProductEntity();
// detailProductEntity.setUnitNo(panPackageInfo.getUnitNo());
// detailProductEntity.setProductcode(panPackageList.get);
//
// }
}

20
blade-service/logpm-factory/src/main/java/com/logpm/factory/snm/service/impl/PanFactoryDataServiceImpl.java

@ -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();

Loading…
Cancel
Save