员工权限废弃
This commit is contained in:
@@ -37,7 +37,7 @@ public class ConsStockFlowController {
|
||||
*/
|
||||
@PostMapping("in")
|
||||
@OperationLog("耗材入库")
|
||||
@SaStaffCheckPermission("yun_xu_hao_cai_ru_ku")
|
||||
//@SaStaffCheckPermission("yun_xu_hao_cai_ru_ku")
|
||||
//@SaAdminCheckPermission("consStockFlow:in")
|
||||
public CzgResult<Void> inStock(@RequestBody ConsInOutStockHeadParam param) {
|
||||
ValidatorUtil.validateEntity(param, DefaultGroup.class);
|
||||
@@ -51,7 +51,7 @@ public class ConsStockFlowController {
|
||||
*/
|
||||
@PostMapping("out")
|
||||
@OperationLog("耗材出库")
|
||||
@SaStaffCheckPermission("yun_xu_hao_cai_chu_ku")
|
||||
//@SaStaffCheckPermission("yun_xu_hao_cai_chu_ku")
|
||||
//@SaAdminCheckPermission("consStockFlow:out")
|
||||
public CzgResult<Void> outStock(@RequestBody ConsInOutStockHeadParam param) {
|
||||
ValidatorUtil.validateEntity(param, DefaultGroup.class);
|
||||
@@ -78,7 +78,7 @@ public class ConsStockFlowController {
|
||||
*/
|
||||
@PostMapping("check")
|
||||
@OperationLog("库存盘点")
|
||||
@SaStaffCheckPermission("yun_xu_hao_cai_pan_dian")
|
||||
//@SaStaffCheckPermission("yun_xu_hao_cai_pan_dian")
|
||||
//@SaAdminCheckPermission("consStockFlow:check")
|
||||
public CzgResult<Void> checkStock(@RequestBody ConsCheckStockParam param) {
|
||||
ValidatorUtil.validateEntity(param, DefaultGroup.class);
|
||||
|
||||
@@ -116,7 +116,7 @@ public class ProductController {
|
||||
*/
|
||||
@PutMapping
|
||||
@OperationLog("商品-修改")
|
||||
@SaStaffCheckPermission("yun_xu_xiu_gai_shang_pin")
|
||||
//@SaStaffCheckPermission("yun_xu_xiu_gai_shang_pin")
|
||||
//@SaAdminCheckPermission("product:update")
|
||||
public CzgResult<Void> updateProduct(@RequestBody @Validated({UpdateGroup.class, DefaultGroup.class}) ProductDTO dto) {
|
||||
if (dto.getCategoryId() != null) {
|
||||
@@ -142,7 +142,7 @@ public class ProductController {
|
||||
|
||||
@PostMapping("modifyStock")
|
||||
@OperationLog("商品-修改库存")
|
||||
@SaStaffCheckPermission("yun_xu_xiu_gai_shang_pin")
|
||||
//@SaStaffCheckPermission("yun_xu_xiu_gai_shang_pin")
|
||||
public CzgResult<Void> updateProductStock(@RequestBody ProductModifyStockParam param) {
|
||||
ValidatorUtil.validateEntity(param, DefaultGroup.class);
|
||||
Long shopId = StpKit.USER.getShopId(0L);
|
||||
@@ -161,7 +161,7 @@ public class ProductController {
|
||||
*/
|
||||
@DeleteMapping("{id}")
|
||||
@OperationLog("商品-删除")
|
||||
@SaStaffCheckPermission("yun_xu_xiu_gai_shang_pin")
|
||||
//@SaStaffCheckPermission("yun_xu_xiu_gai_shang_pin")
|
||||
//@SaAdminCheckPermission("product:delete")
|
||||
public CzgResult<Void> deleteProduct(@PathVariable("id") Long id) {
|
||||
//效验数据
|
||||
@@ -180,7 +180,7 @@ public class ProductController {
|
||||
*/
|
||||
@PostMapping("onOff")
|
||||
@OperationLog("商品-上下架")
|
||||
@SaStaffCheckPermission("yun_xu_shang_xia_jia_shang_pin")
|
||||
//@SaStaffCheckPermission("yun_xu_shang_xia_jia_shang_pin")
|
||||
//@SaAdminCheckPermission("product:on-off")
|
||||
public CzgResult<Void> onOffProduct(@RequestBody @Validated({DefaultGroup.class}) ProductIsSaleParam param) {
|
||||
Long shopId = StpKit.USER.getShopId(0L);
|
||||
@@ -197,7 +197,7 @@ public class ProductController {
|
||||
*/
|
||||
@PostMapping("markIsSoldOut")
|
||||
@OperationLog("商品-标记售罄")
|
||||
@SaStaffCheckPermission("yun_xu_shou_qing_shang_pin")
|
||||
//@SaStaffCheckPermission("yun_xu_shou_qing_shang_pin")
|
||||
//@SaAdminCheckPermission("product:markIsSoldOut")
|
||||
public CzgResult<Void> markIsSoldOutProduct(@RequestBody @Validated({DefaultGroup.class}) ProductIsSoldOutParam param) {
|
||||
Long shopId = StpKit.USER.getShopId(0L);
|
||||
@@ -253,7 +253,7 @@ public class ProductController {
|
||||
*/
|
||||
@PostMapping("reportDamage")
|
||||
@OperationLog("商品-报损")
|
||||
@SaStaffCheckPermission("yun_xu_ti_jiao_bao_sun")
|
||||
//@SaStaffCheckPermission("yun_xu_ti_jiao_bao_sun")
|
||||
//@SaAdminCheckPermission("product:reportDamage")
|
||||
public CzgResult<Void> reportDamage(@RequestBody ProductReportDamageParam param) {
|
||||
ValidatorUtil.validateEntity(param, DefaultGroup.class);
|
||||
|
||||
Reference in New Issue
Block a user