feat: 去除多余代码

This commit is contained in:
weizhiqiang 2024-11-25 20:00:56 +08:00
parent 3d0b782651
commit 9707326d76

View file

@ -294,8 +294,8 @@ public class ShopMaterialStoreServiceImpl extends SkyeyeBusinessServiceImpl<Shop
Map<String, Object> params = inputObject.getParams();
List<String> materialIdList = JSONUtil.toList(params.get("materialId").toString(), null);
List<String> storeIdList = JSONUtil.toList(params.get("storeId").toString(), null);
materialIdList = materialIdList.stream().filter(StrUtil::isNotBlank).distinct().collect(Collectors.toList());
storeIdList = storeIdList.stream().filter(StrUtil::isNotBlank).distinct().collect(Collectors.toList());
materialIdList = materialIdList.stream().filter(StrUtil::isNotBlank).collect(Collectors.toList());
storeIdList = storeIdList.stream().filter(StrUtil::isNotBlank).collect(Collectors.toList());
if (CollectionUtil.isEmpty(materialIdList) || CollectionUtil.isEmpty(storeIdList)) {
return;
}