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

Commit e2a53e65 authored by jiangxiulong's avatar jiangxiulong

NFT上传声明状态|1-已声明才展示

parent b186f89d
...@@ -51,6 +51,7 @@ public class GoblinNftJobServiceImpl { ...@@ -51,6 +51,7 @@ public class GoblinNftJobServiceImpl {
Criteria.where("skuType").is(1).and("delFlg").is("0") Criteria.where("skuType").is(1).and("delFlg").is("0")
.and("status").is("3").and("shelvesStatus").is("3") .and("status").is("3").and("shelvesStatus").is("3")
.and("skuAppear").is("0") .and("skuAppear").is("0")
.and("upchain").is(1)
); );
LocalDateTime nowTime = LocalDateTime.now(); LocalDateTime nowTime = LocalDateTime.now();
// 未开始的正序20个 // 未开始的正序20个
...@@ -66,6 +67,7 @@ public class GoblinNftJobServiceImpl { ...@@ -66,6 +67,7 @@ public class GoblinNftJobServiceImpl {
Criteria.where("skuType").is(1).and("delFlg").is("0") Criteria.where("skuType").is(1).and("delFlg").is("0")
.and("status").is("3").and("shelvesStatus").is("3") .and("status").is("3").and("shelvesStatus").is("3")
.and("skuAppear").is("0") .and("skuAppear").is("0")
.and("upchain").is(1)
); );
// 已开始的倒序80个 // 已开始的倒序80个
query2.addCriteria(Criteria.where("saleStartTime").lte(nowTime)); query2.addCriteria(Criteria.where("saleStartTime").lte(nowTime));
......
...@@ -1649,6 +1649,8 @@ public class GoblinRedisUtils { ...@@ -1649,6 +1649,8 @@ public class GoblinRedisUtils {
* private String soldoutStatus 是否售罄[0-否|1-是]; * private String soldoutStatus 是否售罄[0-否|1-是];
* *
* private String skuCanbuy 是否购买[0-否|1-是] 这个用来预览 前端自己判断; * private String skuCanbuy 是否购买[0-否|1-是] 这个用来预览 前端自己判断;
*
* Integer upchain NFT上传声明状态[0-待上传|1-已声明|2-声明失败|9-声明中]
*/ */
// 获取盲盒下藏品的库存 各种状态下不能算库存的排除掉 // 获取盲盒下藏品的库存 各种状态下不能算库存的排除掉
public int getSkuAllStatusStock(GoblinGoodsSkuInfoVo info) { public int getSkuAllStatusStock(GoblinGoodsSkuInfoVo info) {
...@@ -1672,6 +1674,7 @@ public class GoblinRedisUtils { ...@@ -1672,6 +1674,7 @@ public class GoblinRedisUtils {
&& info.getShelvesStatus().equals("3") && info.getShelvesStatus().equals("3")
&& (info.getSkuAppear() == null || info.getSkuAppear().equals("0")) && (info.getSkuAppear() == null || info.getSkuAppear().equals("0"))
&& info.getDelFlg().equals("0") && info.getDelFlg().equals("0")
&& info.getUpchain() == 1
) { ) {
return true; return true;
} else { } else {
......
...@@ -345,6 +345,8 @@ public class GoblinNftOrderUtils { ...@@ -345,6 +345,8 @@ public class GoblinNftOrderUtils {
* private String soldoutStatus 是否售罄[0-否|1-是]; * private String soldoutStatus 是否售罄[0-否|1-是];
* *
* private String skuCanbuy 是否购买[0-否|1-是] 这个用来预览 前端自己判断; * private String skuCanbuy 是否购买[0-否|1-是] 这个用来预览 前端自己判断;
*
* Integer upchain NFT上传声明状态[0-待上传|1-已声明|2-声明失败|9-声明中]
*/ */
// 获取盲盒下藏品的库存 各种状态下不能算库存的排除掉 // 获取盲盒下藏品的库存 各种状态下不能算库存的排除掉
public int getSkuAllStatusStock(GoblinGoodsSkuInfoVo info) { public int getSkuAllStatusStock(GoblinGoodsSkuInfoVo info) {
...@@ -368,6 +370,7 @@ public class GoblinNftOrderUtils { ...@@ -368,6 +370,7 @@ public class GoblinNftOrderUtils {
&& info.getShelvesStatus().equals("3") && info.getShelvesStatus().equals("3")
&& (info.getSkuAppear() == null || info.getSkuAppear().equals("0")) && (info.getSkuAppear() == null || info.getSkuAppear().equals("0"))
&& info.getDelFlg().equals("0") && info.getDelFlg().equals("0")
&& info.getUpchain() == 1
) { ) {
return true; return true;
} else { } else {
......
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