浏览代码

凯和船期查询修改

lazhaoqian 4 年之前
父节点
当前提交
ebb33842aa
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      ruoyi-shipping/src/main/java/com/ruoyi/shipping/service/impl/TVoyageServiceImpl.java

+ 1 - 1
ruoyi-shipping/src/main/java/com/ruoyi/shipping/service/impl/TVoyageServiceImpl.java

@@ -58,7 +58,7 @@ public class TVoyageServiceImpl implements ITVoyageService
     public List<TVoyage> freightList(TVoyage tVoyage) {
         List<TVoyage> tVoyages = new ArrayList<>();
         tVoyages = tVoyageMapper.selectTVoyageListNew(tVoyage);
-        tVoyages = tVoyages.stream().collect(Collectors.collectingAndThen(Collectors.toCollection(() -> new TreeSet<>(Comparator.comparing(TVoyage -> TVoyage.getfPortofloadid() + ";"+ TVoyage.getfDistinationid()))), ArrayList::new));
+        tVoyages = tVoyages.stream().collect(Collectors.collectingAndThen(Collectors.toCollection(() -> new TreeSet<>(Comparator.comparing(TVoyage -> TVoyage.getfPortofloadid() + ";"+ TVoyage.getfDistinationid()+ ";"+ TVoyage.getfPortoftransshipment()))), ArrayList::new));
         if (CollectionUtils.isNotEmpty(tVoyages)){
             for (TVoyage voyage : tVoyages) {
                 voyage.setTwenty(tCtnpriceItemsMapper.selectMoney(voyage.getfPortofloadid(), voyage.getfDistinationid(), "20GP"));