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

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

erp 发货同步

parent 5457116a
......@@ -357,14 +357,20 @@ public class WdtServiceImpl implements IGoblinErpService {
String orderCode = vo.getTid();
String mailNo = vo.getLogistics_no();
int recId = vo.getRec_id();
ResponseDto<Boolean> response = goblinStoreOrderService.express("", null, mailNo, "ERP", orderCode);
boolean result = response.getData();
String code;
try {
ResponseDto<Boolean> response = goblinStoreOrderService.express("", null, mailNo, "ERP", orderCode);
code = response.getCode();
} catch (Exception e) {
e.printStackTrace();
code = "1";
}
LogisticsListParam ack = LogisticsListParam.getNew();
ack.setRec_id(recId);
if(result){
if ("0".equals(code)) {
ack.setStatus(0);
ack.setMessage("正在现场物流同步成功");
}else{
} else {
ack.setStatus(1);
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