Commit 404347cf by 陈浩建

智能平台定时获取订单原因msg存库

parent c6c82e27
......@@ -81,7 +81,7 @@ public class OrderTask {
OrderHistory orderHistory = new OrderHistory();
orderHistory.setOrderId(order.getId());
orderHistory.setCreateDate(new Date());
orderHistory.setStatus("智能平台状态获取");
orderHistory.setStatus("智能平台状态获取:"+json.get("stateName").toString());
// 未获取到需要的状态不做更新
if ("待配送".equals(json.get("stateName")) || "物流配送中".equals(json.get("stateName"))
......@@ -91,10 +91,11 @@ public class OrderTask {
update.setThStatus(json.get("orderStatus").toString());
update.setOrderStatus("待配送");
update.setMsg(json.get("stateName").toString());
orderMapper.updateById(update);
} else if (json.get("stateName").equals("待图片审核") || json.get("stateName").equals("作废")) {
orderHistory.setStatus(json.getString("orderStatus"));
orderHistory.setStatus(json.getString("orderStatus")+";"+json.getString("stateName"));
orderHistoryMapper.insert(orderHistory);
update.setThStatus(json.get("stateName").toString());
update.setMsg(json.getString("stateName"));
......@@ -157,6 +158,7 @@ public class OrderTask {
update.setThStatus(json.get("orderStatus").toString());
update.setOrderStatus("异常单");
update.setMsg(json.get("stateName").toString());
orderMapper.updateById(update);
}
}
......
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