|
|
@@ -39,7 +39,9 @@ public class PtlAgreementUndwrtRulesAttrServiceImpl extends ServiceImpl<PtlAgree
|
|
|
@Override
|
|
|
public List<PtlAgreementUndwrtRulesAttr> getUndwrtRulesAttrList(String companyId){
|
|
|
List<PtlAgreementUndwrtRulesDictLabal> undwrtRulesDictList = ptlAgreementUndwrtRulesDictService.getUndwrtRulesDictList();
|
|
|
- List<PtlAgreementUndwrtRulesAttr> list = this.list(new LambdaQueryWrapper<PtlAgreementUndwrtRulesAttr>().eq(PtlAgreementUndwrtRulesAttr::getCompanyIds, "all"));
|
|
|
+ List<PtlAgreementUndwrtRulesAttr> list = this.list(new LambdaQueryWrapper<PtlAgreementUndwrtRulesAttr>()
|
|
|
+ .eq(PtlAgreementUndwrtRulesAttr::getCompanyIds, "all")
|
|
|
+ .orderByAsc(PtlAgreementUndwrtRulesAttr::getSort));
|
|
|
List<PtlAgreementUndwrtRulesAttr> companyList = this.list(new LambdaQueryWrapper<PtlAgreementUndwrtRulesAttr>().like(PtlAgreementUndwrtRulesAttr::getCompanyIds, companyId));
|
|
|
list.addAll(companyList);
|
|
|
list.forEach(attr -> {
|