|
|
@@ -658,7 +658,9 @@ public class PtlAgreementUndwrtRulesServiceImpl extends ServiceImpl<PtlAgreement
|
|
|
List<PtlAgreementUndwrtRulesAttr> newAttrList = new ArrayList<>();
|
|
|
linkList.forEach(link -> {
|
|
|
if (attrMap.containsKey(link.getAttrCode())) {
|
|
|
- PtlAgreementUndwrtRulesAttr attr = attrMap.get(link.getAttrCode());
|
|
|
+ // clone 保证相同 attrCode 的多条记录不会互相覆盖
|
|
|
+ PtlAgreementUndwrtRulesAttr attr = new PtlAgreementUndwrtRulesAttr();
|
|
|
+ BeanUtils.copyProperties(attrMap.get(link.getAttrCode()), attr);
|
|
|
if ("checkbox".equals(attr.getAttrType()) || "select".equals(attr.getAttrType()) || "inputTag".equals(attr.getAttrType())) {
|
|
|
if (null != link.getMin()) {
|
|
|
attr.setId(link.getId());
|