|
|
@@ -791,12 +791,7 @@ public class KwpGoodsService {
|
|
|
if (Objects.isNull(supplyEntId)) {
|
|
|
throw new BusinessException("供应单位不能为空!");
|
|
|
}
|
|
|
- Map<Long, EntCacheResDto> map = remoteSystemService.queryEntTreeByIds(List.of(supplyEntId));
|
|
|
- EntCacheResDto ent = map.get(supplyEntId);
|
|
|
- if (Objects.isNull(ent) || Objects.isNull(ent.getId())) {
|
|
|
- throw new BusinessException("供应单位一级企业为空!");
|
|
|
- }
|
|
|
- wrapper.eq(KwpGoods::getSupplyEntId, ent.getId());
|
|
|
+ wrapper.eq(KwpGoods::getSupplyEntId, supplyEntId);
|
|
|
}
|
|
|
wrapper.like(StringUtils.isNotBlank(params.getName()), KwpGoods::getName, params.getName())
|
|
|
.eq(KwpGoods::getStatus, GoodsStatusEnum.PUT_ON_SHELVES.getCode())
|