|
@@ -163,7 +163,6 @@ public class ImportAsyncServiceImpl extends ServiceImpl<ImportAsyncMapper, Impor
|
|
|
if (insPlyIncome.getCommissionFeevalue() != null && insPlyIncome.getCommissionFeevalue().compareTo(BigDecimal.ZERO) != 0) {
|
|
if (insPlyIncome.getCommissionFeevalue() != null && insPlyIncome.getCommissionFeevalue().compareTo(BigDecimal.ZERO) != 0) {
|
|
|
totalAmount = totalAmount.add(insPlyIncome.getCommissionFeevalue()); //添加总手续费
|
|
totalAmount = totalAmount.add(insPlyIncome.getCommissionFeevalue()); //添加总手续费
|
|
|
}
|
|
}
|
|
|
- insPlyIncomeMapper.updateById(insPlyIncome);
|
|
|
|
|
} else {
|
|
} else {
|
|
|
InsImportResult insImportResult = new InsImportResult();
|
|
InsImportResult insImportResult = new InsImportResult();
|
|
|
if (StringUtils.isNotEmpty(excelItem.getLicenseno())) {
|
|
if (StringUtils.isNotEmpty(excelItem.getLicenseno())) {
|
|
@@ -240,6 +239,7 @@ public class ImportAsyncServiceImpl extends ServiceImpl<ImportAsyncMapper, Impor
|
|
|
|
|
|
|
|
BigDecimal totalAmount = BigDecimal.ZERO;
|
|
BigDecimal totalAmount = BigDecimal.ZERO;
|
|
|
HashMap<String, Object> params = new HashMap<>();
|
|
HashMap<String, Object> params = new HashMap<>();
|
|
|
|
|
+ List<String> idList= new ArrayList<>();
|
|
|
List<InsImportResult> insImportResultsExcel = new ArrayList<>();
|
|
List<InsImportResult> insImportResultsExcel = new ArrayList<>();
|
|
|
String companyId ="";
|
|
String companyId ="";
|
|
|
String partnerCompaniesId ="";
|
|
String partnerCompaniesId ="";
|
|
@@ -314,11 +314,10 @@ public class ImportAsyncServiceImpl extends ServiceImpl<ImportAsyncMapper, Impor
|
|
|
agreementId = insPlyIncome.getAgreementId(); //协议id
|
|
agreementId = insPlyIncome.getAgreementId(); //协议id
|
|
|
}
|
|
}
|
|
|
if (ObjectUtils.isNotEmpty(insPlyIncome)) { // 比配上汇总金额 未匹配则返回到数据当中
|
|
if (ObjectUtils.isNotEmpty(insPlyIncome)) { // 比配上汇总金额 未匹配则返回到数据当中
|
|
|
|
|
+ idList.add(insPlyIncome.getId());
|
|
|
if (insPlyIncome.getCommissionFeevalue() != null && insPlyIncome.getCommissionFeevalue().compareTo(BigDecimal.ZERO) != 0) {
|
|
if (insPlyIncome.getCommissionFeevalue() != null && insPlyIncome.getCommissionFeevalue().compareTo(BigDecimal.ZERO) != 0) {
|
|
|
totalAmount = totalAmount.add(insPlyIncome.getCommissionFeevalue()); //添加总手续费
|
|
totalAmount = totalAmount.add(insPlyIncome.getCommissionFeevalue()); //添加总手续费
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
- insPlyIncomeMapper.updateById(insPlyIncome);
|
|
|
|
|
} else {
|
|
} else {
|
|
|
InsImportResult insImportResult = new InsImportResult();
|
|
InsImportResult insImportResult = new InsImportResult();
|
|
|
if (StringUtils.isNotEmpty(excelItem.getLicenseno())) {
|
|
if (StringUtils.isNotEmpty(excelItem.getLicenseno())) {
|
|
@@ -347,7 +346,6 @@ public class ImportAsyncServiceImpl extends ServiceImpl<ImportAsyncMapper, Impor
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
String fileName = EasyExcelUtils.downExcel(uploadPath, "保险对账问题文件", InsImportResult.class, insImportResultsExcel);
|
|
String fileName = EasyExcelUtils.downExcel(uploadPath, "保险对账问题文件", InsImportResult.class, insImportResultsExcel);
|
|
|
- String url=uploadUrl + "excel/" + fileName;
|
|
|
|
|
|
|
|
|
|
ImportResult endTask = new ImportResult();
|
|
ImportResult endTask = new ImportResult();
|
|
|
endTask.setTotalAmount(totalAmount);
|
|
endTask.setTotalAmount(totalAmount);
|
|
@@ -356,6 +354,9 @@ public class ImportAsyncServiceImpl extends ServiceImpl<ImportAsyncMapper, Impor
|
|
|
endTask.setStatus("complete");
|
|
endTask.setStatus("complete");
|
|
|
if(!CollectionUtils.isEmpty(insImportResultsExcel)){
|
|
if(!CollectionUtils.isEmpty(insImportResultsExcel)){
|
|
|
endTask.setUploadUrl("/upload/excel/" + taskId + "/" + fileName);
|
|
endTask.setUploadUrl("/upload/excel/" + taskId + "/" + fileName);
|
|
|
|
|
+ }else {
|
|
|
|
|
+ //则生成 结算任务关系表
|
|
|
|
|
+ incomeTaskRelationshipService.saveByIncomeIdList(taskId,idList);
|
|
|
}
|
|
}
|
|
|
endTask.setCompanyId(companyId);
|
|
endTask.setCompanyId(companyId);
|
|
|
endTask.setAgreementId(agreementId);
|
|
endTask.setAgreementId(agreementId);
|
|
@@ -429,7 +430,6 @@ public class ImportAsyncServiceImpl extends ServiceImpl<ImportAsyncMapper, Impor
|
|
|
totalAmount = totalAmount.add(insPlyIncome.getCommissionFeevalue()); //添加总手续费
|
|
totalAmount = totalAmount.add(insPlyIncome.getCommissionFeevalue()); //添加总手续费
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- insPlyIncomeMapper.updateById(insPlyIncome);
|
|
|
|
|
} else {
|
|
} else {
|
|
|
InsImportResult insImportResult = new InsImportResult();
|
|
InsImportResult insImportResult = new InsImportResult();
|
|
|
if (StringUtils.isNotEmpty(excelItem.getLicenseno())) {
|
|
if (StringUtils.isNotEmpty(excelItem.getLicenseno())) {
|
|
@@ -455,7 +455,6 @@ public class ImportAsyncServiceImpl extends ServiceImpl<ImportAsyncMapper, Impor
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
String fileName = EasyExcelUtils.downExcel(uploadPath, "保险对账问题文件", InsImportResult.class, insImportResultsExcel);
|
|
String fileName = EasyExcelUtils.downExcel(uploadPath, "保险对账问题文件", InsImportResult.class, insImportResultsExcel);
|
|
|
- String url=uploadUrl + "excel/" + fileName;
|
|
|
|
|
|
|
|
|
|
ImportResult endTask = new ImportResult();
|
|
ImportResult endTask = new ImportResult();
|
|
|
endTask.setTotalAmount(totalAmount);
|
|
endTask.setTotalAmount(totalAmount);
|
|
@@ -540,7 +539,6 @@ public class ImportAsyncServiceImpl extends ServiceImpl<ImportAsyncMapper, Impor
|
|
|
totalAmount = totalAmount.add(insPlyIncome.getCommissionFeevalue()); //添加总手续费
|
|
totalAmount = totalAmount.add(insPlyIncome.getCommissionFeevalue()); //添加总手续费
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- insPlyIncomeMapper.updateById(insPlyIncome);
|
|
|
|
|
} else {
|
|
} else {
|
|
|
InsImportResult insImportResult = new InsImportResult();
|
|
InsImportResult insImportResult = new InsImportResult();
|
|
|
if (StringUtils.isNotEmpty(excelItem.getLicenseno())) {
|
|
if (StringUtils.isNotEmpty(excelItem.getLicenseno())) {
|
|
@@ -566,7 +564,6 @@ public class ImportAsyncServiceImpl extends ServiceImpl<ImportAsyncMapper, Impor
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
String fileName = EasyExcelUtils.downExcel(uploadPath, "保险对账问题文件", InsImportResult.class, insImportResultsExcel);
|
|
String fileName = EasyExcelUtils.downExcel(uploadPath, "保险对账问题文件", InsImportResult.class, insImportResultsExcel);
|
|
|
- String url=uploadUrl + "excel/" + fileName;
|
|
|
|
|
|
|
|
|
|
ImportResult endTask = new ImportResult();
|
|
ImportResult endTask = new ImportResult();
|
|
|
endTask.setTotalAmount(totalAmount);
|
|
endTask.setTotalAmount(totalAmount);
|
|
@@ -582,7 +579,7 @@ public class ImportAsyncServiceImpl extends ServiceImpl<ImportAsyncMapper, Impor
|
|
|
endTask.setCompanyId(companyId);
|
|
endTask.setCompanyId(companyId);
|
|
|
endTask.setAgreementId(agreementId);
|
|
endTask.setAgreementId(agreementId);
|
|
|
endTask.setPartnerCompaniesId(partnerCompaniesId);
|
|
endTask.setPartnerCompaniesId(partnerCompaniesId);
|
|
|
- endTask.setHandStatus("3");
|
|
|
|
|
|
|
+ endTask.setHandStatus("1");
|
|
|
baseMapper.updateById(endTask);
|
|
baseMapper.updateById(endTask);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|