|
@@ -17,6 +17,7 @@ import com.ydtech.modules.order.entity.BasePageResult;
|
|
|
import com.ydtech.modules.order.service.InsUploadFilesService;
|
|
import com.ydtech.modules.order.service.InsUploadFilesService;
|
|
|
import org.apache.commons.lang3.ObjectUtils;
|
|
import org.apache.commons.lang3.ObjectUtils;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
+import org.apache.commons.math3.dfp.DfpField;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.scheduling.annotation.Async;
|
|
import org.springframework.scheduling.annotation.Async;
|
|
@@ -111,21 +112,21 @@ 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.getJqSuperviseCostsPremiums() != null && excelItem.getJqSuperviseCostsPremiums().compareTo(BigDecimal.ZERO) != 0) {
|
|
|
|
|
|
|
+ if (excelItem.getJqSuperviseCostsPremiums() != null && excelItem.getJqSuperviseCostsPremiums().compareTo(BigDecimal.ZERO) != 0 && excelItem.getJqSuperviseCostsPremiums().compareTo(insPlyIncome.getJqSuperviseCostsPremiums()) != 0) {
|
|
|
params.put("jqSuperviseCostsPremiums", excelItem.getJqSuperviseCostsPremiums());
|
|
params.put("jqSuperviseCostsPremiums", excelItem.getJqSuperviseCostsPremiums());
|
|
|
InsPlyIncome byBxLicenseno = insPlyIncomeMapper.findByBxLicenseno(params);
|
|
InsPlyIncome byBxLicenseno = insPlyIncomeMapper.findByBxLicenseno(params);
|
|
|
if (ObjectUtils.isEmpty(byBxLicenseno)) {
|
|
if (ObjectUtils.isEmpty(byBxLicenseno)) {
|
|
|
reason = "该数据交强手续费金额有问题";
|
|
reason = "该数据交强手续费金额有问题";
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- if (excelItem.getJqSuperviseCostsProportion() != null && excelItem.getJqSuperviseCostsProportion().compareTo(BigDecimal.ZERO) != 0) {
|
|
|
|
|
|
|
+ if (excelItem.getJqSuperviseCostsProportion() != null && excelItem.getJqSuperviseCostsProportion().compareTo(BigDecimal.ZERO) != 0 && excelItem.getJqSuperviseCostsProportion().compareTo(insPlyIncome.getJqSuperviseCostsProportion()) != 0) {
|
|
|
params.put("jqSuperviseCostsProportion", excelItem.getJqSuperviseCostsProportion());
|
|
params.put("jqSuperviseCostsProportion", excelItem.getJqSuperviseCostsProportion());
|
|
|
InsPlyIncome byBxLicenseno = insPlyIncomeMapper.findByBxLicenseno(params);
|
|
InsPlyIncome byBxLicenseno = insPlyIncomeMapper.findByBxLicenseno(params);
|
|
|
if (ObjectUtils.isEmpty(byBxLicenseno)) {
|
|
if (ObjectUtils.isEmpty(byBxLicenseno)) {
|
|
|
reason = "该数据交强手续费比例有问题";
|
|
reason = "该数据交强手续费比例有问题";
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- if (excelItem.getSySuperviseCostsProportion() != null && excelItem.getSySuperviseCostsProportion().compareTo(BigDecimal.ZERO) != 0) {
|
|
|
|
|
|
|
+ if (excelItem.getSySuperviseCostsProportion() != null && excelItem.getSySuperviseCostsProportion().compareTo(BigDecimal.ZERO) != 0 && excelItem.getSySuperviseCostsProportion().compareTo(insPlyIncome.getSySuperviseCostsProportion()) != 0) {
|
|
|
params.put("sySuperviseCostsProportion", excelItem.getSySuperviseCostsProportion());
|
|
params.put("sySuperviseCostsProportion", excelItem.getSySuperviseCostsProportion());
|
|
|
InsPlyIncome byBxLicenseno = insPlyIncomeMapper.findByBxLicenseno(params);
|
|
InsPlyIncome byBxLicenseno = insPlyIncomeMapper.findByBxLicenseno(params);
|
|
|
if (ObjectUtils.isEmpty(byBxLicenseno)) {
|
|
if (ObjectUtils.isEmpty(byBxLicenseno)) {
|
|
@@ -133,21 +134,21 @@ public class ImportAsyncServiceImpl extends ServiceImpl<ImportAsyncMapper, Impor
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (excelItem.getSySuperviseCostsPremiums() != null && excelItem.getSySuperviseCostsPremiums().compareTo(BigDecimal.ZERO) != 0) {
|
|
|
|
|
|
|
+ if (excelItem.getSySuperviseCostsPremiums() != null && excelItem.getSySuperviseCostsPremiums().compareTo(BigDecimal.ZERO) != 0 && excelItem.getSySuperviseCostsPremiums().compareTo(insPlyIncome.getSySuperviseCostsPremiums()) != 0) {
|
|
|
params.put("sySuperviseCostsPremiums", excelItem.getSySuperviseCostsPremiums());
|
|
params.put("sySuperviseCostsPremiums", excelItem.getSySuperviseCostsPremiums());
|
|
|
InsPlyIncome byBxLicenseno = insPlyIncomeMapper.findByBxLicenseno(params);
|
|
InsPlyIncome byBxLicenseno = insPlyIncomeMapper.findByBxLicenseno(params);
|
|
|
if (ObjectUtils.isEmpty(byBxLicenseno)) {
|
|
if (ObjectUtils.isEmpty(byBxLicenseno)) {
|
|
|
reason = "该数据商业手续费金额有问题";
|
|
reason = "该数据商业手续费金额有问题";
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- if (excelItem.getJqPremium() != null && excelItem.getJqPremium().compareTo(BigDecimal.ZERO) != 0) {
|
|
|
|
|
|
|
+ if (excelItem.getJqPremium() != null && excelItem.getJqPremium().compareTo(BigDecimal.ZERO) != 0 && excelItem.getJqPremium().compareTo(insPlyIncome.getJqPremium()) != 0 ) {
|
|
|
params.put("jqPremium", excelItem.getJqPremium());
|
|
params.put("jqPremium", excelItem.getJqPremium());
|
|
|
InsPlyIncome byBxLicenseno = insPlyIncomeMapper.findByBxLicenseno(params);
|
|
InsPlyIncome byBxLicenseno = insPlyIncomeMapper.findByBxLicenseno(params);
|
|
|
if (ObjectUtils.isEmpty(byBxLicenseno)) {
|
|
if (ObjectUtils.isEmpty(byBxLicenseno)) {
|
|
|
reason = "该数据交强保费有问题";
|
|
reason = "该数据交强保费有问题";
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- if (excelItem.getSyPremium() != null && excelItem.getSyPremium().compareTo(BigDecimal.ZERO) != 0) {
|
|
|
|
|
|
|
+ if (excelItem.getSyPremium() != null && excelItem.getSyPremium().compareTo(BigDecimal.ZERO) != 0 && excelItem.getSyPremium().compareTo(insPlyIncome.getSyPremium()) != 0 ) {
|
|
|
params.put("syPremium", excelItem.getSyPremium());
|
|
params.put("syPremium", excelItem.getSyPremium());
|
|
|
InsPlyIncome byBxLicenseno = insPlyIncomeMapper.findByBxLicenseno(params);
|
|
InsPlyIncome byBxLicenseno = insPlyIncomeMapper.findByBxLicenseno(params);
|
|
|
if (ObjectUtils.isEmpty(byBxLicenseno)) {
|
|
if (ObjectUtils.isEmpty(byBxLicenseno)) {
|
|
@@ -273,7 +274,7 @@ public class ImportAsyncServiceImpl extends ServiceImpl<ImportAsyncMapper, Impor
|
|
|
agreementId = insPlyIncome.getAgreementId(); //协议id
|
|
agreementId = insPlyIncome.getAgreementId(); //协议id
|
|
|
}
|
|
}
|
|
|
if (ObjectUtils.isNotEmpty(insPlyIncome)) { // 比配上汇总金额 未匹配则返回到数据当中
|
|
if (ObjectUtils.isNotEmpty(insPlyIncome)) { // 比配上汇总金额 未匹配则返回到数据当中
|
|
|
- if (excelItem.getJqOtherCostsProportion()!=null && excelItem.getJqOtherCostsProportion().compareTo(BigDecimal.ZERO) != 0) {
|
|
|
|
|
|
|
+ if (excelItem.getJqOtherCostsProportion()!=null && excelItem.getJqOtherCostsProportion().compareTo(BigDecimal.ZERO) != 0 && excelItem.getJqOtherCostsProportion().compareTo(insPlyIncome.getJqOtherCostsProportion()) != 0) {
|
|
|
BigDecimal jqOtherCostsProportion = excelItem.getJqOtherCostsProportion();//商业保单号
|
|
BigDecimal jqOtherCostsProportion = excelItem.getJqOtherCostsProportion();//商业保单号
|
|
|
params.put("jqOtherCostsProportion", jqOtherCostsProportion);
|
|
params.put("jqOtherCostsProportion", jqOtherCostsProportion);
|
|
|
InsPlyIncome byBxLicenseno = insPlyIncomeMapper.findByBxLicenseno(params);
|
|
InsPlyIncome byBxLicenseno = insPlyIncomeMapper.findByBxLicenseno(params);
|
|
@@ -281,7 +282,7 @@ public class ImportAsyncServiceImpl extends ServiceImpl<ImportAsyncMapper, Impor
|
|
|
reason = "该数据交强跟单比例有问题";
|
|
reason = "该数据交强跟单比例有问题";
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- if (excelItem.getSyOtherCostsProportion()!=null && excelItem.getSyOtherCostsProportion().compareTo(BigDecimal.ZERO) != 0) {
|
|
|
|
|
|
|
+ if (excelItem.getSyOtherCostsProportion()!=null && excelItem.getSyOtherCostsProportion().compareTo(BigDecimal.ZERO) != 0 && excelItem.getSyOtherCostsProportion().compareTo(insPlyIncome.getSyOtherCostsProportion()) != 0) {
|
|
|
BigDecimal syOtherCostsProportion = excelItem.getSyOtherCostsProportion();//商业保单号
|
|
BigDecimal syOtherCostsProportion = excelItem.getSyOtherCostsProportion();//商业保单号
|
|
|
params.put("syOtherCostsProportion", syOtherCostsProportion);
|
|
params.put("syOtherCostsProportion", syOtherCostsProportion);
|
|
|
InsPlyIncome byBxLicenseno = insPlyIncomeMapper.findByBxLicenseno(params);
|
|
InsPlyIncome byBxLicenseno = insPlyIncomeMapper.findByBxLicenseno(params);
|
|
@@ -390,7 +391,7 @@ public class ImportAsyncServiceImpl extends ServiceImpl<ImportAsyncMapper, Impor
|
|
|
agreementId = insPlyIncome.getAgreementId(); //协议id
|
|
agreementId = insPlyIncome.getAgreementId(); //协议id
|
|
|
}
|
|
}
|
|
|
if (ObjectUtils.isNotEmpty(insPlyIncome)) { // 比配上汇总金额 未匹配则返回到数据当中
|
|
if (ObjectUtils.isNotEmpty(insPlyIncome)) { // 比配上汇总金额 未匹配则返回到数据当中
|
|
|
- if (excelItem.getNoOtherCostsProportion()!=null && excelItem.getNoOtherCostsProportion().compareTo(BigDecimal.ZERO) != 0) {
|
|
|
|
|
|
|
+ if (excelItem.getNoOtherCostsProportion()!=null && excelItem.getNoOtherCostsProportion().compareTo(BigDecimal.ZERO) != 0 && excelItem.getNoOtherCostsProportion().compareTo(insPlyIncome.getNoOtherCostsProportion()) != 0) {
|
|
|
BigDecimal noOtherCostsProportion = excelItem.getNoOtherCostsProportion();//商业保单号
|
|
BigDecimal noOtherCostsProportion = excelItem.getNoOtherCostsProportion();//商业保单号
|
|
|
params.put("noOtherCostsProportion", noOtherCostsProportion);
|
|
params.put("noOtherCostsProportion", noOtherCostsProportion);
|
|
|
InsPlyIncome byBxLicenseno = insPlyIncomeMapper.findByBxLicenseno(params);
|
|
InsPlyIncome byBxLicenseno = insPlyIncomeMapper.findByBxLicenseno(params);
|
|
@@ -496,7 +497,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) {
|
|
|
|
|
|
|
+ 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);
|