|
|
@@ -1,6 +1,7 @@
|
|
|
package com.jzg.organization.service.impl;
|
|
|
|
|
|
import cn.hutool.core.collection.CollUtil;
|
|
|
+import cn.hutool.core.util.StrUtil;
|
|
|
import cn.hutool.json.JSONUtil;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
|
|
@@ -55,6 +56,8 @@ public class PtlAgreementUndwrtRulesServiceImpl extends ServiceImpl<PtlAgreement
|
|
|
|
|
|
@Autowired
|
|
|
private PtlAgreementService ptlAgreementService;
|
|
|
+ @Autowired
|
|
|
+ private PtlAreaLicenseService ptlAreaLicenseService;
|
|
|
|
|
|
/**
|
|
|
* 协议规则列表
|
|
|
@@ -762,15 +765,20 @@ public class PtlAgreementUndwrtRulesServiceImpl extends ServiceImpl<PtlAgreement
|
|
|
}
|
|
|
}
|
|
|
if (linkList.getMinArray() != null) {
|
|
|
+ StringBuilder licenseInfo = new StringBuilder();
|
|
|
for(int i=0;i<linkList.getMinArray().length;i++) {
|
|
|
int finalI = i;
|
|
|
if(ptlAgreementUndwrtRulesAttr.getAttrCode().equals("LicenseNo") || ptlAgreementUndwrtRulesAttr.getAttrCode().equals("LicenseArea")) {
|
|
|
- returnMsg.append(linkList.getMinArray()[i]).append(",");
|
|
|
+ licenseInfo.append(linkList.getMinArray()[i]).append(",");
|
|
|
}else {
|
|
|
PtlAgreementUndwrtRulesDictLabal ptlAgreementUndwrtRulesDictLabal = ptlAgreementUndwrtRulesAttr.getDictLabal().stream().filter(x -> x.getCode().equals(linkList.getMinArray()[finalI])).findAny().get();
|
|
|
returnMsg.append(ptlAgreementUndwrtRulesDictLabal.getName()).append(",");
|
|
|
}
|
|
|
}
|
|
|
+ if(StrUtil.isNotEmpty(licenseInfo.toString())){
|
|
|
+ String licenseName = ptlAreaLicenseService.convertAreaNumber2License(licenseInfo.toString());
|
|
|
+ returnMsg.append(licenseName).append(",");
|
|
|
+ }
|
|
|
}
|
|
|
return returnMsg.toString();
|
|
|
}
|