Commit 8060aeb5e7518e15f226fc7a5c1c8764017e8336
1 parent
583a0a2d
秒杀: app 端返回增加秒杀活动状态
Showing
2 changed files
with
4 additions
and
1 deletions
yudao-module-mall/yudao-module-promotion-biz/src/main/java/cn/iocoder/yudao/module/promotion/controller/app/seckill/vo/activity/AppSeckillActivityRespVO.java
| @@ -25,6 +25,9 @@ public class AppSeckillActivityRespVO { | @@ -25,6 +25,9 @@ public class AppSeckillActivityRespVO { | ||
| 25 | // 从 SPU 的 marketPrice 读取 | 25 | // 从 SPU 的 marketPrice 读取 |
| 26 | private Integer marketPrice; | 26 | private Integer marketPrice; |
| 27 | 27 | ||
| 28 | + @Schema(description = "秒杀活动状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") | ||
| 29 | + private Integer status; | ||
| 30 | + | ||
| 28 | @Schema(description = "秒杀库存(剩余)", requiredMode = Schema.RequiredMode.REQUIRED, example = "100") | 31 | @Schema(description = "秒杀库存(剩余)", requiredMode = Schema.RequiredMode.REQUIRED, example = "100") |
| 29 | private Integer stock; | 32 | private Integer stock; |
| 30 | @Schema(description = "秒杀库存(总共)", requiredMode = Schema.RequiredMode.REQUIRED, example = "200") | 33 | @Schema(description = "秒杀库存(总共)", requiredMode = Schema.RequiredMode.REQUIRED, example = "200") |
yudao-module-mall/yudao-module-promotion-biz/src/main/java/cn/iocoder/yudao/module/promotion/service/bargain/BargainActivityServiceImpl.java
| @@ -114,7 +114,7 @@ public class BargainActivityServiceImpl implements BargainActivityService { | @@ -114,7 +114,7 @@ public class BargainActivityServiceImpl implements BargainActivityService { | ||
| 114 | public void deleteBargainActivity(Long id) { | 114 | public void deleteBargainActivity(Long id) { |
| 115 | // 校验存在 | 115 | // 校验存在 |
| 116 | BargainActivityDO activityDO = validateBargainActivityExists(id); | 116 | BargainActivityDO activityDO = validateBargainActivityExists(id); |
| 117 | - // 校验状态 | 117 | + // 校验状态 TODO puhui: 测试完成后需要恢复校验 |
| 118 | //if (ObjectUtil.equal(activityDO.getStatus(), CommonStatusEnum.ENABLE.getStatus())) { | 118 | //if (ObjectUtil.equal(activityDO.getStatus(), CommonStatusEnum.ENABLE.getStatus())) { |
| 119 | // throw exception(BARGAIN_ACTIVITY_DELETE_FAIL_STATUS_NOT_CLOSED_OR_END); | 119 | // throw exception(BARGAIN_ACTIVITY_DELETE_FAIL_STATUS_NOT_CLOSED_OR_END); |
| 120 | //} | 120 | //} |