|
|
@@ -1,5 +1,6 @@
|
|
|
package com.ydtech.modules.protocols.service.impl;
|
|
|
|
|
|
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.ydtech.modules.protocols.dao.PtlAgreementUndwrtRulesDictMapper;
|
|
|
@@ -36,7 +37,8 @@ public class PtlAgreementUndwrtRulesDictServiceImpl extends ServiceImpl<PtlAgree
|
|
|
@Override
|
|
|
public List<PtlAgreementUndwrtRulesDictLabal> getUndwrtRulesDictList() {
|
|
|
List<PtlAgreementUndwrtRulesDict> ptlAgreementUndwrtRulesDicts = baseMapper.selectList(new QueryWrapper<>(new PtlAgreementUndwrtRulesDict()));
|
|
|
- List<PtlAgreementUndwrtRulesDictLabal> list = ptlAgreementUndwrtRulesDictLabalService.list();
|
|
|
+ List<PtlAgreementUndwrtRulesDictLabal> list = ptlAgreementUndwrtRulesDictLabalService.list(new LambdaQueryWrapper<PtlAgreementUndwrtRulesDictLabal>()
|
|
|
+ .orderByAsc(PtlAgreementUndwrtRulesDictLabal::getSort));
|
|
|
|
|
|
Map<Integer,List<PtlAgreementUndwrtRulesDictLabal>> collect = list.stream().collect(Collectors.groupingBy(PtlAgreementUndwrtRulesDictLabal::getParentId));
|
|
|
list = collect.get(0);
|