|
|
@@ -76,78 +76,26 @@ public class ImportAsyncServiceImpl extends ServiceImpl<ImportAsyncMapper, Impor
|
|
|
|
|
|
if (!CollectionUtils.isEmpty(dtoList)) {
|
|
|
for (InsBxPlyIncomeExcelDto excelItem : dtoList) {
|
|
|
+ InsImportResult insImportResult = new InsImportResult();
|
|
|
+
|
|
|
String reason = "";
|
|
|
i = i + 1;
|
|
|
params.clear();
|
|
|
if (StringUtils.isNotEmpty(excelItem.getLicenseno())) {
|
|
|
String licenseno = excelItem.getLicenseno();//车牌号
|
|
|
params.put("licenseno", licenseno);
|
|
|
- InsPlyIncome byBxLicenseno = insPlyIncomeMapper.findByBxLicenseno(params);
|
|
|
- if (ObjectUtils.isEmpty(byBxLicenseno)) {
|
|
|
- reason = "该数据车牌号有问题";
|
|
|
- }
|
|
|
}
|
|
|
if (StringUtils.isNotEmpty(excelItem.getPolicyno())) {
|
|
|
String policyno = excelItem.getPolicyno(); //交强保单号
|
|
|
params.put("policyno", policyno);
|
|
|
- InsPlyIncome byBxLicenseno = insPlyIncomeMapper.findByBxLicenseno(params);
|
|
|
- if (ObjectUtils.isEmpty(byBxLicenseno)) {
|
|
|
- reason = "该数据交强保单号有问题";
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
if (StringUtils.isNotEmpty(excelItem.getSyPolicyno())) {
|
|
|
String syPolicyno = excelItem.getSyPolicyno(); //商业保单号
|
|
|
params.put("syPolicyno", syPolicyno);
|
|
|
- InsPlyIncome byBxLicenseno = insPlyIncomeMapper.findByBxLicenseno(params);
|
|
|
- if (ObjectUtils.isEmpty(byBxLicenseno)) {
|
|
|
- reason = "该数据商业保单号有问题";
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
- if (excelItem.getJqSuperviseCostsPremiums() != null && excelItem.getJqSuperviseCostsPremiums().compareTo(BigDecimal.ZERO) != 0) {
|
|
|
- params.put("jqSuperviseCostsPremiums", excelItem.getJqSuperviseCostsPremiums());
|
|
|
- InsPlyIncome byBxLicenseno = insPlyIncomeMapper.findByBxLicenseno(params);
|
|
|
- if (ObjectUtils.isEmpty(byBxLicenseno)) {
|
|
|
- reason = "该数据交强手续费金额有问题";
|
|
|
- }
|
|
|
- }
|
|
|
- if (excelItem.getJqSuperviseCostsProportion() != null && excelItem.getJqSuperviseCostsProportion().compareTo(BigDecimal.ZERO) != 0) {
|
|
|
- params.put("jqSuperviseCostsProportion", excelItem.getJqSuperviseCostsProportion());
|
|
|
- InsPlyIncome byBxLicenseno = insPlyIncomeMapper.findByBxLicenseno(params);
|
|
|
- if (ObjectUtils.isEmpty(byBxLicenseno)) {
|
|
|
- reason = "该数据交强手续费比例有问题";
|
|
|
- }
|
|
|
- }
|
|
|
- if (excelItem.getSySuperviseCostsProportion() != null && excelItem.getSySuperviseCostsProportion().compareTo(BigDecimal.ZERO) != 0) {
|
|
|
- params.put("sySuperviseCostsProportion", excelItem.getSySuperviseCostsProportion());
|
|
|
- InsPlyIncome byBxLicenseno = insPlyIncomeMapper.findByBxLicenseno(params);
|
|
|
- if (ObjectUtils.isEmpty(byBxLicenseno)) {
|
|
|
- reason = "该数据商业手续费比例有问题";
|
|
|
- }
|
|
|
- }
|
|
|
|
|
|
- if (excelItem.getSySuperviseCostsPremiums() != null && excelItem.getSySuperviseCostsPremiums().compareTo(BigDecimal.ZERO) != 0) {
|
|
|
- params.put("sySuperviseCostsPremiums", excelItem.getSySuperviseCostsPremiums());
|
|
|
- InsPlyIncome byBxLicenseno = insPlyIncomeMapper.findByBxLicenseno(params);
|
|
|
- if (ObjectUtils.isEmpty(byBxLicenseno)) {
|
|
|
- reason = "该数据商业手续费金额有问题";
|
|
|
- }
|
|
|
- }
|
|
|
- if (excelItem.getJqPremium() != null && excelItem.getJqPremium().compareTo(BigDecimal.ZERO) != 0) {
|
|
|
- params.put("jqPremium", excelItem.getJqPremium());
|
|
|
- InsPlyIncome byBxLicenseno = insPlyIncomeMapper.findByBxLicenseno(params);
|
|
|
- if (ObjectUtils.isEmpty(byBxLicenseno)) {
|
|
|
- reason = "该数据交强保费有问题";
|
|
|
- }
|
|
|
- }
|
|
|
- if (excelItem.getSyPremium() != null && excelItem.getSyPremium().compareTo(BigDecimal.ZERO) != 0) {
|
|
|
- params.put("syPremium", excelItem.getSyPremium());
|
|
|
- InsPlyIncome byBxLicenseno = insPlyIncomeMapper.findByBxLicenseno(params);
|
|
|
- if (ObjectUtils.isEmpty(byBxLicenseno)) {
|
|
|
- reason = "该数据商业保费有问题";
|
|
|
- }
|
|
|
- }
|
|
|
// 只查手续费
|
|
|
params.put("isOther", "0");
|
|
|
params.put("isNotCar", isNotCar);
|
|
|
@@ -163,8 +111,51 @@ public class ImportAsyncServiceImpl extends ServiceImpl<ImportAsyncMapper, Impor
|
|
|
if (insPlyIncome.getCommissionFeevalue() != null && insPlyIncome.getCommissionFeevalue().compareTo(BigDecimal.ZERO) != 0) {
|
|
|
totalAmount = totalAmount.add(insPlyIncome.getCommissionFeevalue()); //添加总手续费
|
|
|
}
|
|
|
+ if (excelItem.getJqSuperviseCostsPremiums() != null && excelItem.getJqSuperviseCostsPremiums().compareTo(BigDecimal.ZERO) != 0) {
|
|
|
+ params.put("jqSuperviseCostsPremiums", excelItem.getJqSuperviseCostsPremiums());
|
|
|
+ InsPlyIncome byBxLicenseno = insPlyIncomeMapper.findByBxLicenseno(params);
|
|
|
+ if (ObjectUtils.isEmpty(byBxLicenseno)) {
|
|
|
+ reason = "该数据交强手续费金额有问题";
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (excelItem.getJqSuperviseCostsProportion() != null && excelItem.getJqSuperviseCostsProportion().compareTo(BigDecimal.ZERO) != 0) {
|
|
|
+ params.put("jqSuperviseCostsProportion", excelItem.getJqSuperviseCostsProportion());
|
|
|
+ InsPlyIncome byBxLicenseno = insPlyIncomeMapper.findByBxLicenseno(params);
|
|
|
+ if (ObjectUtils.isEmpty(byBxLicenseno)) {
|
|
|
+ reason = "该数据交强手续费比例有问题";
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (excelItem.getSySuperviseCostsProportion() != null && excelItem.getSySuperviseCostsProportion().compareTo(BigDecimal.ZERO) != 0) {
|
|
|
+ params.put("sySuperviseCostsProportion", excelItem.getSySuperviseCostsProportion());
|
|
|
+ InsPlyIncome byBxLicenseno = insPlyIncomeMapper.findByBxLicenseno(params);
|
|
|
+ if (ObjectUtils.isEmpty(byBxLicenseno)) {
|
|
|
+ reason = "该数据商业手续费比例有问题";
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if (excelItem.getSySuperviseCostsPremiums() != null && excelItem.getSySuperviseCostsPremiums().compareTo(BigDecimal.ZERO) != 0) {
|
|
|
+ params.put("sySuperviseCostsPremiums", excelItem.getSySuperviseCostsPremiums());
|
|
|
+ InsPlyIncome byBxLicenseno = insPlyIncomeMapper.findByBxLicenseno(params);
|
|
|
+ if (ObjectUtils.isEmpty(byBxLicenseno)) {
|
|
|
+ reason = "该数据商业手续费金额有问题";
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (excelItem.getJqPremium() != null && excelItem.getJqPremium().compareTo(BigDecimal.ZERO) != 0) {
|
|
|
+ params.put("jqPremium", excelItem.getJqPremium());
|
|
|
+ InsPlyIncome byBxLicenseno = insPlyIncomeMapper.findByBxLicenseno(params);
|
|
|
+ if (ObjectUtils.isEmpty(byBxLicenseno)) {
|
|
|
+ reason = "该数据交强保费有问题";
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (excelItem.getSyPremium() != null && excelItem.getSyPremium().compareTo(BigDecimal.ZERO) != 0) {
|
|
|
+ params.put("syPremium", excelItem.getSyPremium());
|
|
|
+ InsPlyIncome byBxLicenseno = insPlyIncomeMapper.findByBxLicenseno(params);
|
|
|
+ if (ObjectUtils.isEmpty(byBxLicenseno)) {
|
|
|
+ reason = "该数据商业保费有问题";
|
|
|
+ }
|
|
|
+ }
|
|
|
} else {
|
|
|
- InsImportResult insImportResult = new InsImportResult();
|
|
|
+ reason = "查询不到该车辆";
|
|
|
if (StringUtils.isNotEmpty(excelItem.getLicenseno())) {
|
|
|
insImportResult.setLicenseno(excelItem.getLicenseno());
|
|
|
}
|
|
|
@@ -174,9 +165,12 @@ public class ImportAsyncServiceImpl extends ServiceImpl<ImportAsyncMapper, Impor
|
|
|
if (StringUtils.isNotEmpty(excelItem.getSyPolicyno())) {
|
|
|
insImportResult.setSyPolicyno(excelItem.getSyPolicyno());
|
|
|
}
|
|
|
- if(StringUtils.isNotEmpty(reason)){
|
|
|
- insImportResult.setReason(reason);
|
|
|
- }
|
|
|
+
|
|
|
+ }
|
|
|
+ if(StringUtils.isNotEmpty(reason)){
|
|
|
+ insImportResult.setReason(reason);
|
|
|
+ }
|
|
|
+ if(StringUtils.isNotEmpty(insImportResult.getLicenseno())){
|
|
|
insImportResultsExcel.add(insImportResult);
|
|
|
}
|
|
|
}
|
|
|
@@ -258,51 +252,25 @@ public class ImportAsyncServiceImpl extends ServiceImpl<ImportAsyncMapper, Impor
|
|
|
|
|
|
if (!CollectionUtils.isEmpty(dtoList)) {
|
|
|
for (InsBxOtherExcelDto excelItem : dtoList) {
|
|
|
+ InsImportResult insImportResult = new InsImportResult();
|
|
|
String reason = "";
|
|
|
i = i + 1;
|
|
|
params.clear();
|
|
|
if (StringUtils.isNotEmpty(excelItem.getLicenseno())) {
|
|
|
String licenseno = excelItem.getLicenseno();//车牌号
|
|
|
params.put("licenseno", licenseno);
|
|
|
- InsPlyIncome byBxLicenseno = insPlyIncomeMapper.findByBxLicenseno(params);
|
|
|
- if (ObjectUtils.isEmpty(byBxLicenseno)) {
|
|
|
- reason = "该数据车牌号有问题";
|
|
|
- }
|
|
|
}
|
|
|
if (StringUtils.isNotEmpty(excelItem.getPolicyno())) {
|
|
|
String policyno = excelItem.getPolicyno(); //交强保单号
|
|
|
params.put("policyno", policyno);
|
|
|
- InsPlyIncome byBxLicenseno = insPlyIncomeMapper.findByBxLicenseno(params);
|
|
|
- if (ObjectUtils.isEmpty(byBxLicenseno)) {
|
|
|
- reason = "该数据交强保单号有问题";
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
if (StringUtils.isNotEmpty(excelItem.getSyPolicyno())) {
|
|
|
String syPolicyno = excelItem.getSyPolicyno(); //商业保单号
|
|
|
params.put("syPolicyno", syPolicyno);
|
|
|
- InsPlyIncome byBxLicenseno = insPlyIncomeMapper.findByBxLicenseno(params);
|
|
|
- if (ObjectUtils.isEmpty(byBxLicenseno)) {
|
|
|
- reason = "该数据商业保单号有问题";
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
- if (excelItem.getJqOtherCostsProportion()!=null && excelItem.getJqOtherCostsProportion().compareTo(BigDecimal.ZERO) != 0) {
|
|
|
- BigDecimal jqOtherCostsProportion = excelItem.getJqOtherCostsProportion();//商业保单号
|
|
|
- params.put("jqOtherCostsProportion", jqOtherCostsProportion);
|
|
|
- InsPlyIncome byBxLicenseno = insPlyIncomeMapper.findByBxLicenseno(params);
|
|
|
- if (ObjectUtils.isEmpty(byBxLicenseno)) {
|
|
|
- reason = "该数据交强跟单比例有问题";
|
|
|
- }
|
|
|
- }
|
|
|
- if (excelItem.getSyOtherCostsProportion()!=null && excelItem.getSyOtherCostsProportion().compareTo(BigDecimal.ZERO) != 0) {
|
|
|
- BigDecimal syOtherCostsProportion = excelItem.getSyOtherCostsProportion();//商业保单号
|
|
|
- params.put("syOtherCostsProportion", syOtherCostsProportion);
|
|
|
- InsPlyIncome byBxLicenseno = insPlyIncomeMapper.findByBxLicenseno(params);
|
|
|
- if (ObjectUtils.isEmpty(byBxLicenseno)) {
|
|
|
- reason = "该数据商业跟单比例有问题";
|
|
|
- }
|
|
|
- }
|
|
|
+
|
|
|
// 只查手续费
|
|
|
params.put("isOther", "1");
|
|
|
params.put("isNotCar", isNotCar);
|
|
|
@@ -314,12 +282,30 @@ public class ImportAsyncServiceImpl extends ServiceImpl<ImportAsyncMapper, Impor
|
|
|
agreementId = insPlyIncome.getAgreementId(); //协议id
|
|
|
}
|
|
|
if (ObjectUtils.isNotEmpty(insPlyIncome)) { // 比配上汇总金额 未匹配则返回到数据当中
|
|
|
+ if (excelItem.getJqOtherCostsProportion()!=null && excelItem.getJqOtherCostsProportion().compareTo(BigDecimal.ZERO) != 0) {
|
|
|
+ BigDecimal jqOtherCostsProportion = excelItem.getJqOtherCostsProportion();//商业保单号
|
|
|
+ params.put("jqOtherCostsProportion", jqOtherCostsProportion);
|
|
|
+ InsPlyIncome byBxLicenseno = insPlyIncomeMapper.findByBxLicenseno(params);
|
|
|
+ if (ObjectUtils.isEmpty(byBxLicenseno)) {
|
|
|
+ reason = "该数据交强跟单比例有问题";
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (excelItem.getSyOtherCostsProportion()!=null && excelItem.getSyOtherCostsProportion().compareTo(BigDecimal.ZERO) != 0) {
|
|
|
+ BigDecimal syOtherCostsProportion = excelItem.getSyOtherCostsProportion();//商业保单号
|
|
|
+ params.put("syOtherCostsProportion", syOtherCostsProportion);
|
|
|
+ InsPlyIncome byBxLicenseno = insPlyIncomeMapper.findByBxLicenseno(params);
|
|
|
+ if (ObjectUtils.isEmpty(byBxLicenseno)) {
|
|
|
+ reason = "该数据商业跟单比例有问题";
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
idList.add(insPlyIncome.getId());
|
|
|
- if (insPlyIncome.getCommissionFeevalue() != null && insPlyIncome.getCommissionFeevalue().compareTo(BigDecimal.ZERO) != 0) {
|
|
|
- totalAmount = totalAmount.add(insPlyIncome.getCommissionFeevalue()); //添加总手续费
|
|
|
+ if (insPlyIncome.getOtherFeevalue() != null && insPlyIncome.getOtherFeevalue().compareTo(BigDecimal.ZERO) != 0) {
|
|
|
+ totalAmount = totalAmount.add(insPlyIncome.getOtherFeevalue()); //添加总跟单费
|
|
|
}
|
|
|
} else {
|
|
|
- InsImportResult insImportResult = new InsImportResult();
|
|
|
+
|
|
|
+ reason = "查询不到该车辆";
|
|
|
if (StringUtils.isNotEmpty(excelItem.getLicenseno())) {
|
|
|
insImportResult.setLicenseno(excelItem.getLicenseno());
|
|
|
}
|
|
|
@@ -329,9 +315,12 @@ public class ImportAsyncServiceImpl extends ServiceImpl<ImportAsyncMapper, Impor
|
|
|
if (StringUtils.isNotEmpty(excelItem.getSyPolicyno())) {
|
|
|
insImportResult.setSyPolicyno(excelItem.getSyPolicyno());
|
|
|
}
|
|
|
- if(StringUtils.isNotEmpty(reason)){
|
|
|
- insImportResult.setReason(reason);
|
|
|
- }
|
|
|
+
|
|
|
+ }
|
|
|
+ if(StringUtils.isNotEmpty(reason)){
|
|
|
+ insImportResult.setReason(reason);
|
|
|
+ }
|
|
|
+ if(StringUtils.isNotEmpty(insImportResult.getLicenseno()) ){
|
|
|
insImportResultsExcel.add(insImportResult);
|
|
|
}
|
|
|
}
|
|
|
@@ -388,33 +377,19 @@ public class ImportAsyncServiceImpl extends ServiceImpl<ImportAsyncMapper, Impor
|
|
|
|
|
|
if (!CollectionUtils.isEmpty(dtoList)) {
|
|
|
for (InsNoBxOtherExcelDto excelItem : dtoList) {
|
|
|
+ InsImportResult insImportResult = new InsImportResult();
|
|
|
String reason = "";
|
|
|
i = i + 1;
|
|
|
params.clear();
|
|
|
if (StringUtils.isNotEmpty(excelItem.getLicenseno())) {
|
|
|
String licenseno = excelItem.getLicenseno();//车牌号
|
|
|
params.put("licenseno", licenseno);
|
|
|
- InsPlyIncome byBxLicenseno = insPlyIncomeMapper.findByBxLicenseno(params);
|
|
|
- if (ObjectUtils.isEmpty(byBxLicenseno)) {
|
|
|
- reason = "该数据车牌号有问题";
|
|
|
- }
|
|
|
}
|
|
|
if (StringUtils.isNotEmpty(excelItem.getNoPolicyno())) {
|
|
|
- String noPolicyno = excelItem.getNoPolicyno(); //交强保单号
|
|
|
+ String noPolicyno = excelItem.getNoPolicyno(); //非车保单号
|
|
|
params.put("noPolicyno", noPolicyno);
|
|
|
- InsPlyIncome byBxLicenseno = insPlyIncomeMapper.findByBxLicenseno(params);
|
|
|
- if (ObjectUtils.isEmpty(byBxLicenseno)) {
|
|
|
- reason = "该数据非车保单号有问题";
|
|
|
- }
|
|
|
- }
|
|
|
- if (excelItem.getNoOtherCostsProportion()!=null && excelItem.getNoOtherCostsProportion().compareTo(BigDecimal.ZERO) != 0) {
|
|
|
- BigDecimal noOtherCostsProportion = excelItem.getNoOtherCostsProportion();//商业保单号
|
|
|
- params.put("noOtherCostsProportion", noOtherCostsProportion);
|
|
|
- InsPlyIncome byBxLicenseno = insPlyIncomeMapper.findByBxLicenseno(params);
|
|
|
- if (ObjectUtils.isEmpty(byBxLicenseno)) {
|
|
|
- reason = "该数据非车跟单比例有问题";
|
|
|
- }
|
|
|
}
|
|
|
+
|
|
|
// 只查手续费
|
|
|
params.put("isOther", "1");
|
|
|
params.put("isNotCar", isNotCar);
|
|
|
@@ -426,21 +401,33 @@ public class ImportAsyncServiceImpl extends ServiceImpl<ImportAsyncMapper, Impor
|
|
|
agreementId = insPlyIncome.getAgreementId(); //协议id
|
|
|
}
|
|
|
if (ObjectUtils.isNotEmpty(insPlyIncome)) { // 比配上汇总金额 未匹配则返回到数据当中
|
|
|
- if (insPlyIncome.getCommissionFeevalue() != null && insPlyIncome.getCommissionFeevalue().compareTo(BigDecimal.ZERO) != 0) {
|
|
|
- totalAmount = totalAmount.add(insPlyIncome.getCommissionFeevalue()); //添加总手续费
|
|
|
+ if (excelItem.getNoOtherCostsProportion()!=null && excelItem.getNoOtherCostsProportion().compareTo(BigDecimal.ZERO) != 0) {
|
|
|
+ BigDecimal noOtherCostsProportion = excelItem.getNoOtherCostsProportion();//商业保单号
|
|
|
+ params.put("noOtherCostsProportion", noOtherCostsProportion);
|
|
|
+ InsPlyIncome byBxLicenseno = insPlyIncomeMapper.findByBxLicenseno(params);
|
|
|
+ if (ObjectUtils.isEmpty(byBxLicenseno)) {
|
|
|
+ reason = "该数据非车跟单比例有问题";
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (insPlyIncome.getOtherFeevalue() != null && insPlyIncome.getOtherFeevalue().compareTo(BigDecimal.ZERO) != 0) {
|
|
|
+ totalAmount = totalAmount.add(insPlyIncome.getOtherFeevalue()); //添加总手续费
|
|
|
}
|
|
|
|
|
|
} else {
|
|
|
- InsImportResult insImportResult = new InsImportResult();
|
|
|
+ reason = "查询不到该车辆";
|
|
|
+
|
|
|
if (StringUtils.isNotEmpty(excelItem.getLicenseno())) {
|
|
|
insImportResult.setLicenseno(excelItem.getLicenseno());
|
|
|
}
|
|
|
if (StringUtils.isNotEmpty(excelItem.getNoPolicyno())) {
|
|
|
insImportResult.setPolicyno(excelItem.getNoPolicyno());
|
|
|
}
|
|
|
- if(StringUtils.isNotEmpty(reason)){
|
|
|
- insImportResult.setReason(reason);
|
|
|
- }
|
|
|
+
|
|
|
+ }
|
|
|
+ if(StringUtils.isNotEmpty(reason)){
|
|
|
+ insImportResult.setReason(reason);
|
|
|
+ }
|
|
|
+ if(StringUtils.isNotEmpty(insImportResult.getLicenseno())){
|
|
|
insImportResultsExcel.add(insImportResult);
|
|
|
}
|
|
|
}
|
|
|
@@ -496,33 +483,19 @@ public class ImportAsyncServiceImpl extends ServiceImpl<ImportAsyncMapper, Impor
|
|
|
|
|
|
if (!CollectionUtils.isEmpty(dtoList)) {
|
|
|
for (InsBxNoPlyIncomeExcelDto excelItem : dtoList) {
|
|
|
+ InsImportResult insImportResult = new InsImportResult();
|
|
|
String reason = "";
|
|
|
i = i + 1;
|
|
|
params.clear();
|
|
|
if (StringUtils.isNotEmpty(excelItem.getLicenseno())) {
|
|
|
String licenseno = excelItem.getLicenseno();//车牌号
|
|
|
params.put("licenseno", licenseno);
|
|
|
- InsPlyIncome byBxLicenseno = insPlyIncomeMapper.findByBxLicenseno(params);
|
|
|
- if (ObjectUtils.isEmpty(byBxLicenseno)) {
|
|
|
- reason = "该数据车牌号有问题";
|
|
|
- }
|
|
|
}
|
|
|
if (StringUtils.isNotEmpty(excelItem.getNoPolicyno())) {
|
|
|
String noPolicyno = excelItem.getNoPolicyno(); //交强保单号
|
|
|
params.put("noPolicyno", noPolicyno);
|
|
|
- InsPlyIncome byBxLicenseno = insPlyIncomeMapper.findByBxLicenseno(params);
|
|
|
- if (ObjectUtils.isEmpty(byBxLicenseno)) {
|
|
|
- reason = "该数据非车保单号有问题";
|
|
|
- }
|
|
|
- }
|
|
|
- if (excelItem.getNoSuperviseCostsProportion()!=null && excelItem.getNoSuperviseCostsProportion().compareTo(BigDecimal.ZERO) != 0) {
|
|
|
- BigDecimal noSuperviseCostsProportion = excelItem.getNoSuperviseCostsProportion();//商业保单号
|
|
|
- params.put("noSuperviseCostsProportion", noSuperviseCostsProportion);
|
|
|
- InsPlyIncome byBxLicenseno = insPlyIncomeMapper.findByBxLicenseno(params);
|
|
|
- if (ObjectUtils.isEmpty(byBxLicenseno)) {
|
|
|
- reason = "该数据非车手续费比例有问题";
|
|
|
- }
|
|
|
}
|
|
|
+
|
|
|
// 只查手续费
|
|
|
params.put("isOther", "1");
|
|
|
params.put("isNotCar", "1");
|
|
|
@@ -538,18 +511,31 @@ public class ImportAsyncServiceImpl extends ServiceImpl<ImportAsyncMapper, Impor
|
|
|
if (insPlyIncome.getCommissionFeevalue() != null && insPlyIncome.getCommissionFeevalue().compareTo(BigDecimal.ZERO) != 0) {
|
|
|
totalAmount = totalAmount.add(insPlyIncome.getCommissionFeevalue()); //添加总手续费
|
|
|
}
|
|
|
+ if (excelItem.getNoSuperviseCostsProportion()!=null && excelItem.getNoSuperviseCostsProportion().compareTo(BigDecimal.ZERO) != 0) {
|
|
|
+ BigDecimal noSuperviseCostsProportion = excelItem.getNoSuperviseCostsProportion();//商业保单号
|
|
|
+ params.put("noSuperviseCostsProportion", noSuperviseCostsProportion);
|
|
|
+ InsPlyIncome byBxLicenseno = insPlyIncomeMapper.findByBxLicenseno(params);
|
|
|
+ if (ObjectUtils.isEmpty(byBxLicenseno)) {
|
|
|
+ reason = "该数据非车手续费比例有问题";
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
} else {
|
|
|
- InsImportResult insImportResult = new InsImportResult();
|
|
|
+
|
|
|
+ reason = "查询不到该车辆";
|
|
|
+
|
|
|
if (StringUtils.isNotEmpty(excelItem.getLicenseno())) {
|
|
|
insImportResult.setLicenseno(excelItem.getLicenseno());
|
|
|
}
|
|
|
if (StringUtils.isNotEmpty(excelItem.getNoPolicyno())) {
|
|
|
insImportResult.setPolicyno(excelItem.getNoPolicyno());
|
|
|
}
|
|
|
- if(StringUtils.isNotEmpty(reason)){
|
|
|
- insImportResult.setReason(reason);
|
|
|
- }
|
|
|
+
|
|
|
+ }
|
|
|
+ if(StringUtils.isNotEmpty(reason)){
|
|
|
+ insImportResult.setReason(reason);
|
|
|
+ }
|
|
|
+ if(StringUtils.isNotEmpty(insImportResult.getLicenseno())){
|
|
|
insImportResultsExcel.add(insImportResult);
|
|
|
}
|
|
|
}
|