|
@@ -390,7 +390,7 @@ public class ImportAsyncServiceImpl extends ServiceImpl<ImportAsyncMapper, Impor
|
|
|
params.put("isOther", "1");
|
|
params.put("isOther", "1");
|
|
|
params.put("isNotCar", isNotCar);
|
|
params.put("isNotCar", isNotCar);
|
|
|
InsPlyIncome insPlyIncome = insPlyIncomeMapper.findByBxLicenseno(params);
|
|
InsPlyIncome insPlyIncome = insPlyIncomeMapper.findByBxLicenseno(params);
|
|
|
- if(StringUtils.isNotEmpty(insPlyIncome.getTaskId())){
|
|
|
|
|
|
|
+ if( ObjectUtils.isNotEmpty(insPlyIncome) && StringUtils.isNotEmpty(insPlyIncome.getTaskId())){
|
|
|
throw new SystemException("表中有已经结算的数据");
|
|
throw new SystemException("表中有已经结算的数据");
|
|
|
}
|
|
}
|
|
|
if (ObjectUtils.isNotEmpty(insPlyIncome) && open) {
|
|
if (ObjectUtils.isNotEmpty(insPlyIncome) && open) {
|
|
@@ -412,7 +412,6 @@ public class ImportAsyncServiceImpl extends ServiceImpl<ImportAsyncMapper, Impor
|
|
|
if (insPlyIncome.getOtherFeevalue() != null && insPlyIncome.getOtherFeevalue().compareTo(BigDecimal.ZERO) != 0) {
|
|
if (insPlyIncome.getOtherFeevalue() != null && insPlyIncome.getOtherFeevalue().compareTo(BigDecimal.ZERO) != 0) {
|
|
|
totalAmount = totalAmount.add(insPlyIncome.getOtherFeevalue()); //添加总手续费
|
|
totalAmount = totalAmount.add(insPlyIncome.getOtherFeevalue()); //添加总手续费
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
} else {
|
|
} else {
|
|
|
reason = "查询不到该车辆";
|
|
reason = "查询不到该车辆";
|
|
|
}
|
|
}
|
|
@@ -510,7 +509,7 @@ 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()); //添加总手续费
|
|
|
}
|
|
}
|
|
|
- if (excelItem.getNoSuperviseCostsProportion()!=null && excelItem.getNoSuperviseCostsProportion().compareTo(BigDecimal.ZERO) != 0&& excelItem.getNoSuperviseCostsProportion().compareTo(insPlyIncome.getNoSuperviseCostsProportion()) != 0 ) {
|
|
|
|
|
|
|
+ if (excelItem.getNoSuperviseCostsProportion()!=null && excelItem.getNoSuperviseCostsProportion().compareTo(BigDecimal.ZERO) != 0 && excelItem.getNoSuperviseCostsProportion().compareTo(insPlyIncome.getNoSuperviseCostsProportion()) != 0 ) {
|
|
|
BigDecimal noSuperviseCostsProportion = excelItem.getNoSuperviseCostsProportion();//商业保单号
|
|
BigDecimal noSuperviseCostsProportion = excelItem.getNoSuperviseCostsProportion();//商业保单号
|
|
|
params.put("noSuperviseCostsProportion", noSuperviseCostsProportion);
|
|
params.put("noSuperviseCostsProportion", noSuperviseCostsProportion);
|
|
|
InsPlyIncome byBxLicenseno = insPlyIncomeMapper.findByBxLicenseno(params);
|
|
InsPlyIncome byBxLicenseno = insPlyIncomeMapper.findByBxLicenseno(params);
|