|
|
|
@ -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()); |
|
|
|
|