Bläddra i källkod

凯和船期查询修改

lazhaoqian 4 år sedan
förälder
incheckning
ebb33842aa

+ 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"));