master:购买推广营销调优;

pull/1121/head
liujiang 2025-06-24 22:41:43 +08:00
parent 3d5cc5d76d
commit 2c13cc4cad
5 changed files with 16 additions and 16 deletions

View File

@ -20,16 +20,16 @@ import javax.validation.constraints.NotNull;
public class AdRoundLatestVO {
@NotNull(message = "档口ID不能为空!")
@ApiModelProperty(value = "档口ID")
@ApiModelProperty(value = "档口ID", required = true)
private Long storeId;
@NotNull(message = "广告类型ID不能为空!")
@ApiModelProperty(value = "广告类型ID")
@ApiModelProperty(value = "广告类型ID", required = true)
private Long advertId;
@NotNull(message = "播放轮次ID不能为空!")
@ApiModelProperty(value = "播放轮次ID")
@ApiModelProperty(value = "播放轮次ID", required = true)
private Integer roundId;
@NotNull(message = "展示类型不能为空!")
@ApiModelProperty(value = "展示类型 时间范围 位置枚举")
@ApiModelProperty(value = "展示类型 时间范围 位置枚举", required = true)
private Integer showType;
@ApiModelProperty(value = "位置 A B C D E")
private String position;

View File

@ -22,31 +22,31 @@ import java.math.BigDecimal;
public class AdRoundStoreCreateVO {
@NotNull(message = "广告ID不能为空!")
@ApiModelProperty(value = "广告ID")
@ApiModelProperty(value = "广告ID", required = true)
private Long advertId;
@NotNull(message = "广告轮次ID不能为空!")
@ApiModelProperty(value = "广告轮次ID")
@ApiModelProperty(value = "广告轮次ID", required = true)
private Long roundId;
@NotNull(message = "推广展示类型不能为空!")
@ApiModelProperty(value = "推广展示类型 时间范围 位置枚举")
@ApiModelProperty(value = "推广展示类型", required = true)
private Integer showType;
@ApiModelProperty(value = "[不一定传]广告位置 A B C D E")
private String position;
@NotNull(message = "推广档口ID不能为空!")
@ApiModelProperty(value = "推广档口ID")
@ApiModelProperty(value = "推广档口ID", required = true)
private Long storeId;
@NotNull(message = "推广档口出价不能为空!")
@ApiModelProperty(value = "推广档口出价")
@ApiModelProperty(value = "推广档口出价", required = true)
private BigDecimal payPrice;
@ApiModelProperty(value = "图片设计1 自主设计、2 平台设计)")
private Integer picDesignType;
@ApiModelProperty(value = "推广商品ID列表")
private String prodIdStr;
@NotBlank(message = "对象锁符号不能为空!")
@ApiModelProperty(value = "对象锁符号")
@ApiModelProperty(value = "对象锁符号", required = true)
private String symbol;
@NotBlank(message = "交易密码不能为空!")
@ApiModelProperty(value = "交易密码")
@ApiModelProperty(value = "交易密码", required = true)
private String transactionPassword;
}

View File

@ -21,10 +21,10 @@ import java.math.BigDecimal;
public class AdRoundUpdateVO {
@NotNull(message = "推广轮次ID不能为空!")
@ApiModelProperty(value = "推广轮次ID")
@ApiModelProperty(value = "推广轮次ID", required = true)
private Long advertRoundId;
@NotNull(message = "档口ID不能为空!")
@ApiModelProperty(value = "档口ID")
@ApiModelProperty(value = "档口ID", required = true)
private Long storeId;
@ApiModelProperty(value = "推广图")
private ARUFileVO file;

View File

@ -21,7 +21,7 @@ import java.util.List;
public class AdvertRoundStorePageVO extends BasePageVO {
@NotNull(message = "档口ID不能为空!")
@ApiModelProperty(value = "档口ID")
@ApiModelProperty(value = "档口ID", required = true)
private Long storeId;
@ApiModelProperty(value = "平台ID")
private Long platformId;
@ -30,7 +30,7 @@ public class AdvertRoundStorePageVO extends BasePageVO {
@ApiModelProperty(value = "投放状态")
private Integer launchStatus;
@NotNull(message = "竞价状态不能为空!")
@ApiModelProperty(value = "竞价状态 只查看 已出价 或 竞价成功的状态")
@ApiModelProperty(value = "竞价状态 只查看 已出价 或 竞价成功的状态", required = true)
private List<Integer> biddingStatusList;
@ApiModelProperty(value = "图片是否设置 1 未设置 2已设置")
private Integer picSetType;

View File

@ -582,7 +582,7 @@ public class AdvertRoundServiceImpl implements IAdvertRoundService {
public Integer create(AdRoundStoreCreateDTO createDTO) {
// 判断截止时间是否超时,并且只会处理马上播放的这一轮。比如 5.1-5.3当前为4.30处理这一轮当前为5.2处理这一轮当前为5.3(最后一天),处理下一轮。
if (DateUtils.getTime().compareTo(this.getDeadline(createDTO.getSymbol())) > 0) {
throw new ServiceException("竞价失败,已经有档口出价更高了噢!", HttpStatus.ERROR);
throw new ServiceException("竞价失败,已过系统截止时间!", HttpStatus.ERROR);
}
Store store = redisCache.getCacheObject(CacheConstants.STORE_KEY + createDTO.getStoreId());
if (ObjectUtils.isEmpty(store)) {