Commit bfb43441 authored by wangpeng's avatar wangpeng

Merge branch 'dev' into 'test'

修改盲盒规格默认值 See merge request !45
parents 62bf2968 8f2cd0ad
......@@ -42,6 +42,7 @@ import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.stream.Collectors;
import static com.fzm.mall.server.admin.goods_center.enums.type.GoodsTypeEnum.*;
......@@ -135,7 +136,9 @@ public class SpuServiceImpl extends ServiceImpl<SpuMapper, Spu> implements ISpuS
spu = beanMapper.map(pDTO, Spu.class);
spu.setGoodsId(goodsId);
spu.setMerchantId(merchantId);
spu.setBlindBoxRule("无");
if (!Objects.equals(spu.getSalesType(), SalesTypeEnum.BLIND_BOX.getType())){
spu.setBlindBoxRule("无");
}
Integer status = SpuStatusEnum.WAIT_CHECK.getStatus();
if ((pDTO.getCommodityPass().equals(CommodityPassTypeEnum.COPY.getType()) && pDTO.getSkuList().get(0).getNftSalesType().equals(NFTSalesTypeEnum.COPY.getType())) || pDTO.getCommodityPass().equals(CommodityPassTypeEnum.INNER.getType())) {
status = SpuStatusEnum.ISSUE.getStatus();
......
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