记得上下班打卡 | git大法好,push需谨慎

Commit 0e0c8218 authored by 胡佳晨's avatar 胡佳晨

adam增加会员新接口

parent 02211098
......@@ -21,6 +21,9 @@ public class StoneOrderListVo implements Serializable, Cloneable {
@ApiModelProperty(value = "积分物品封面图", example = "http://xxxxx.png")
private String img;
@ApiModelProperty(value = "用户id", example = "1")
private String uid;
@ApiModelProperty(value = "积分物品名称", example = "测试券")
private String targetTitle;
......@@ -52,10 +55,11 @@ public class StoneOrderListVo implements Serializable, Cloneable {
}
}
public StoneOrderListVo copy(StoneScoreOrder source,String img) {
public StoneOrderListVo copy(StoneScoreOrder source,String img,String uid) {
if (null == source) return this;
this.setOrderId(source.getItemId());
this.setImg(img);
this.setUid(uid);
this.setTargetTitle(source.getTargetTitle());
this.setNumber(source.getNumber());
this.setScore(source.getScore().intValue());
......
......@@ -104,7 +104,7 @@ public class StoneScoreOrderServiceImpl implements IStoneScoreOrderService {
order.setPayStatus(1);
order.setCreatedAt(LocalDateTime.now());
//redis
StoneOrderListVo listVo = StoneOrderListVo.getNew().copy(order, data.getImg());
StoneOrderListVo listVo = StoneOrderListVo.getNew().copy(order, data.getImg(),uid);
stoneRedisUtils.setOrderDetails(listVo.getOrderId(), listVo);
stoneRedisUtils.addOrderList(uid, listVo);
//mongo
......
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