|
@@ -365,6 +365,22 @@ public class InvReceivableServiceImpl implements InvReceivableService {
|
|
|
invSourceQueryVo.setRevenueTimeStartTime(split1[0]);
|
|
invSourceQueryVo.setRevenueTimeStartTime(split1[0]);
|
|
|
invSourceQueryVo.setRevenueTimeEndTime(split1[1]);
|
|
invSourceQueryVo.setRevenueTimeEndTime(split1[1]);
|
|
|
}
|
|
}
|
|
|
|
|
+ if (invSourceQueryVo.getJqPolicyId() != null && !"".equals(invSourceQueryVo.getJqPolicyId())) {
|
|
|
|
|
+ String[] split1 = invSourceQueryVo.getJqPolicyId().split(",");
|
|
|
|
|
+ invSourceQueryVo.setJqPolicyIds(Arrays.asList(split1));
|
|
|
|
|
+ }
|
|
|
|
|
+ if (invSourceQueryVo.getSyPolicyId() != null && !"".equals(invSourceQueryVo.getSyPolicyId())) {
|
|
|
|
|
+ String[] split1 = invSourceQueryVo.getSyPolicyId().split(",");
|
|
|
|
|
+ invSourceQueryVo.setSyPolicyIds(Arrays.asList(split1));
|
|
|
|
|
+ }
|
|
|
|
|
+ if (invSourceQueryVo.getNonCarPolicyId() != null && !"".equals(invSourceQueryVo.getNonCarPolicyId())) {
|
|
|
|
|
+ String[] split1 = invSourceQueryVo.getNonCarPolicyId().split(",");
|
|
|
|
|
+ invSourceQueryVo.setNonCarPolicyIds(Arrays.asList(split1));
|
|
|
|
|
+ }
|
|
|
|
|
+ if (invSourceQueryVo.getLicenseno() != null && !"".equals(invSourceQueryVo.getLicenseno())) {
|
|
|
|
|
+ String[] split1 = invSourceQueryVo.getLicenseno().split(",");
|
|
|
|
|
+ invSourceQueryVo.setLicensenos(Arrays.asList(split1));
|
|
|
|
|
+ }
|
|
|
Page<InvSource> pageData = invSourceMapper.getRecivablePage(page, invSourceQueryVo);
|
|
Page<InvSource> pageData = invSourceMapper.getRecivablePage(page, invSourceQueryVo);
|
|
|
List<InvSource> records = pageData.getRecords();
|
|
List<InvSource> records = pageData.getRecords();
|
|
|
records.forEach(x -> {
|
|
records.forEach(x -> {
|
|
@@ -497,6 +513,23 @@ public class InvReceivableServiceImpl implements InvReceivableService {
|
|
|
if (invSettlementSourceQueryVo.getInsuredName() != null && !"".equals(invSettlementSourceQueryVo.getInsuredName())) {
|
|
if (invSettlementSourceQueryVo.getInsuredName() != null && !"".equals(invSettlementSourceQueryVo.getInsuredName())) {
|
|
|
queryWrapper.like(InvSettlementSource::getInsuredName, invSettlementSourceQueryVo.getInsuredName());
|
|
queryWrapper.like(InvSettlementSource::getInsuredName, invSettlementSourceQueryVo.getInsuredName());
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ if (invSettlementSourceQueryVo.getJqPolicyId() != null && !"".equals(invSettlementSourceQueryVo.getJqPolicyId())) {
|
|
|
|
|
+ List<String> newsTypes = Arrays.asList(invSettlementSourceQueryVo.getJqPolicyId().split(","));
|
|
|
|
|
+ queryWrapper.in(InvSettlementSource::getJqPolicyId, newsTypes);
|
|
|
|
|
+ }
|
|
|
|
|
+ if (invSettlementSourceQueryVo.getSyPolicyId() != null && !"".equals(invSettlementSourceQueryVo.getSyPolicyId())) {
|
|
|
|
|
+ List<String> newsTypes = Arrays.asList(invSettlementSourceQueryVo.getSyPolicyId().split(","));
|
|
|
|
|
+ queryWrapper.in(InvSettlementSource::getSyPolicyId, newsTypes);
|
|
|
|
|
+ }
|
|
|
|
|
+ if (invSettlementSourceQueryVo.getNonCarPolicyId() != null && !"".equals(invSettlementSourceQueryVo.getNonCarPolicyId())) {
|
|
|
|
|
+ List<String> newsTypes = Arrays.asList(invSettlementSourceQueryVo.getNonCarPolicyId().split(","));
|
|
|
|
|
+ queryWrapper.in(InvSettlementSource::getNonCarPolicyId, newsTypes);
|
|
|
|
|
+ }
|
|
|
|
|
+ if (invSettlementSourceQueryVo.getLicenseno() != null && !"".equals(invSettlementSourceQueryVo.getLicenseno())) {
|
|
|
|
|
+ List<String> newsTypes = Arrays.asList(invSettlementSourceQueryVo.getLicenseno().split(","));
|
|
|
|
|
+ queryWrapper.in(InvSettlementSource::getLicenseno, newsTypes);
|
|
|
|
|
+ }
|
|
|
Page pageData = invSettlementSourceMapper.selectPage(page, queryWrapper);
|
|
Page pageData = invSettlementSourceMapper.selectPage(page, queryWrapper);
|
|
|
|
|
|
|
|
return pageData;
|
|
return pageData;
|
|
@@ -664,13 +697,12 @@ public class InvReceivableServiceImpl implements InvReceivableService {
|
|
|
.add(invSource.getNonCarPremium().multiply(invSource.getNonCarNonCopyingRatio()))));
|
|
.add(invSource.getNonCarPremium().multiply(invSource.getNonCarNonCopyingRatio()))));
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
//选择类型为平台类型时 应收金额 = 含税保费 * 应收比例
|
|
//选择类型为平台类型时 应收金额 = 含税保费 * 应收比例
|
|
|
if (invSource.getInvSourceType().equals("platform")) {
|
|
if (invSource.getInvSourceType().equals("platform")) {
|
|
|
//处理应收金额
|
|
//处理应收金额
|
|
|
invSource.setReceivable(invSource.getJqPremiumTax().multiply(invSource.getJqReceivableRatio())
|
|
invSource.setReceivable(invSource.getJqPremiumTax().multiply(invSource.getJqReceivableRatio())
|
|
|
.add(invSource.getSyPremiumTax().multiply(invSource.getSyReceivableRatio())
|
|
.add(invSource.getSyPremiumTax().multiply(invSource.getSyReceivableRatio())
|
|
|
- .add(invSource.getNonCarPremiumTax().multiply(invSource.getNonCarReceivableRatio()))));
|
|
|
|
|
|
|
+ .add(invSource.getNonCarPremiumTax().multiply(invSource.getNonCarReceivableRatio()))));
|
|
|
//处理应收总金额
|
|
//处理应收总金额
|
|
|
invSource.setTotalReceivableAmount(
|
|
invSource.setTotalReceivableAmount(
|
|
|
invSource.getReceivable().add(invSource.getSubsidyAmount()));
|
|
invSource.getReceivable().add(invSource.getSubsidyAmount()));
|
|
@@ -703,7 +735,7 @@ public class InvReceivableServiceImpl implements InvReceivableService {
|
|
|
invSettlementSource.setSettlementAmount(
|
|
invSettlementSource.setSettlementAmount(
|
|
|
invSettlementSource.getJqPremiumTax().multiply(invSettlementSource.getCompulsoryExportRatio())
|
|
invSettlementSource.getJqPremiumTax().multiply(invSettlementSource.getCompulsoryExportRatio())
|
|
|
.add(invSettlementSource.getSyPremiumTax().multiply(invSettlementSource.getCommercialExportRatio())
|
|
.add(invSettlementSource.getSyPremiumTax().multiply(invSettlementSource.getCommercialExportRatio())
|
|
|
- .add(invSettlementSource.getNonCarPremiumTax().multiply(invSettlementSource.getNonVehicleExportRatio())))
|
|
|
|
|
|
|
+ .add(invSettlementSource.getNonCarPremiumTax().multiply(invSettlementSource.getNonVehicleExportRatio())))
|
|
|
);
|
|
);
|
|
|
DateTime dateTime = new DateTime();
|
|
DateTime dateTime = new DateTime();
|
|
|
invSettlementSource.setRevenueTime(dateTime.toString());
|
|
invSettlementSource.setRevenueTime(dateTime.toString());
|
|
@@ -724,6 +756,12 @@ public class InvReceivableServiceImpl implements InvReceivableService {
|
|
|
return i > 0 ? true : false;
|
|
return i > 0 ? true : false;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public List<String> getReceivableListByLicenseno(List<String> namesList) {
|
|
|
|
|
+ List<String> strings = invSettlementSourceMapper.getReceivableListByLicenseno(namesList);
|
|
|
|
|
+ return strings;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|