记得上下班打卡 | git大法好,push需谨慎

Commit b05a5a0b authored by 胡佳晨's avatar 胡佳晨

erp 发货同步

parent 5457116a
...@@ -357,14 +357,20 @@ public class WdtServiceImpl implements IGoblinErpService { ...@@ -357,14 +357,20 @@ public class WdtServiceImpl implements IGoblinErpService {
String orderCode = vo.getTid(); String orderCode = vo.getTid();
String mailNo = vo.getLogistics_no(); String mailNo = vo.getLogistics_no();
int recId = vo.getRec_id(); int recId = vo.getRec_id();
String code;
try {
ResponseDto<Boolean> response = goblinStoreOrderService.express("", null, mailNo, "ERP", orderCode); ResponseDto<Boolean> response = goblinStoreOrderService.express("", null, mailNo, "ERP", orderCode);
boolean result = response.getData(); code = response.getCode();
} catch (Exception e) {
e.printStackTrace();
code = "1";
}
LogisticsListParam ack = LogisticsListParam.getNew(); LogisticsListParam ack = LogisticsListParam.getNew();
ack.setRec_id(recId); ack.setRec_id(recId);
if(result){ if ("0".equals(code)) {
ack.setStatus(0); ack.setStatus(0);
ack.setMessage("正在现场物流同步成功"); ack.setMessage("正在现场物流同步成功");
}else{ } else {
ack.setStatus(1); ack.setStatus(1);
ack.setMessage("正在现场物流同步失败"); ack.setMessage("正在现场物流同步失败");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment