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

Commit 8028cdec authored by 胡佳晨's avatar 胡佳晨

提交 如果盲盒库存为0 不能创建

parent 963f2446
......@@ -99,7 +99,7 @@ public class GoblinMixDetailsVo implements Serializable, Cloneable {
this.setDetailUrl(source.getDetailUrl());
this.setStock(source.getStock());
this.setStockLock(source.getStockLock());
this.setIsLock(0);
this.setIsLock(1);
this.setLimit(source.getLimit());
this.setWhiteType(source.getWhiteType());
this.setWhiteUrl(source.getWhiteUrl());
......
......@@ -296,6 +296,9 @@ public class GoblinMixServiceImpl implements IGoblinMixService {
nftBoxUtils.arrangeHitRatioMap(map, hitRatioCount);
}
Map<String, Integer> skuMap = nftBoxUtils.getSkuHitRatio(stock * item.getCount(), map);
if(skuMap.size()==0){
errorNameList.add(item.getSkuName());
}
for (String key : skuMap.keySet()) {
Integer stockNum = skuMap.get(key);
//库存
......
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