فهرست منبع

因子添加排序

785834757 1 سال پیش
والد
کامیت
76052d6ef5

+ 3 - 1
src/main/java/com/ydtech/modules/protocols/service/impl/PtlAgreementUndwrtRulesAttrServiceImpl.java

@@ -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 -> {