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