|
@@ -167,7 +167,7 @@ public class OrderInfoServiceImpl extends ServiceImpl<OrderInfoMapper, OrderInfo
|
|
|
newsInfoService.addNewsInfo(newsInfo);
|
|
|
//个推
|
|
|
geTuiUtils.initGeTui(newsInfo.getReCommonId());
|
|
|
- geTuiUtils.pushByCid(newsInfo.getNewsTitle(),newsInfo.getNewsContent(),newsInfo.getReCommonId());
|
|
|
+ geTuiUtils.pushByCid(newsInfo.getNewsTitle(), newsInfo.getNewsContent(), newsInfo.getReCommonId());
|
|
|
//给平台发送消息
|
|
|
NewsInfo newsInfo1 = new NewsInfo();
|
|
|
newsInfo1.setReCommonId("84f62127b7384dcdbaeaddfe460329fc");
|
|
@@ -188,7 +188,7 @@ public class OrderInfoServiceImpl extends ServiceImpl<OrderInfoMapper, OrderInfo
|
|
|
newsInfoService.addNewsInfo(newsInfo2);
|
|
|
//个推
|
|
|
geTuiUtils.initGeTui(newsInfo2.getReCommonId());
|
|
|
- geTuiUtils.pushByCid(newsInfo2.getNewsTitle(),newsInfo2.getNewsContent(),newsInfo2.getReCommonId());
|
|
|
+ geTuiUtils.pushByCid(newsInfo2.getNewsTitle(), newsInfo2.getNewsContent(), newsInfo2.getReCommonId());
|
|
|
}
|
|
|
}
|
|
|
});
|
|
@@ -533,7 +533,7 @@ public class OrderInfoServiceImpl extends ServiceImpl<OrderInfoMapper, OrderInfo
|
|
|
newsInfoService.addNewsInfo(newsInfo);
|
|
|
//个推
|
|
|
geTuiUtils.initGeTui(newsInfo.getReCommonId());
|
|
|
- geTuiUtils.pushByCid(newsInfo.getNewsTitle(),newsInfo.getNewsContent(),newsInfo.getReCommonId());
|
|
|
+ geTuiUtils.pushByCid(newsInfo.getNewsTitle(), newsInfo.getNewsContent(), newsInfo.getReCommonId());
|
|
|
}
|
|
|
//货主终止
|
|
|
else if ("2".equals(orderInfo.getTerminator())) {
|
|
@@ -554,7 +554,7 @@ public class OrderInfoServiceImpl extends ServiceImpl<OrderInfoMapper, OrderInfo
|
|
|
newsInfoService.addNewsInfo(newsInfo);
|
|
|
//个推
|
|
|
geTuiUtils.initGeTui(newsInfo.getReCommonId());
|
|
|
- geTuiUtils.pushByCid(newsInfo.getNewsTitle(),newsInfo.getNewsContent(),newsInfo.getReCommonId());
|
|
|
+ geTuiUtils.pushByCid(newsInfo.getNewsTitle(), newsInfo.getNewsContent(), newsInfo.getReCommonId());
|
|
|
}
|
|
|
//平台终止
|
|
|
else {
|
|
@@ -573,7 +573,7 @@ public class OrderInfoServiceImpl extends ServiceImpl<OrderInfoMapper, OrderInfo
|
|
|
newsInfoService.addNewsInfo(newsInfo);
|
|
|
//个推
|
|
|
geTuiUtils.initGeTui(newsInfo.getReCommonId());
|
|
|
- geTuiUtils.pushByCid(newsInfo.getNewsTitle(),newsInfo.getNewsContent(),newsInfo.getReCommonId());
|
|
|
+ geTuiUtils.pushByCid(newsInfo.getNewsTitle(), newsInfo.getNewsContent(), newsInfo.getReCommonId());
|
|
|
|
|
|
// 向货主发送信息
|
|
|
NewsInfo newsInfo1 = new NewsInfo();
|
|
@@ -587,7 +587,7 @@ public class OrderInfoServiceImpl extends ServiceImpl<OrderInfoMapper, OrderInfo
|
|
|
newsInfoService.addNewsInfo(newsInfo1);
|
|
|
//个推
|
|
|
geTuiUtils.initGeTui(newsInfo1.getReCommonId());
|
|
|
- geTuiUtils.pushByCid(newsInfo1.getNewsTitle(),newsInfo1.getNewsContent(),newsInfo1.getReCommonId());
|
|
|
+ geTuiUtils.pushByCid(newsInfo1.getNewsTitle(), newsInfo1.getNewsContent(), newsInfo1.getReCommonId());
|
|
|
}
|
|
|
orderInfo1.setOrderStatusKey(StatusEnum.DRIVER_ORDER_END.getFlag());
|
|
|
orderInfo1.setOrderStatus(StatusEnum.DRIVER_ORDER_END.getName());
|
|
@@ -1006,7 +1006,7 @@ public class OrderInfoServiceImpl extends ServiceImpl<OrderInfoMapper, OrderInfo
|
|
|
newsInfoService.addNewsInfo(newsInfo);
|
|
|
//个推
|
|
|
geTuiUtils.initGeTui(newsInfo.getReCommonId());
|
|
|
- geTuiUtils.pushByCid(newsInfo.getNewsTitle(),newsInfo.getNewsContent(),newsInfo.getReCommonId());
|
|
|
+ geTuiUtils.pushByCid(newsInfo.getNewsTitle(), newsInfo.getNewsContent(), newsInfo.getReCommonId());
|
|
|
}
|
|
|
//驳回
|
|
|
else {
|
|
@@ -1028,7 +1028,7 @@ public class OrderInfoServiceImpl extends ServiceImpl<OrderInfoMapper, OrderInfo
|
|
|
newsInfoService.addNewsInfo(newsInfo);
|
|
|
//个推
|
|
|
geTuiUtils.initGeTui(newsInfo.getReCommonId());
|
|
|
- geTuiUtils.pushByCid(newsInfo.getNewsTitle(),newsInfo.getNewsContent(),newsInfo.getReCommonId());
|
|
|
+ geTuiUtils.pushByCid(newsInfo.getNewsTitle(), newsInfo.getNewsContent(), newsInfo.getReCommonId());
|
|
|
}
|
|
|
this.updateById(orderInfo1);
|
|
|
}
|
|
@@ -1117,6 +1117,34 @@ public class OrderInfoServiceImpl extends ServiceImpl<OrderInfoMapper, OrderInfo
|
|
|
return "ng";
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 查询运单园区上报结果
|
|
|
+ *
|
|
|
+ * @param orderInfo
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ @Transactional(rollbackFor = Exception.class)
|
|
|
+ public String queryOrderResult(OrderInfo orderInfo) throws IOException {
|
|
|
+ //获取token
|
|
|
+ String token = EntityAnalyse.GetJTToken(ENV);
|
|
|
+ //上报运单信息校验结果查询
|
|
|
+ orderInfo.setToken(token);
|
|
|
+ if ("通过".equals(EntityAnalyse.waybillCheck(orderInfo, ENV))) {
|
|
|
+ orderInfo.setEscalationStatusKey(StatusEnum.ADOPTED.getFlag());
|
|
|
+ orderInfo.setEscalationStatus(StatusEnum.ADOPTED.getName());
|
|
|
+ } else if ("待校验".equals(EntityAnalyse.waybillCheck(orderInfo, ENV))) {
|
|
|
+ orderInfo.setEscalationStatusKey(StatusEnum.UNDER_REVIEW.getFlag());
|
|
|
+ orderInfo.setEscalationStatus(StatusEnum.UNDER_REVIEW.getName());
|
|
|
+ } else {
|
|
|
+ orderInfo.setEscalationStatusKey(StatusEnum.NOT_ADOPT.getFlag());
|
|
|
+ orderInfo.setEscalationStatus(StatusEnum.NOT_ADOPT.getName());
|
|
|
+ orderInfo.setEscalationFailureReason(EntityAnalyse.waybillCheck(orderInfo, ENV));
|
|
|
+ }
|
|
|
+ this.updateById(orderInfo);
|
|
|
+ return "ok";
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 运单园区批量上报
|
|
|
*
|
|
@@ -1162,7 +1190,7 @@ public class OrderInfoServiceImpl extends ServiceImpl<OrderInfoMapper, OrderInfo
|
|
|
if (hyCarrierInfo != null) {
|
|
|
orderInfo1.setDeliveryTime(hyCarrierInfo.getLoadingDate());
|
|
|
orderInfo1.setReceivingTime(hyCarrierInfo.getUnloadingDate());
|
|
|
- orderInfo1.setGrossWeight(hyCarrierInfo.getLoadingGrossWeight());
|
|
|
+ orderInfo1.setWeight(hyCarrierInfo.getLoadingWeight());
|
|
|
orderInfo1.setVolume(hyCarrierInfo.getVolume());
|
|
|
orderInfo1.setPackageNumber(hyCarrierInfo.getPackageNumber());
|
|
|
orderInfo1.setLoadingDate(hyCarrierInfo.getLoadingDate());
|
|
@@ -1229,8 +1257,8 @@ public class OrderInfoServiceImpl extends ServiceImpl<OrderInfoMapper, OrderInfo
|
|
|
// }
|
|
|
// }
|
|
|
// }).start();
|
|
|
- try {
|
|
|
- String result = EntityAnalyse.uploadWaybill(orderInfo1,ENV);
|
|
|
+ try {
|
|
|
+ String result = EntityAnalyse.uploadWaybill(orderInfo1, ENV);
|
|
|
if ("1001".equals(result)) {
|
|
|
//更改上报状态
|
|
|
orderInfo1.setEscalationStatusKey(StatusEnum.UNDER_REVIEW.getFlag());
|
|
@@ -1922,7 +1950,7 @@ public class OrderInfoServiceImpl extends ServiceImpl<OrderInfoMapper, OrderInfo
|
|
|
hyCarrierInfo.setContractNo(orderInfo1.getContractNo());
|
|
|
hyCarrierInfo.setEstimatedFreight(orderInfo1.getFreight());
|
|
|
hyCarrierInfo.setLoadingDate(orderInfo.getTranStartDate());
|
|
|
- hyCarrierInfo.setLoadingWeight(Double.valueOf(orderInfo.getWeight()));
|
|
|
+ hyCarrierInfo.setLoadingWeight(orderInfo.getWeight());
|
|
|
hyCarrierInfo.setLoadingGrossWeight(Double.valueOf(orderInfo.getGrossWeight()));
|
|
|
//更新签名图片
|
|
|
commonUser.setSignImg(orderInfo.getDriverAutograph());
|