|
@@ -114,6 +114,7 @@ public class OyeWarehouseController extends BaseRESTfulController {
|
|
|
try {
|
|
|
// 成功
|
|
|
int result = oyeWarehouseService.addTransPlan(mapValue);
|
|
|
+ oyeWarehouseService.checkInventory(result, mapValue);
|
|
|
return success(result);
|
|
|
} catch (Exception e) {
|
|
|
// 失败
|
|
@@ -142,7 +143,8 @@ public class OyeWarehouseController extends BaseRESTfulController {
|
|
|
) {
|
|
|
saleOrderNo = map.get("saleOrderNo").toString();
|
|
|
count++;
|
|
|
- oyeWarehouseService.addTransPlan(map);
|
|
|
+ int result = oyeWarehouseService.addTransPlan(map);
|
|
|
+ oyeWarehouseService.checkInventory(result, map);
|
|
|
//根据销售订单ID再去查询汇总一遍
|
|
|
}
|
|
|
} catch (Exception e) {
|