|
@@ -2219,6 +2219,8 @@ public class SupplyChainController extends BaseController {
|
|
|
supplyChainService.updateOrder(eventJSon);
|
|
|
} else if ("kwaishop_distribute_activity_item_change".equals(event)) {
|
|
|
supplyChainService.updateItem(eventJSon);
|
|
|
+ } else if ("kwaishop_distribution_regimentalOrder".equals(event)) {
|
|
|
+ supplyChainService.insertOrder(eventJSon);
|
|
|
}
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
@@ -2328,17 +2330,6 @@ public class SupplyChainController extends BaseController {
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
- @PostMapping(value = "/test111")
|
|
|
- @ApiOperation(value = "---------测试")
|
|
|
- public Map<String, Object> test111(@RequestBody JSONObject eventsEncoded) {
|
|
|
-
|
|
|
- supplyChainService.insertOrder(eventsEncoded);
|
|
|
- Map<String, Object> result = new HashMap<>();
|
|
|
- result.put("result", 1);
|
|
|
- return result;
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
@PostMapping(value = "/dfcAccept")
|
|
|
public Map<String, Object> dfcAccept(@RequestBody String eventsEncoded) {
|
|
|
try {
|
|
@@ -2355,6 +2346,8 @@ public class SupplyChainController extends BaseController {
|
|
|
supplyChainService.updateOrder(eventJSon);
|
|
|
} else if ("kwaishop_distribute_activity_item_change".equals(event)) {
|
|
|
supplyChainService.updateItem(eventJSon);
|
|
|
+ } else if ("kwaishop_distribution_regimentalOrder".equals(event)) {
|
|
|
+ supplyChainService.insertOrder(eventJSon);
|
|
|
}
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
@@ -2389,6 +2382,8 @@ public class SupplyChainController extends BaseController {
|
|
|
supplyChainService.updateOrder(eventJSon);
|
|
|
} else if ("kwaishop_distribute_activity_item_change".equals(event)) {
|
|
|
supplyChainService.updateItem(eventJSon);
|
|
|
+ } else if ("kwaishop_distribution_regimentalOrder".equals(event)) {
|
|
|
+ supplyChainService.insertOrder(eventJSon);
|
|
|
}
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
@@ -2423,6 +2418,8 @@ public class SupplyChainController extends BaseController {
|
|
|
supplyChainService.updateOrder(eventJSon);
|
|
|
} else if ("kwaishop_distribute_activity_item_change".equals(event)) {
|
|
|
supplyChainService.updateItem(eventJSon);
|
|
|
+ } else if ("kwaishop_distribution_regimentalOrder".equals(event)) {
|
|
|
+ supplyChainService.insertOrder(eventJSon);
|
|
|
}
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
@@ -2457,6 +2454,8 @@ public class SupplyChainController extends BaseController {
|
|
|
supplyChainService.updateOrder(eventJSon);
|
|
|
} else if ("kwaishop_distribute_activity_item_change".equals(event)) {
|
|
|
supplyChainService.updateItem(eventJSon);
|
|
|
+ } else if ("kwaishop_distribution_regimentalOrder".equals(event)) {
|
|
|
+ supplyChainService.insertOrder(eventJSon);
|
|
|
}
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
@@ -2491,6 +2490,8 @@ public class SupplyChainController extends BaseController {
|
|
|
supplyChainService.updateOrder(eventJSon);
|
|
|
} else if ("kwaishop_distribute_activity_item_change".equals(event)) {
|
|
|
supplyChainService.updateItem(eventJSon);
|
|
|
+ } else if ("kwaishop_distribution_regimentalOrder".equals(event)) {
|
|
|
+ supplyChainService.insertOrder(eventJSon);
|
|
|
}
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
@@ -2525,6 +2526,8 @@ public class SupplyChainController extends BaseController {
|
|
|
supplyChainService.updateOrder(eventJSon);
|
|
|
} else if ("kwaishop_distribute_activity_item_change".equals(event)) {
|
|
|
supplyChainService.updateItem(eventJSon);
|
|
|
+ } else if ("kwaishop_distribution_regimentalOrder".equals(event)) {
|
|
|
+ supplyChainService.insertOrder(eventJSon);
|
|
|
}
|
|
|
}
|
|
|
} catch (Exception e) {
|