Commit b0eaf250 authored by shiyu's avatar shiyu

藏家权限3

parent e3cde1d1
......@@ -178,7 +178,7 @@ public class SysSupplierItemServiceImpl implements SysSupplierItemService {
//售出数量
Long selledNum = distributionOrderDao.countSelledNum(supplierItem.getId());
supplierItemVo.setSelledNum(selledNum == null ? 0 : selledNum);
if (dto.getType().intValue() == DistributionEnum.DistributionTypeEnum.COLLECT.getCode()) {
if (dto.getType() != null && dto.getType() == DistributionEnum.DistributionTypeEnum.COLLECT.getCode()) {
if (supplierItem.getStock() == 0) {
//库存为0,标识是可售的商品售罄了
supplierItemVo.setIsAbleSale(true);
......
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