Browse Source

1.欧派获取收货数据逻辑修改

training
zhenghaoyu 1 year ago
parent
commit
e3cbb3e94d
  1. 8
      blade-service/logpm-factory/src/main/java/com/logpm/factory/oupai/service/impl/OuPaiFactoryServiceImpl.java

8
blade-service/logpm-factory/src/main/java/com/logpm/factory/oupai/service/impl/OuPaiFactoryServiceImpl.java

@ -281,7 +281,11 @@ public class OuPaiFactoryServiceImpl implements IOuPaiFactoryService {
log.info("############handleData: 数据处理开始");
analyzeData(resultArray);
opOrderStatusLogEntity.setDataStatus(1);
} catch (Exception e) {
} catch (CustomerException e) {
log.error(">>>> error {}", e.getMessage());
opOrderStatusLogEntity.setDataStatus(2);
}catch (Exception e) {
log.error(">>>> error {}", e.getMessage());
opOrderStatusLogEntity.setDataStatus(2);
@ -312,6 +316,8 @@ public class OuPaiFactoryServiceImpl implements IOuPaiFactoryService {
String type = valueObject.getString("Type");
if ("中转".equals(type)) {
receivingOrderEntity.setType(1);
log.warn("############handleData: 中转到货暂不接收");
throw new CustomerException(403,"中转到货暂不接收");
} else if ("配送".equals(type)) {
receivingOrderEntity.setType(2);
} else {

Loading…
Cancel
Save