红包出参时间类型修改

This commit is contained in:
tianfeng 2025-11-26 10:18:38 +08:00
parent eaec1e81a9
commit e05b8bed2f
4 changed files with 8 additions and 8 deletions

View File

@ -38,10 +38,10 @@ public class RoomRedPacketAppConvertor {
co.setRemainAmount(domain.getRemainAmount());
co.setRemainCount(domain.getRemainCount());
co.setExpireMinutes(domain.getExpireMinutes());
co.setExpireTime(domain.getExpireTime());
co.setExpireTime(domain.getExpireTime().toString());
co.setStatus(domain.getStatus());
co.setStatusDesc(getStatusDesc(domain.getStatus()));
co.setCreateTime(domain.getCreateTime());
co.setCreateTime(domain.getCreateTime().toString());
// 计算倒计时
if (domain.getExpireTime() != null) {
@ -71,7 +71,7 @@ public class RoomRedPacketAppConvertor {
co.setRemainCount(domain.getRemainCount());
co.setStatus(domain.getStatus());
co.setStatusDesc(getStatusDesc(domain.getStatus()));
co.setCreateTime(domain.getCreateTime());
co.setCreateTime(domain.getCreateTime().toString());
// 转换领取记录
if (records != null) {
@ -96,7 +96,7 @@ public class RoomRedPacketAppConvertor {
co.setRecordId(domain.getRecordId());
co.setUserId(domain.getUserId());
co.setAmount(domain.getAmount());
co.setGrabTime(domain.getGrabTime());
co.setGrabTime(domain.getGrabTime().toString());
return co;
}

View File

@ -78,7 +78,7 @@ public class RoomRedPacketCO {
/**
* 过期时间
*/
private LocalDateTime expireTime;
private String expireTime;
/**
* 倒计时
@ -103,5 +103,5 @@ public class RoomRedPacketCO {
/**
* 创建时间
*/
private LocalDateTime createTime;
private String createTime;
}

View File

@ -89,5 +89,5 @@ public class RoomRedPacketDetailCO {
/**
* 创建时间
*/
private LocalDateTime createTime;
private String createTime;
}

View File

@ -38,5 +38,5 @@ public class RoomRedPacketRecordCO {
/**
* 抢红包时间
*/
private LocalDateTime grabTime;
private String grabTime;
}