|
@@ -50,6 +50,9 @@ public class InsAreaCompanyServiceImpl extends ServiceImpl<InsAreaCompanyMapper,
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private InsAreaCompanyKindService insAreaCompanyKindService;
|
|
private InsAreaCompanyKindService insAreaCompanyKindService;
|
|
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private InsAreaCompanyTaxArrearsService insAreaCompanyTaxArrearsService;
|
|
|
|
|
+
|
|
|
public InsAreaCompanyServiceImpl(@Lazy InsOrdersService insOrdersService, InsOrdersTrackService insOrdersTrackService) {
|
|
public InsAreaCompanyServiceImpl(@Lazy InsOrdersService insOrdersService, InsOrdersTrackService insOrdersTrackService) {
|
|
|
this.insOrdersService = insOrdersService;
|
|
this.insOrdersService = insOrdersService;
|
|
|
this.insOrdersTrackService = insOrdersTrackService;
|
|
this.insOrdersTrackService = insOrdersTrackService;
|
|
@@ -108,6 +111,7 @@ public class InsAreaCompanyServiceImpl extends ServiceImpl<InsAreaCompanyMapper,
|
|
|
|
|
|
|
|
//车辆信息
|
|
//车辆信息
|
|
|
InsAreaCompanyCarInfo insAreaCompanyCarInfo = insOrdersBo.getCarinfo().toInsAreaCompanyCarInfo();
|
|
InsAreaCompanyCarInfo insAreaCompanyCarInfo = insOrdersBo.getCarinfo().toInsAreaCompanyCarInfo();
|
|
|
|
|
+ insAreaCompanyCarInfo.setCompanyId(insAreaCompany.getCompanyId());
|
|
|
insAreaCompanyCarInfoService.save(insAreaCompanyCarInfo);
|
|
insAreaCompanyCarInfoService.save(insAreaCompanyCarInfo);
|
|
|
|
|
|
|
|
//人员信息
|
|
//人员信息
|
|
@@ -115,6 +119,9 @@ public class InsAreaCompanyServiceImpl extends ServiceImpl<InsAreaCompanyMapper,
|
|
|
InsAreaCompanyCarUserInfo ownerInfo = insOrdersBo.getOwnerinfo().toInsAreaCompanyCarUserInfo();
|
|
InsAreaCompanyCarUserInfo ownerInfo = insOrdersBo.getOwnerinfo().toInsAreaCompanyCarUserInfo();
|
|
|
InsAreaCompanyCarUserInfo applyInfo = insOrdersBo.getApplyinfo().toInsAreaCompanyCarUserInfo();
|
|
InsAreaCompanyCarUserInfo applyInfo = insOrdersBo.getApplyinfo().toInsAreaCompanyCarUserInfo();
|
|
|
InsAreaCompanyCarUserInfo insureInfo = insOrdersBo.getInsureinfo().toInsAreaCompanyCarUserInfo();
|
|
InsAreaCompanyCarUserInfo insureInfo = insOrdersBo.getInsureinfo().toInsAreaCompanyCarUserInfo();
|
|
|
|
|
+ ownerInfo.setCompanyId(insAreaCompany.getCompanyId());
|
|
|
|
|
+ applyInfo.setCompanyId(insAreaCompany.getCompanyId());
|
|
|
|
|
+ insureInfo.setCompanyId(insAreaCompany.getCompanyId());
|
|
|
insAreaCompanyCarUserInfos.add(ownerInfo);
|
|
insAreaCompanyCarUserInfos.add(ownerInfo);
|
|
|
insAreaCompanyCarUserInfos.add(applyInfo);
|
|
insAreaCompanyCarUserInfos.add(applyInfo);
|
|
|
insAreaCompanyCarUserInfos.add(insureInfo);
|
|
insAreaCompanyCarUserInfos.add(insureInfo);
|
|
@@ -123,6 +130,14 @@ public class InsAreaCompanyServiceImpl extends ServiceImpl<InsAreaCompanyMapper,
|
|
|
//risk
|
|
//risk
|
|
|
insAreaCompanyRiskService.saveRisks(insAreaCompany.getCompanyId(), insAreaCompany.getRisk());
|
|
insAreaCompanyRiskService.saveRisks(insAreaCompany.getCompanyId(), insAreaCompany.getRisk());
|
|
|
|
|
|
|
|
|
|
+ //king
|
|
|
|
|
+ insAreaCompanyKindService.saveKinds(insAreaCompany.getCompanyId(), insAreaCompany.getKing());
|
|
|
|
|
+
|
|
|
|
|
+ //tax
|
|
|
|
|
+ insAreaCompany.getTaxArrearsInfo().setCompanyId(insAreaCompany.getCompanyId());
|
|
|
|
|
+ insAreaCompanyTaxArrearsService.save(insAreaCompany.getTaxArrearsInfo());
|
|
|
|
|
+// insAreaCompanyTaxArrearsService.saveTaxArrears(insAreaCompany.getCompanyId(), insAreaCompany.getTaxArrearsInfo());
|
|
|
|
|
+
|
|
|
insOrdersTrackService.addingTrajectories(insAreaCompany);
|
|
insOrdersTrackService.addingTrajectories(insAreaCompany);
|
|
|
insOrdersService.updateByOrderStatus(insAreaCompany);
|
|
insOrdersService.updateByOrderStatus(insAreaCompany);
|
|
|
}
|
|
}
|