|
|
@@ -160,6 +160,13 @@ public class InsAreaCompanyServiceImpl extends ServiceImpl<InsAreaCompanyMapper,
|
|
|
public void insertCompanyAndOrders(InsAreaCompany insAreaCompany, InsAreaCompanyAccidentalDriving insAreaCompanyAccidentalDriving) {
|
|
|
//add by hxl 解决部分数据更新不了险种信息
|
|
|
insAreaCompany = updateEntityPruductAndPruductid(insAreaCompany);
|
|
|
+
|
|
|
+
|
|
|
+ //更新主订单的投保时间
|
|
|
+ insOrdersService.updateOrderStartingInsruanceTime(insAreaCompany.getOrderno(),insAreaCompany.getJqStartDate(),insAreaCompany.getJqEndDate(),
|
|
|
+ insAreaCompany.getSyStartDate(),insAreaCompany.getSyEndDate());
|
|
|
+
|
|
|
+
|
|
|
baseMapper.insert(insAreaCompany);
|
|
|
//保存驾意险信息
|
|
|
|
|
|
@@ -181,6 +188,11 @@ public class InsAreaCompanyServiceImpl extends ServiceImpl<InsAreaCompanyMapper,
|
|
|
List<InsAreaCompanyAccidentalDriving> insAreaCompanyAccidentalDriving) {
|
|
|
//add by hxl 解决部分数据更新不了险种信息
|
|
|
insAreaCompany = updateEntityPruductAndPruductid(insAreaCompany);
|
|
|
+
|
|
|
+ //更新主订单的投保时间
|
|
|
+ insOrdersService.updateOrderStartingInsruanceTime(insAreaCompany.getOrderno(),insAreaCompany.getJqStartDate(),insAreaCompany.getJqEndDate(),
|
|
|
+ insAreaCompany.getSyStartDate(),insAreaCompany.getSyEndDate());
|
|
|
+
|
|
|
baseMapper.insert(insAreaCompany);
|
|
|
//保存驾意险信息
|
|
|
InsAreaCompany finalInsAreaCompany = insAreaCompany;
|