修复优惠券发布权限
This commit is contained in:
@@ -114,7 +114,7 @@ public interface ShopConstants {
|
||||
/**
|
||||
* 签到天数
|
||||
*/
|
||||
String ZSW_SIGN_DAY_NUM = "zsw_sign_day_num";
|
||||
String ZSW_SIGN_DAY_NUM = "yshop_sign_day_num";
|
||||
|
||||
/**
|
||||
* 打印机配置
|
||||
|
||||
+2
-1
@@ -52,7 +52,8 @@ public class StoreCouponIssueController {
|
||||
@Log("发布")
|
||||
@ApiOperation(value = "发布")
|
||||
@PostMapping(value = "/yxStoreCouponIssue")
|
||||
@PreAuthorize("@ss.hasAnyPermissions('admin','YXSTORECOUPONISSUE_ALL','YXSTORECOUPONISSUE_CREATE')")
|
||||
// @PreAuthorize("@ss.hasAnyPermissions('admin','YXSTORECOUPONISSUE_ALL','YXSTORECOUPONISSUE_CREATE')")
|
||||
@PreAuthorize("@ss.hasAnyPermissions('admin','YXSTORECOUPON_ALL','YXSTORECOUPON_EDIT')")
|
||||
public ResponseEntity create(@Validated @RequestBody YxStoreCouponIssue resources){
|
||||
if(resources.getTotalCount() > 0) {
|
||||
resources.setRemainCount(resources.getTotalCount());
|
||||
|
||||
Reference in New Issue
Block a user