Commit 6d752e16 authored by zhaobiyan's avatar zhaobiyan

雪花算法id 字符串类型返回

parent ff4b2713
...@@ -2,6 +2,8 @@ package cn.iocoder.yudao.module.member.vo.memberUserScoreLog; ...@@ -2,6 +2,8 @@ package cn.iocoder.yudao.module.member.vo.memberUserScoreLog;
import cn.hutool.json.JSONObject; import cn.hutool.json.JSONObject;
import cn.hutool.json.JSONUtil; import cn.hutool.json.JSONUtil;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
...@@ -18,6 +20,7 @@ import java.util.Map; ...@@ -18,6 +20,7 @@ import java.util.Map;
@ApiModel("管理后台 - 积分记录查询 VO") @ApiModel("管理后台 - 积分记录查询 VO")
public class MemberUserScoreLogBackVO { public class MemberUserScoreLogBackVO {
@ApiModelProperty(value = "积分记录id") @ApiModelProperty(value = "积分记录id")
@JsonSerialize(using = ToStringSerializer.class)
private Long id; private Long id;
@ApiModelProperty(value = "会员id") @ApiModelProperty(value = "会员id")
private Long memberId; private Long memberId;
...@@ -56,8 +59,4 @@ public class MemberUserScoreLogBackVO { ...@@ -56,8 +59,4 @@ public class MemberUserScoreLogBackVO {
} }
return JSONUtil.parseObj(extParam); return JSONUtil.parseObj(extParam);
} }
public String getLogId() {
return String.valueOf(getId());
}
} }
package cn.iocoder.yudao.module.reward.vo.reward; package cn.iocoder.yudao.module.reward.vo.reward;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
...@@ -8,6 +10,7 @@ import java.util.Date; ...@@ -8,6 +10,7 @@ import java.util.Date;
@Data @Data
public class RewardRedeemBaseVO { public class RewardRedeemBaseVO {
@ApiModelProperty(value = "id") @ApiModelProperty(value = "id")
@JsonSerialize(using = ToStringSerializer.class)
private Long id; private Long id;
/** /**
* 会员id * 会员id
......
...@@ -35,8 +35,4 @@ public class RewardRedeemPageRespVO extends RewardRedeemBaseVO { ...@@ -35,8 +35,4 @@ public class RewardRedeemPageRespVO extends RewardRedeemBaseVO {
private String currencyTitleEn; private String currencyTitleEn;
@ApiModelProperty(value = "快递公司名称") @ApiModelProperty(value = "快递公司名称")
private String courierCompanyName; private String courierCompanyName;
public String getRedeemId() {
return String.valueOf(getId());
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment