release- 抽奖列表页和详情页返回系统时间

release-2024-04-25
huangyawei 1 month ago
parent 5ec145c6ea
commit cc06caa86d

@ -610,6 +610,7 @@ public class LotteryService {
.fetch();
lottery.setLotteryRegionList(lotteryRegionList);
lottery.setSystemTime(LocalDateTime.now());
}
});
return lotteryPageResult;
@ -821,6 +822,8 @@ public class LotteryService {
// 设置抽奖人数
result.setParticipateNum(participateNum);
result.setSystemTime(LocalDateTime.now());
return result;
}

@ -100,6 +100,12 @@ public class LotteryAPPVO implements Serializable {
@ApiModelProperty(value = "参与人数")
private Long participateNum;
@Transient
@ApiModelProperty(value = "系统时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private LocalDateTime systemTime;
private List<LotteryRegionDetailVO> lotteryRegionList;
public LotteryAPPVO() {

@ -97,6 +97,12 @@ public class LotteryDetailAPPVO implements Serializable {
@ApiModelProperty(value = "参与人数")
private Long participateNum;
@Transient
@ApiModelProperty(value = "系统时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private LocalDateTime systemTime;
public LotteryDetailAPPVO() {
}

Loading…
Cancel
Save