From e49f6dc1bbfa295b3740de2e3258a52410f83cb9 Mon Sep 17 00:00:00 2001 From: zhangsiqi <2825463979@qq.com> Date: Tue, 2 Jul 2024 19:22:40 +0800 Subject: [PATCH] =?UTF-8?q?[feat]=20=E6=B3=A8=E9=87=8A=E6=8E=89=E9=87=87?= =?UTF-8?q?=E8=B4=AD=E8=AE=A1=E5=88=92=E5=AD=90=E8=A1=A8=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E6=9D=83=E9=99=90=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/PurchasePlanChildController.java | 15 +++++++-------- .../service/impl/PurchasePlanServiceImpl.java | 2 ++ 2 files changed, 9 insertions(+), 8 deletions(-) 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); }