bug修改
This commit is contained in:
@ -93,17 +93,20 @@ public class BusMaterialbatchdemandplanServiceImpl extends ServiceImpl<BusMateri
|
||||
bo1.setType("2");
|
||||
bo1.setWinningBidderId(bo.getSupplierId());
|
||||
List<BusBillofquantitiesLimitListVo> busBiddingPlanVos = busBiddingPlanService.getBillofquantitiesLimitListVo(bo1);
|
||||
Set<String> hashSet = new HashSet<>();
|
||||
busBiddingPlanVos.stream().forEach(vo -> {
|
||||
hashSet.add(vo.getName()+"+"+vo.getSpecification());
|
||||
});
|
||||
Page<BusMaterialbatchdemandplanVo> result = baseMapper.selectVoPage(pageQuery.build(), lqw);
|
||||
List<BusMaterialbatchdemandplanVo> list = result.getRecords().stream().filter(vo -> {
|
||||
String key = vo.getName() + "+" + vo.getSpecification(); // 拼接字符串(需与 Set 中格式一致)
|
||||
return hashSet.contains(key); // 仅保留 Set 中存在的数据
|
||||
}).toList();
|
||||
result.setRecords(list);
|
||||
return TableDataInfo.build(result);
|
||||
if (busBiddingPlanVos != null && !busBiddingPlanVos.isEmpty()) {
|
||||
Set<String> hashSet = new HashSet<>();
|
||||
busBiddingPlanVos.stream().forEach(vo -> {
|
||||
hashSet.add(vo.getName()+"+"+vo.getSpecification());
|
||||
});
|
||||
Page<BusMaterialbatchdemandplanVo> result = baseMapper.selectVoPage(pageQuery.build(), lqw);
|
||||
List<BusMaterialbatchdemandplanVo> list = result.getRecords().stream().filter(vo -> {
|
||||
String key = vo.getName() + "+" + vo.getSpecification(); // 拼接字符串(需与 Set 中格式一致)
|
||||
return hashSet.contains(key); // 仅保留 Set 中存在的数据
|
||||
}).toList();
|
||||
result.setRecords(list);
|
||||
return TableDataInfo.build(result);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -362,8 +362,10 @@ public class BusBiddingPlanServiceImpl extends ServiceImpl<BusBiddingPlanMapper,
|
||||
@Override
|
||||
public List<BusBillofquantitiesLimitListVo> getBillofquantitiesLimitListVo(BusBiddingPlanBo bo1) {
|
||||
List<Long> ids = baseMapper.getBillofquantitiesId(bo1.getType(),bo1.getWinningBidderId(),bo1.getProjectId());
|
||||
|
||||
return busBillofquantitiesLimitListService.queryVoByIds(ids);
|
||||
if (ids!=null && !ids.isEmpty()){
|
||||
return busBillofquantitiesLimitListService.queryVoByIds(ids);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user