|
@@ -410,13 +410,17 @@ public class SupplyChainServiceImpl implements ISupplyChainService {
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public void updateOrder(JSONObject eventJSon) {
|
|
public void updateOrder(JSONObject eventJSon) {
|
|
|
|
+ try {
|
|
|
|
+ JSONObject info = eventJSon.getJSONObject("info");
|
|
|
|
+ if (!Check.isNull(info)) {
|
|
|
|
+ Long oid = info.getLong("oid");
|
|
|
|
+ Long cpsOrderStatus = info.getLong("cpsOrderStatus");
|
|
|
|
+ supplyChainMapper.updateOrder(oid, cpsOrderStatus);
|
|
|
|
+ log.info("订单ID:{},状态:{} 修改成功", oid, cpsOrderStatus);
|
|
|
|
+ }
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
+ e.printStackTrace();
|
|
|
|
|
|
- JSONObject info = eventJSon.getJSONObject("info");
|
|
|
|
- if (!Check.isNull(info)) {
|
|
|
|
- Long oid = info.getLong("oid");
|
|
|
|
- Long cpsOrderStatus = info.getLong("cpsOrderStatus");
|
|
|
|
- supplyChainMapper.updateOrder(oid, cpsOrderStatus);
|
|
|
|
- log.info("订单ID:{},状态:{} 修改成功", oid, cpsOrderStatus);
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|