Commit 73dda337 authored by fangxinjiang's avatar fangxinjiang

商险自动化限制:新增、批增、替换-fxj

parent 9291fd13
...@@ -314,11 +314,16 @@ public class TInsurancePolicyServiceImpl extends ServiceImpl<TInsurancePolicyMap ...@@ -314,11 +314,16 @@ public class TInsurancePolicyServiceImpl extends ServiceImpl<TInsurancePolicyMap
if (null == type){ if (null == type){
errorMessageList.add(new ErrorMessage(excel.getRowIndex(), "保单号【" + excel.getPolicyNo() + "】的险种名称未找到,未导入",excel)); errorMessageList.add(new ErrorMessage(excel.getRowIndex(), "保单号【" + excel.getPolicyNo() + "】的险种名称未找到,未导入",excel));
continue; continue;
}else {
type = typeMapper.selectOne(Wrappers.<TInsuranceType>query().lambda()
.eq(TInsuranceType::getName,excel.getInsuranceTypeName())
.eq(TInsuranceType::getInsuranceCompanyId,company.getId()).last(CommonConstants.LAST_ONE_SQL));
if (null != type){
errorMessageList.add(new ErrorMessage(excel.getRowIndex(), "保单号【" + excel.getPolicyNo() + "】的险种与保险公司不一致,未导入",excel));
continue;
}
} }
if (!type.getInsuranceCompanyId().equals(company.getId())){
errorMessageList.add(new ErrorMessage(excel.getRowIndex(), "保单号【" + excel.getPolicyNo() + "】的险种与保险公司不一致,未导入",excel));
continue;
}
if (LocalDateUtil.parseLocalDate(excel.getPolicyStart()) == null){ if (LocalDateUtil.parseLocalDate(excel.getPolicyStart()) == null){
errorMessageList.add(new ErrorMessage(excel.getRowIndex(), "保单号【" + excel.getPolicyNo() + "】的保单开始时间格式错误,未导入",excel)); errorMessageList.add(new ErrorMessage(excel.getRowIndex(), "保单号【" + excel.getPolicyNo() + "】的保单开始时间格式错误,未导入",excel));
continue; continue;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment