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

Commit 4756ddc3 authored by 胡佳晨's avatar 胡佳晨

增加 字段 增加正常商品的开售时间

parent f5dccfb6
...@@ -102,6 +102,9 @@ public class GoblinNftGoodsSkuInfoVo implements Serializable, Cloneable { ...@@ -102,6 +102,9 @@ public class GoblinNftGoodsSkuInfoVo implements Serializable, Cloneable {
private Integer tagType; private Integer tagType;
@ApiModelProperty(position = 68, value = "分批购活动id") @ApiModelProperty(position = 68, value = "分批购活动id")
private String listId; private String listId;
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = DateUtil.DATE_FULL_STR)
@ApiModelProperty(position = 69, value = "sku正常开售时间")
private LocalDateTime baseSaleStartTime;
private static final GoblinNftGoodsSkuInfoVo obj = new GoblinNftGoodsSkuInfoVo(); private static final GoblinNftGoodsSkuInfoVo obj = new GoblinNftGoodsSkuInfoVo();
......
...@@ -147,6 +147,7 @@ public class GoblinNftGoodsAppServiceImpl implements IGoblinNftGoodsAppService { ...@@ -147,6 +147,7 @@ public class GoblinNftGoodsAppServiceImpl implements IGoblinNftGoodsAppService {
GoblinGoodsSkuInfoVo skuInfoVo = (GoblinGoodsSkuInfoVo) map.get("vo"); GoblinGoodsSkuInfoVo skuInfoVo = (GoblinGoodsSkuInfoVo) map.get("vo");
Integer tagType = (Integer) map.get("tagType"); Integer tagType = (Integer) map.get("tagType");
String listId = (String) map.get("listId"); String listId = (String) map.get("listId");
LocalDateTime baseSaleStartTime = (LocalDateTime) map.get("baseSaleStartTime");
if (goblinRedisUtils.getSkuAllStatusShow(skuInfoVo)) { if (goblinRedisUtils.getSkuAllStatusShow(skuInfoVo)) {
//获取预约相关 //获取预约相关
AnticipateValueVo anticipateValueVo = goblinGoodsAnticipateMgService.getAnticipateValueBySkuId(skuId, 1); AnticipateValueVo anticipateValueVo = goblinGoodsAnticipateMgService.getAnticipateValueBySkuId(skuId, 1);
...@@ -176,6 +177,7 @@ public class GoblinNftGoodsAppServiceImpl implements IGoblinNftGoodsAppService { ...@@ -176,6 +177,7 @@ public class GoblinNftGoodsAppServiceImpl implements IGoblinNftGoodsAppService {
nftGoodsSkuInfoVo.setSystime(LocalDateTime.now()); nftGoodsSkuInfoVo.setSystime(LocalDateTime.now());
nftGoodsSkuInfoVo.setTagType(tagType); nftGoodsSkuInfoVo.setTagType(tagType);
nftGoodsSkuInfoVo.setListId(listId); nftGoodsSkuInfoVo.setListId(listId);
nftGoodsSkuInfoVo.setBaseSaleStartTime(baseSaleStartTime);
// 是否开启兑换 // 是否开启兑换
nftGoodsSkuInfoVo.setIsExchange(goblinRedisUtils.getIsExchange(skuId)); nftGoodsSkuInfoVo.setIsExchange(goblinRedisUtils.getIsExchange(skuId));
return nftGoodsSkuInfoVo; return nftGoodsSkuInfoVo;
......
...@@ -815,11 +815,13 @@ public class GoblinRedisUtils { ...@@ -815,11 +815,13 @@ public class GoblinRedisUtils {
map.put("tagType", null); map.put("tagType", null);
map.put("listId", null); map.put("listId", null);
map.put("whiteType", null); map.put("whiteType", null);
map.put("baseSaleStartTime", vo.getSaleStartTime());
} else {//未开售 } else {//未开售
GoblinListCollectVo collectVo = getCollectByNow(now, skuId); GoblinListCollectVo collectVo = getCollectByNow(now, skuId);
Integer tagType = null; Integer tagType = null;
Integer whiteType = null; Integer whiteType = null;
String listId = null; String listId = null;
LocalDateTime baseSaleStartTime = vo.getSaleStartTime();
if (collectVo != null) { if (collectVo != null) {
vo.setPrice(collectVo.getPrice()); vo.setPrice(collectVo.getPrice());
vo.setPriceV(collectVo.getPriceV()); vo.setPriceV(collectVo.getPriceV());
...@@ -840,6 +842,7 @@ public class GoblinRedisUtils { ...@@ -840,6 +842,7 @@ public class GoblinRedisUtils {
map.put("tagType", tagType); map.put("tagType", tagType);
map.put("listId", listId); map.put("listId", listId);
map.put("whiteType", whiteType); map.put("whiteType", whiteType);
map.put("baseSaleStartTime", baseSaleStartTime);
} }
return map; return map;
} }
......
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