权限完善

This commit is contained in:
张松
2025-03-17 10:24:42 +08:00
parent 84af37e459
commit 55e6b218d9
3 changed files with 11 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
package com.czg.controller.admin;
import com.czg.annotation.SaStaffCheckPermission;
import com.czg.log.annotation.OperationLog;
import com.czg.product.dto.ConsStockFlowDTO;
import com.czg.product.param.ConsCheckStockParam;
@@ -34,6 +35,7 @@ public class ConsStockFlowController {
*/
@PostMapping("in")
@OperationLog("耗材入库")
@SaStaffCheckPermission("yun_xu_hao_cai_ru_ku")
//@SaAdminCheckPermission("consStockFlow:in")
public CzgResult<Void> inStock(@RequestBody ConsInOutStockHeadParam param) {
ValidatorUtil.validateEntity(param, DefaultGroup.class);
@@ -47,6 +49,7 @@ public class ConsStockFlowController {
*/
@PostMapping("out")
@OperationLog("耗材出库")
@SaStaffCheckPermission("yun_xu_hao_cai_chu_ku")
//@SaAdminCheckPermission("consStockFlow:out")
public CzgResult<Void> outStock(@RequestBody ConsInOutStockHeadParam param) {
ValidatorUtil.validateEntity(param, DefaultGroup.class);
@@ -73,6 +76,7 @@ public class ConsStockFlowController {
*/
@PostMapping("check")
@OperationLog("库存盘点")
@SaStaffCheckPermission("yun_xu_hao_cai_pan_dian")
//@SaAdminCheckPermission("consStockFlow:check")
public CzgResult<Void> checkStock(@RequestBody ConsCheckStockParam param) {
ValidatorUtil.validateEntity(param, DefaultGroup.class);
@@ -102,4 +106,4 @@ public class ConsStockFlowController {
Page<ConsStockFlowDTO> data = consStockFlowService.findConsStockFlowPage(param);
return CzgResult.success(data);
}
}
}

View File

@@ -220,6 +220,7 @@ public class ProductController {
*/
@PostMapping("reportDamage")
@OperationLog("商品-报损")
@SaStaffCheckPermission("yun_xu_ti_jiao_bao_sun")
//@SaAdminCheckPermission("product:reportDamage")
public CzgResult<Void> reportDamage(@RequestBody ProductReportDamageParam param) {
ValidatorUtil.validateEntity(param, DefaultGroup.class);