|
|
@@ -104,22 +104,19 @@ public class BidingItemsServiceImpl extends ServiceImpl<BidingItemsMapper, Bidin
|
|
|
|
|
|
if (1 == distinguish) {
|
|
|
//获得标书明细
|
|
|
- LambdaQueryWrapper<BidingItems> lambdaQueryWrapper = new LambdaQueryWrapper<>();
|
|
|
- lambdaQueryWrapper.eq(BidingItems::getTenantId, AuthUtil.getTenantId());
|
|
|
- lambdaQueryWrapper.eq(BidingItems::getIsDeleted, 0);
|
|
|
- lambdaQueryWrapper.eq(BidingItems::getPid, pid);
|
|
|
- lambdaQueryWrapper.eq(BidingItems::getDistinguish, distinguish);
|
|
|
- List<BidingItems> bidingItemsList = baseMapper.selectList(lambdaQueryWrapper);
|
|
|
+ List<BidingItems> bidingItemsList = baseMapper.selectListByPid(pid);
|
|
|
list.addAll(bidingItemsList);
|
|
|
List<BidingItems> sortedList = list.stream().filter(e -> ObjectUtils.isNotNull(e.getSeaFreight()))
|
|
|
.sorted(Comparator.comparing(BidingItems::getSeaFreight))
|
|
|
.collect(Collectors.toList());
|
|
|
int sort = 1;
|
|
|
List<BidingItems> list1 = new ArrayList<>();
|
|
|
+ BigDecimal seaFreight = new BigDecimal("0.00");
|
|
|
+ int ranking = 1;
|
|
|
for (int i = 0; i < sortedList.size(); i++) {
|
|
|
if (i > 0) {
|
|
|
- if (sortedList.get(i).getSeaFreight().equals(sortedList.get(i - 1).getSeaFreight())) {
|
|
|
- sortedList.get(i).setRanking(sortedList.get(i - 1).getRanking());
|
|
|
+ if (sortedList.get(i).getSeaFreight().equals(seaFreight)) {
|
|
|
+ sortedList.get(i).setRanking(ranking);
|
|
|
} else {
|
|
|
sort = sort + 1;
|
|
|
sortedList.get(i).setRanking(sort);
|