Commit 5097f231 authored by zhangfeng's avatar zhangfeng

客户端兑换记录id转字符串

parent 8b70a7be
...@@ -45,7 +45,7 @@ public class AppRedeemRewardController { ...@@ -45,7 +45,7 @@ public class AppRedeemRewardController {
@ApiOperation("兑换详情") @ApiOperation("兑换详情")
//@PreAuthenticated //@PreAuthenticated
public CommonResult<AppRewardRedeemDetailRespVO> detail(@Valid @RequestBody AppRewardRedeemDetailReqVO request) { public CommonResult<AppRewardRedeemDetailRespVO> detail(@Valid @RequestBody AppRewardRedeemDetailReqVO request) {
RewardRedeemPageRespVO detail = rewardRedeemService.detail(request.getRedeemId()); RewardRedeemPageRespVO detail = rewardRedeemService.detail(Long.valueOf(request.getRedeemId()));
if (detail != null) { if (detail != null) {
AppRewardRedeemDetailRespVO appRewardRedeemDetailRespVO = new AppRewardRedeemDetailRespVO(); AppRewardRedeemDetailRespVO appRewardRedeemDetailRespVO = new AppRewardRedeemDetailRespVO();
BeanUtils.copyProperties(detail, appRewardRedeemDetailRespVO); BeanUtils.copyProperties(detail, appRewardRedeemDetailRespVO);
......
...@@ -11,5 +11,5 @@ import javax.validation.constraints.NotNull; ...@@ -11,5 +11,5 @@ import javax.validation.constraints.NotNull;
public class AppRewardRedeemDetailReqVO { public class AppRewardRedeemDetailReqVO {
@ApiModelProperty(value = "兑换记录id") @ApiModelProperty(value = "兑换记录id")
@NotNull(message = "兑换记录id不能为空") @NotNull(message = "兑换记录id不能为空")
private Long redeemId; private String redeemId;
} }
package cn.iocoder.yudao.module.reward.controller.app.redeem.vo; package cn.iocoder.yudao.module.reward.controller.app.redeem.vo;
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;
...@@ -10,6 +12,7 @@ import java.util.Date; ...@@ -10,6 +12,7 @@ import java.util.Date;
@ApiModel("客户端 - 礼品兑换记录详情 resp VO") @ApiModel("客户端 - 礼品兑换记录详情 resp VO")
public class AppRewardRedeemDetailRespVO { public class AppRewardRedeemDetailRespVO {
@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;
......
package cn.iocoder.yudao.module.reward.controller.app.redeem.vo; package cn.iocoder.yudao.module.reward.controller.app.redeem.vo;
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.AllArgsConstructor; import lombok.AllArgsConstructor;
...@@ -19,6 +21,7 @@ import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_ ...@@ -19,6 +21,7 @@ import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_
@NoArgsConstructor @NoArgsConstructor
public class AppRewardRedeemListRespVO { public class AppRewardRedeemListRespVO {
@ApiModelProperty(value = "id") @ApiModelProperty(value = "id")
@JsonSerialize(using = ToStringSerializer.class)
private Long id; private Long id;
@ApiModelProperty(value = "礼品ID") @ApiModelProperty(value = "礼品ID")
private Long rewardCode; private Long rewardCode;
......
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