统计类型配置页面排序

This commit is contained in:
hzj
2024-10-10 18:20:51 +08:00
parent 275a07f790
commit 38b0f20ea9

View File

@@ -18,10 +18,7 @@ import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.CollectionUtils; import org.springframework.util.CollectionUtils;
import java.util.ArrayList; import java.util.*;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.stream.Collectors; import java.util.stream.Collectors;
/** /**
@@ -69,6 +66,7 @@ public class CsStatisticalSetPOServiceImpl extends MppServiceImpl<CsStatisticalS
List<DictTreeVO> dictTreeVOS = sysDicTreePOService.queryByPid(id); List<DictTreeVO> dictTreeVOS = sysDicTreePOService.queryByPid(id);
List<String> collect; List<String> collect;
if (!CollectionUtils.isEmpty(dictTreeVOS)) { if (!CollectionUtils.isEmpty(dictTreeVOS)) {
dictTreeVOS = dictTreeVOS.stream().sorted(Comparator.comparing(DictTreeVO::getSort)).collect(Collectors.toList());
List<String> collect3 = dictTreeVOS.stream().map(DictTreeVO::getId).collect(Collectors.toList()); List<String> collect3 = dictTreeVOS.stream().map(DictTreeVO::getId).collect(Collectors.toList());
collect3.add(id); collect3.add(id);
QueryWrapper<CsStatisticalSetPO> queryWrap = new QueryWrapper<>(); QueryWrapper<CsStatisticalSetPO> queryWrap = new QueryWrapper<>();