release: lottery user SKU更新新增字段showTime

release-2024-04-25
huangyw 1 month ago
parent 2658bedf84
commit e849b699f8

@ -15,6 +15,6 @@ public interface LotteryUserDao extends JpaRepository<LotteryUser, String>,
public LotteryUser findByLotteryIdAndUserId(String lotteryId, String userId);
public List<LotteryUser> findByLotteryIdAndRegionId(String lotteryId, Integer regionId);
public List<LotteryUser> findByLotteryIdAndRegionIdAndShowTime(String lotteryId, Integer regionId, String showTime);
}

@ -89,4 +89,8 @@ public class LotteryUser implements Serializable {
@ApiModelProperty(value = "是否已弹出弹框 0-默认状态,未弹出 1-已弹出")
private Integer popup;
@Column(name = "show_time")
@ApiModelProperty(value = "演出时间")
private String showTime;
}

@ -79,8 +79,8 @@ public class DrawLotteryService {
lotteryRegionList.forEach(lotteryRegion -> {
Integer num = lotteryRegion.getNum();
if (num > 0) {
List<LotteryUser> lotteryUserList = lotteryUserDao.findByLotteryIdAndRegionId(id,
lotteryRegion.getRegionId());
List<LotteryUser> lotteryUserList = lotteryUserDao.findByLotteryIdAndRegionIdAndShowTime(id,
lotteryRegion.getRegionId(), lotteryRegion.getShowTime());
lotteryFunc(token, lotteryUserList, num);

@ -703,7 +703,8 @@ public class LotteryService {
avatarWithPrefix.as("avatar"),
qLotteryUser.popup.as("popup"),
qRegion.name.as("regionName"),
qRegion.code.as("regionCode")
qRegion.code.as("regionCode"),
qLotteryUser.showTime.as("showTime")
))
.from(qLotteryUser)
.leftJoin(qUserInfo)

@ -70,6 +70,9 @@ public class LotteryUserAPPVO implements Serializable {
@ApiModelProperty(value = "区域编码")
private String regionCode;
@ApiModelProperty(value = "演出时间")
private String showTime;
public LotteryUserAPPVO() {
}
@ -87,7 +90,7 @@ public class LotteryUserAPPVO implements Serializable {
this.avatar = avatar;
}
public LotteryUserAPPVO(String id, String lotteryId, String userId, Integer regionId, Integer result, LocalDateTime createTime, LocalDateTime updateTime, String createUser, String updateUser, String nickName, String avatar, Integer popup, String regionName, String regionCode) {
public LotteryUserAPPVO(String id, String lotteryId, String userId, Integer regionId, Integer result, LocalDateTime createTime, LocalDateTime updateTime, String createUser, String updateUser, String nickName, String avatar, Integer popup, String regionName, String regionCode, String showTime) {
this.id = id;
this.lotteryId = lotteryId;
this.userId = userId;
@ -102,5 +105,6 @@ public class LotteryUserAPPVO implements Serializable {
this.popup = popup;
this.regionName = regionName;
this.regionCode = regionCode;
this.showTime = showTime;
}
}

@ -32,3 +32,8 @@ alter table tb_lottery_user
alter table tb_lottery_region
add show_time varchar(50) null comment '演出时间';
alter table tb_lottery_user
add show_time varchar(50) null comment '演出时间';

Loading…
Cancel
Save