diff --git a/ruoyi-admin/src/main/java/com/ruoyi/purchase/controller/PurchasePlanChildController.java b/ruoyi-admin/src/main/java/com/ruoyi/purchase/controller/PurchasePlanChildController.java index 52910238..ad81f0c9 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/purchase/controller/PurchasePlanChildController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/purchase/controller/PurchasePlanChildController.java @@ -34,7 +34,6 @@ public class PurchasePlanChildController extends BaseController @Autowired private IPurchasePlanChildService purchasePlanChildService; - @RequiresPermissions("purchase:purchasePlanChild:view") @GetMapping() public String purchasePlanChild() { @@ -44,7 +43,7 @@ public class PurchasePlanChildController extends BaseController /** * 查询采购计划单物料信息列表 */ - @RequiresPermissions("purchase:purchasePlanChild:list") +// @RequiresPermissions("purchase:purchasePlanChild:list") @PostMapping("/list") @ResponseBody public TableDataInfo list(PurchasePlanChild purchasePlanChild) @@ -57,7 +56,7 @@ public class PurchasePlanChildController extends BaseController /** * 导出采购计划单物料信息列表 */ - @RequiresPermissions("purchase:purchasePlanChild:export") +// @RequiresPermissions("purchase:purchasePlanChild:export") @Log(title = "采购计划单物料信息", businessType = BusinessType.EXPORT) @PostMapping("/export") @ResponseBody @@ -80,7 +79,7 @@ public class PurchasePlanChildController extends BaseController /** * 新增保存采购计划单物料信息 */ - @RequiresPermissions("purchase:purchasePlanChild:add") +// @RequiresPermissions("purchase:purchasePlanChild:add") @Log(title = "采购计划单物料信息", businessType = BusinessType.INSERT) @PostMapping("/add") @ResponseBody @@ -103,7 +102,7 @@ public class PurchasePlanChildController extends BaseController /** * 修改保存采购计划单物料信息 */ - @RequiresPermissions("purchase:purchasePlanChild:edit") +// @RequiresPermissions("purchase:purchasePlanChild:edit") @Log(title = "采购计划单物料信息", businessType = BusinessType.UPDATE) @PostMapping("/edit") @ResponseBody @@ -115,7 +114,7 @@ public class PurchasePlanChildController extends BaseController /** * 删除采购计划单物料信息 */ - @RequiresPermissions("purchase:purchasePlanChild:remove") +// @RequiresPermissions("purchase:purchasePlanChild:remove") @Log(title = "采购计划单物料信息", businessType = BusinessType.DELETE) @PostMapping( "/remove") @ResponseBody @@ -127,7 +126,7 @@ public class PurchasePlanChildController extends BaseController /** * 作废采购计划单物料信息 */ - @RequiresPermissions("purchase:purchasePlanChild:cancel") +// @RequiresPermissions("purchase:purchasePlanChild:cancel") @Log(title = "采购计划单物料信息", businessType = BusinessType.CANCEL) @GetMapping( "/cancel/{id}") @ResponseBody @@ -138,7 +137,7 @@ public class PurchasePlanChildController extends BaseController /** * 恢复采购计划单物料信息 */ - @RequiresPermissions("purchase:purchasePlanChild:restore") +// @RequiresPermissions("purchase:purchasePlanChild:restore") @Log(title = "采购计划单物料信息", businessType = BusinessType.RESTORE) @GetMapping( "/restore/{id}") @ResponseBody diff --git a/ruoyi-admin/src/main/java/com/ruoyi/purchase/service/impl/PurchasePlanServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/purchase/service/impl/PurchasePlanServiceImpl.java index dbd40f0d..0aaa86ee 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/purchase/service/impl/PurchasePlanServiceImpl.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/purchase/service/impl/PurchasePlanServiceImpl.java @@ -81,6 +81,8 @@ public class PurchasePlanServiceImpl implements IPurchasePlanService String loginName = ShiroUtils.getLoginName(); purchasePlan.setCreateBy(loginName); purchasePlan.setCreateTime(DateUtils.getNowDate()); + purchasePlan.setMaterialAmount(0L); + purchasePlan.setMaterialSum(0L); return purchasePlanMapper.insertPurchasePlan(purchasePlan); }