xuhy
2025-10-28 c3998e0dcdec85e4631ae0d7df162fe2f86367cd
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TSysProductIntroductionServiceImpl.java
@@ -14,6 +14,7 @@
import org.springframework.stereotype.Service;
import org.springframework.util.CollectionUtils;
import java.util.Comparator;
import java.util.List;
import java.util.Objects;
import java.util.Set;
@@ -54,12 +55,7 @@
        pageInfo.setTotal(list.size());
        // 排序是否已读,未读的排前面,false排前面 true排后面
        list.stream().sorted((o1, o2) -> {
            if(o1.getIsView()){
                return 1;
            }
            return -1;
        }).collect(Collectors.toList());
//        list.sort(Comparator.comparing(TSysProductIntroductionVO::isView));
        if (pageInfo.getTotal() > index) {
            //此时存在数据