From ee9688b912bb993b54252a26f8ad9e0e04df21c3 Mon Sep 17 00:00:00 2001 From: mitao <2763622819@qq.com> Date: 星期五, 21 六月 2024 18:11:21 +0800 Subject: [PATCH] 修改bug --- ruoyi-modules/ruoyi-promotion/src/main/java/com/ruoyi/promotion/controller/management/MgtCouponController.java | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/ruoyi-modules/ruoyi-promotion/src/main/java/com/ruoyi/promotion/controller/management/MgtCouponController.java b/ruoyi-modules/ruoyi-promotion/src/main/java/com/ruoyi/promotion/controller/management/MgtCouponController.java index fe1e4e4..6ea3538 100644 --- a/ruoyi-modules/ruoyi-promotion/src/main/java/com/ruoyi/promotion/controller/management/MgtCouponController.java +++ b/ruoyi-modules/ruoyi-promotion/src/main/java/com/ruoyi/promotion/controller/management/MgtCouponController.java @@ -15,7 +15,7 @@ import com.ruoyi.promotion.controller.management.vo.MgtCouponVO; import com.ruoyi.promotion.service.ICouponService; import com.ruoyi.system.api.validate.InsertGroup; -import com.ruoyi.system.api.validate.ModifyGroup; +import com.ruoyi.system.api.validate.UpdateGroup; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import java.util.Date; @@ -75,7 +75,7 @@ */ @ApiOperation("编辑优惠券") @PutMapping("/update") - public R<?> updateCoupon(@Validated(ModifyGroup.class) @RequestBody MgtCouponDTO dto) { + public R<?> updateCoupon(@Validated(UpdateGroup.class) @RequestBody MgtCouponDTO dto) { couponService.updateCoupon(dto); return R.ok(); } @@ -83,8 +83,7 @@ /** * 上架/下架 * - * @param dto - * @return + * @param dto 管理后台-优惠券上架下架数据传输对象 */ @ApiOperation("上架/下架") @PutMapping("/upd-status") -- Gitblit v1.7.1