Browse Source

[feat] 注释掉采购计划子表查询显示权限字段

dev
zhangsiqi 5 months ago
parent
commit
e49f6dc1bb
  1. 15
      ruoyi-admin/src/main/java/com/ruoyi/purchase/controller/PurchasePlanChildController.java
  2. 2
      ruoyi-admin/src/main/java/com/ruoyi/purchase/service/impl/PurchasePlanServiceImpl.java

15
ruoyi-admin/src/main/java/com/ruoyi/purchase/controller/PurchasePlanChildController.java

@ -34,7 +34,6 @@ public class PurchasePlanChildController extends BaseController
@Autowired @Autowired
private IPurchasePlanChildService purchasePlanChildService; private IPurchasePlanChildService purchasePlanChildService;
@RequiresPermissions("purchase:purchasePlanChild:view")
@GetMapping() @GetMapping()
public String purchasePlanChild() public String purchasePlanChild()
{ {
@ -44,7 +43,7 @@ public class PurchasePlanChildController extends BaseController
/** /**
* 查询采购计划单物料信息列表 * 查询采购计划单物料信息列表
*/ */
@RequiresPermissions("purchase:purchasePlanChild:list") // @RequiresPermissions("purchase:purchasePlanChild:list")
@PostMapping("/list") @PostMapping("/list")
@ResponseBody @ResponseBody
public TableDataInfo list(PurchasePlanChild purchasePlanChild) 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) @Log(title = "采购计划单物料信息", businessType = BusinessType.EXPORT)
@PostMapping("/export") @PostMapping("/export")
@ResponseBody @ResponseBody
@ -80,7 +79,7 @@ public class PurchasePlanChildController extends BaseController
/** /**
* 新增保存采购计划单物料信息 * 新增保存采购计划单物料信息
*/ */
@RequiresPermissions("purchase:purchasePlanChild:add") // @RequiresPermissions("purchase:purchasePlanChild:add")
@Log(title = "采购计划单物料信息", businessType = BusinessType.INSERT) @Log(title = "采购计划单物料信息", businessType = BusinessType.INSERT)
@PostMapping("/add") @PostMapping("/add")
@ResponseBody @ResponseBody
@ -103,7 +102,7 @@ public class PurchasePlanChildController extends BaseController
/** /**
* 修改保存采购计划单物料信息 * 修改保存采购计划单物料信息
*/ */
@RequiresPermissions("purchase:purchasePlanChild:edit") // @RequiresPermissions("purchase:purchasePlanChild:edit")
@Log(title = "采购计划单物料信息", businessType = BusinessType.UPDATE) @Log(title = "采购计划单物料信息", businessType = BusinessType.UPDATE)
@PostMapping("/edit") @PostMapping("/edit")
@ResponseBody @ResponseBody
@ -115,7 +114,7 @@ public class PurchasePlanChildController extends BaseController
/** /**
* 删除采购计划单物料信息 * 删除采购计划单物料信息
*/ */
@RequiresPermissions("purchase:purchasePlanChild:remove") // @RequiresPermissions("purchase:purchasePlanChild:remove")
@Log(title = "采购计划单物料信息", businessType = BusinessType.DELETE) @Log(title = "采购计划单物料信息", businessType = BusinessType.DELETE)
@PostMapping( "/remove") @PostMapping( "/remove")
@ResponseBody @ResponseBody
@ -127,7 +126,7 @@ public class PurchasePlanChildController extends BaseController
/** /**
* 作废采购计划单物料信息 * 作废采购计划单物料信息
*/ */
@RequiresPermissions("purchase:purchasePlanChild:cancel") // @RequiresPermissions("purchase:purchasePlanChild:cancel")
@Log(title = "采购计划单物料信息", businessType = BusinessType.CANCEL) @Log(title = "采购计划单物料信息", businessType = BusinessType.CANCEL)
@GetMapping( "/cancel/{id}") @GetMapping( "/cancel/{id}")
@ResponseBody @ResponseBody
@ -138,7 +137,7 @@ public class PurchasePlanChildController extends BaseController
/** /**
* 恢复采购计划单物料信息 * 恢复采购计划单物料信息
*/ */
@RequiresPermissions("purchase:purchasePlanChild:restore") // @RequiresPermissions("purchase:purchasePlanChild:restore")
@Log(title = "采购计划单物料信息", businessType = BusinessType.RESTORE) @Log(title = "采购计划单物料信息", businessType = BusinessType.RESTORE)
@GetMapping( "/restore/{id}") @GetMapping( "/restore/{id}")
@ResponseBody @ResponseBody

2
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(); String loginName = ShiroUtils.getLoginName();
purchasePlan.setCreateBy(loginName); purchasePlan.setCreateBy(loginName);
purchasePlan.setCreateTime(DateUtils.getNowDate()); purchasePlan.setCreateTime(DateUtils.getNowDate());
purchasePlan.setMaterialAmount(0L);
purchasePlan.setMaterialSum(0L);
return purchasePlanMapper.insertPurchasePlan(purchasePlan); return purchasePlanMapper.insertPurchasePlan(purchasePlan);
} }

Loading…
Cancel
Save