秒杀: app 端返回增加秒杀活动状态
This commit is contained in:
parent
583a0a2dd5
commit
8060aeb5e7
|
@ -25,6 +25,9 @@ public class AppSeckillActivityRespVO {
|
||||||
// 从 SPU 的 marketPrice 读取
|
// 从 SPU 的 marketPrice 读取
|
||||||
private Integer marketPrice;
|
private Integer marketPrice;
|
||||||
|
|
||||||
|
@Schema(description = "秒杀活动状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
||||||
|
private Integer status;
|
||||||
|
|
||||||
@Schema(description = "秒杀库存(剩余)", requiredMode = Schema.RequiredMode.REQUIRED, example = "100")
|
@Schema(description = "秒杀库存(剩余)", requiredMode = Schema.RequiredMode.REQUIRED, example = "100")
|
||||||
private Integer stock;
|
private Integer stock;
|
||||||
@Schema(description = "秒杀库存(总共)", requiredMode = Schema.RequiredMode.REQUIRED, example = "200")
|
@Schema(description = "秒杀库存(总共)", requiredMode = Schema.RequiredMode.REQUIRED, example = "200")
|
||||||
|
|
|
@ -114,7 +114,7 @@ public class BargainActivityServiceImpl implements BargainActivityService {
|
||||||
public void deleteBargainActivity(Long id) {
|
public void deleteBargainActivity(Long id) {
|
||||||
// 校验存在
|
// 校验存在
|
||||||
BargainActivityDO activityDO = validateBargainActivityExists(id);
|
BargainActivityDO activityDO = validateBargainActivityExists(id);
|
||||||
// 校验状态
|
// 校验状态 TODO puhui: 测试完成后需要恢复校验
|
||||||
//if (ObjectUtil.equal(activityDO.getStatus(), CommonStatusEnum.ENABLE.getStatus())) {
|
//if (ObjectUtil.equal(activityDO.getStatus(), CommonStatusEnum.ENABLE.getStatus())) {
|
||||||
// throw exception(BARGAIN_ACTIVITY_DELETE_FAIL_STATUS_NOT_CLOSED_OR_END);
|
// throw exception(BARGAIN_ACTIVITY_DELETE_FAIL_STATUS_NOT_CLOSED_OR_END);
|
||||||
//}
|
//}
|
||||||
|
|
Loading…
Reference in New Issue