|
@@ -259,9 +259,14 @@ public class InsOrdersServiceImpl extends ServiceImpl<InsOrdersMapper, InsOrders
|
|
|
insOrders.setCompanyId(insAreaCompany.getCompanyId());
|
|
insOrders.setCompanyId(insAreaCompany.getCompanyId());
|
|
|
insOrders.setInsCompany(insAreaCompany.getInscompany());
|
|
insOrders.setInsCompany(insAreaCompany.getInscompany());
|
|
|
insOrders.setInsureTime(insAreaCompany.getPayDate());
|
|
insOrders.setInsureTime(insAreaCompany.getPayDate());
|
|
|
- //已承保记录保费数据
|
|
|
|
|
- saveFeeInfo(insAreaCompany);
|
|
|
|
|
-
|
|
|
|
|
|
|
+ String id = insAreaCompany.getId();
|
|
|
|
|
+ if (StringUtils.isNotEmpty(id)) {
|
|
|
|
|
+ List<SysPremiumDetails> sysPremiumDetails = sysPremiumDetailsMapper.selectList(new LambdaQueryWrapper<SysPremiumDetails>().eq(SysPremiumDetails::getCompanyId, id));
|
|
|
|
|
+ if ( sysPremiumDetails.size() == 0) {
|
|
|
|
|
+ //已承保记录保费数据
|
|
|
|
|
+ saveFeeInfo(insAreaCompany);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if (InsOrderStatusEnum.ACCEPT_INSURANCE.getCode().equals(insOrders.getOrderstatus())) {
|
|
if (InsOrderStatusEnum.ACCEPT_INSURANCE.getCode().equals(insOrders.getOrderstatus())) {
|