mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-27 01:15:10 +08:00
秒杀: app 端返回增加秒杀活动状态
This commit is contained in:
@ -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);
|
||||||
//}
|
//}
|
||||||
|
Reference in New Issue
Block a user