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

Commit 67176afb authored by jiangxiulong's avatar jiangxiulong

订单商品vo增加skuPic

parent fa946d33
...@@ -22,9 +22,11 @@ public class GoblinNftOrderGoodsSkuInfoVo implements Serializable, Cloneable { ...@@ -22,9 +22,11 @@ public class GoblinNftOrderGoodsSkuInfoVo implements Serializable, Cloneable {
private String name; private String name;
@ApiModelProperty(position = 14, value = "单品的副标题[128]") @ApiModelProperty(position = 14, value = "单品的副标题[128]")
private String subtitle; private String subtitle;
@ApiModelProperty(position = 15, value = "单品详情展示文件URL[256]") @ApiModelProperty(position = 15, value = "单品默认图片的URL[256] 订单列表使用")
private String skuPic;
@ApiModelProperty(position = 16, value = "单品详情展示文件URL[256]")
private String skuWatch; private String skuWatch;
@ApiModelProperty(position = 15, value = "展示文件类型[1-图片|2-视频|3-模型]") @ApiModelProperty(position = 17, value = "展示文件类型[1-图片|2-视频|3-模型]")
private String watchType; private String watchType;
private static final GoblinNftOrderGoodsSkuInfoVo obj = new GoblinNftOrderGoodsSkuInfoVo(); private static final GoblinNftOrderGoodsSkuInfoVo obj = new GoblinNftOrderGoodsSkuInfoVo();
...@@ -43,7 +45,8 @@ public class GoblinNftOrderGoodsSkuInfoVo implements Serializable, Cloneable { ...@@ -43,7 +45,8 @@ public class GoblinNftOrderGoodsSkuInfoVo implements Serializable, Cloneable {
this.setSpuId(source.getSpuId()); this.setSpuId(source.getSpuId());
this.setName(source.getName()); this.setName(source.getName());
this.setSubtitle(source.getSubtitle()); this.setSubtitle(source.getSubtitle());
this.setSkuWatch(source.getSkuPic()); this.setSkuPic(source.getSkuPic());
this.setSkuWatch(source.getSkuWatch());
this.setWatchType(source.getWatchType()); this.setWatchType(source.getWatchType());
return this; return this;
} }
......
...@@ -107,7 +107,7 @@ public class GoblinNftGoodsAppServiceImpl implements IGoblinNftGoodsAppService { ...@@ -107,7 +107,7 @@ public class GoblinNftGoodsAppServiceImpl implements IGoblinNftGoodsAppService {
if (null != goodsSkuInfoVo.getBuyLimit() && 0 != goodsSkuInfoVo.getBuyLimit()) { if (null != goodsSkuInfoVo.getBuyLimit() && 0 != goodsSkuInfoVo.getBuyLimit()) {
nftGoodsSkuInfoVo.setCanBuyNum(goodsSkuInfoVo.getBuyLimit() - buyCount); nftGoodsSkuInfoVo.setCanBuyNum(goodsSkuInfoVo.getBuyLimit() - buyCount);
} }
// 库存 todo 修改库存判断 看后记得删除 // 库存 盲盒计算所有sku库存总数
int stock = 0; int stock = 0;
if (goodsSkuInfoVo.getUnbox().equals("0")) { if (goodsSkuInfoVo.getUnbox().equals("0")) {
stock = goblinRedisUtils.getSkuStock(null, skuId); stock = goblinRedisUtils.getSkuStock(null, skuId);
......
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