|
@@ -198,9 +198,20 @@ public class PtlAgreementUndwrtRulesNewServiceImpl extends ServiceImpl<PtlAgreem
|
|
|
return "";
|
|
return "";
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 验证承保规则表单
|
|
|
|
|
+ */
|
|
|
|
|
+ private void validateRules(AgreementUndwrtRules agreementUndwrtRules){
|
|
|
|
|
+ if(agreementUndwrtRules.getValidInd() == null)
|
|
|
|
|
+ {
|
|
|
|
|
+ throw new RuntimeException("有效标志不能为空");
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
@Transactional
|
|
@Transactional
|
|
|
@Override
|
|
@Override
|
|
|
public boolean rulesAdd(AgreementUndwrtRules agreementUndwrtRules) {
|
|
public boolean rulesAdd(AgreementUndwrtRules agreementUndwrtRules) {
|
|
|
|
|
+ validateRules(agreementUndwrtRules);
|
|
|
//添加承保规则主表信息
|
|
//添加承保规则主表信息
|
|
|
PtlAgreementUndwrtRulesNew ptlAgreementUndwrtRulesNew = new PtlAgreementUndwrtRulesNew();
|
|
PtlAgreementUndwrtRulesNew ptlAgreementUndwrtRulesNew = new PtlAgreementUndwrtRulesNew();
|
|
|
BeanUtils.copyProperties(agreementUndwrtRules, ptlAgreementUndwrtRulesNew);
|
|
BeanUtils.copyProperties(agreementUndwrtRules, ptlAgreementUndwrtRulesNew);
|