Commit fa8aceb9 authored by shiyu's avatar shiyu

后台商品列表传参typeList

parent 705c4346
...@@ -160,11 +160,8 @@ public class SysSupplierItemServiceImpl implements SysSupplierItemService { ...@@ -160,11 +160,8 @@ public class SysSupplierItemServiceImpl implements SysSupplierItemService {
public Result findList(SupplierItemRequestDto dto) { public Result findList(SupplierItemRequestDto dto) {
try { try {
List<SupplierItemVo> supplierItemVos = new ArrayList<>(); List<SupplierItemVo> supplierItemVos = new ArrayList<>();
if (dto.getType() == null) { if (!org.springframework.util.CollectionUtils.isEmpty(dto.getTypeList())) {
dto.setTypeList(Arrays.asList(DistributionEnum.DistributionTypeEnum.FIXED_PRICE.getCode(), dto.setTypeList(dto.getTypeList());
DistributionEnum.DistributionTypeEnum.AUCTION.getCode(),
DistributionEnum.DistributionTypeEnum.DISCOUNT.getCode(),
DistributionEnum.DistributionTypeEnum.EXCHANGE.getCode()));
} }
Date now = new Date(); Date now = new Date();
List<SupplierItem> supplierItemList = supplierItemDao.findList(dto); List<SupplierItem> supplierItemList = supplierItemDao.findList(dto);
......
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