汇率数据类型转换;

This commit is contained in:
王奎兴
2026-09-07 15:33:53 +08:00
parent a326af15f7
commit 590e840a7b
@@ -789,7 +789,8 @@ public class BillingStatementApplicationService {
Long organizationId = billingStatement.getOrganizationId();
Map<String, Object> taxRateMap = billingStatementMapper.getTaxRate(organizationId, firstSubjectCode, firstSubjectName);
if (taxRateMap == null) continue;
Double taxRate = (Double) taxRateMap.get("taxRate");
BigDecimal taxRateBigDecimal = (BigDecimal) taxRateMap.get("taxRate");
Double taxRate = taxRateBigDecimal.doubleValue();
Long billingStatementId = billingStatement.getBillingStatementId();
BillingStatementDTO billingStatementDTO = new BillingStatementDTO();
billingStatementDTO.setBillingStatementIds(String.valueOf(billingStatementId));
@@ -845,7 +846,8 @@ public class BillingStatementApplicationService {
Long organizationId = billingStatement.getOrganizationId();
Map<String, Object> taxRateMap = billingStatementMapper.getTaxRate(organizationId, firstSubjectCode, firstSubjectName);
if (taxRateMap == null) continue;
Double taxRate = (Double) taxRateMap.get("taxRate");
BigDecimal taxRateBigDecimal = (BigDecimal) taxRateMap.get("taxRate");
Double taxRate = taxRateBigDecimal.doubleValue();
Long billingStatementId = billingStatement.getBillingStatementId();
BillingStatementDTO billingStatementDTO = new BillingStatementDTO();
billingStatementDTO.setBillingStatementIds(String.valueOf(billingStatementId));
@@ -916,7 +918,8 @@ public class BillingStatementApplicationService {
Long organizationId = billingStatement.getOrganizationId();
Map<String, Object> taxRateMap = billingStatementMapper.getTaxRate(organizationId, firstSubjectCode, firstSubjectName);
if (taxRateMap == null) continue;
Double taxRate = (Double) taxRateMap.get("taxRate");
BigDecimal taxRateBigDecimal = (BigDecimal) taxRateMap.get("taxRate");
Double taxRate = taxRateBigDecimal.doubleValue();
Long billingStatementId = billingStatement.getBillingStatementId();
BillingStatementDTO billingStatementDTO = new BillingStatementDTO();
billingStatementDTO.setBillingStatementIds(String.valueOf(billingStatementId));
@@ -995,7 +998,8 @@ public class BillingStatementApplicationService {
Long organizationId = billingStatement.getOrganizationId();
Map<String, Object> taxRateMap = billingStatementMapper.getTaxRate(organizationId, firstSubjectCode, firstSubjectName);
if (taxRateMap == null) continue;
Double taxRate = (Double) taxRateMap.get("taxRate");
BigDecimal taxRateBigDecimal = (BigDecimal) taxRateMap.get("taxRate");
Double taxRate = taxRateBigDecimal.doubleValue();
Long billingStatementId = billingStatement.getBillingStatementId();
BillingStatementDTO billingStatementDTO = new BillingStatementDTO();
billingStatementDTO.setBillingStatementIds(String.valueOf(billingStatementId));
@@ -1050,7 +1054,8 @@ public class BillingStatementApplicationService {
Long organizationId = billingStatement.getOrganizationId();
Map<String, Object> taxRateMap = billingStatementMapper.getTaxRate(organizationId, firstSubjectCode, firstSubjectName);
if (taxRateMap == null) continue;
Double taxRate = (Double) taxRateMap.get("taxRate");
BigDecimal taxRateBigDecimal = (BigDecimal) taxRateMap.get("taxRate");
Double taxRate = taxRateBigDecimal.doubleValue();
Long billingStatementId = billingStatement.getBillingStatementId();
BillingStatementDTO billingStatementDTO = new BillingStatementDTO();
billingStatementDTO.setBillingStatementIds(String.valueOf(billingStatementId));
@@ -1121,7 +1126,8 @@ public class BillingStatementApplicationService {
Long organizationId = billingStatement.getOrganizationId();
Map<String, Object> taxRateMap = billingStatementMapper.getTaxRate(organizationId, firstSubjectCode, firstSubjectName);
if (taxRateMap == null) continue;
Double taxRate = (Double) taxRateMap.get("taxRate");
BigDecimal taxRateBigDecimal = (BigDecimal) taxRateMap.get("taxRate");
Double taxRate = taxRateBigDecimal.doubleValue();
Long billingStatementId = billingStatement.getBillingStatementId();
BillingStatementDTO billingStatementDTO = new BillingStatementDTO();
billingStatementDTO.setBillingStatementIds(String.valueOf(billingStatementId));
@@ -1194,7 +1200,8 @@ public class BillingStatementApplicationService {
Long organizationId = billingStatement.getOrganizationId();
Map<String, Object> taxRateMap = billingStatementMapper.getTaxRate(organizationId, firstSubjectCode, firstSubjectName);
if (taxRateMap == null) continue;
Double taxRate = (Double) taxRateMap.get("taxRate");
BigDecimal taxRateBigDecimal = (BigDecimal) taxRateMap.get("taxRate");
Double taxRate = taxRateBigDecimal.doubleValue();
Long billingStatementId = billingStatement.getBillingStatementId();
BillingStatementDTO billingStatementDTO = new BillingStatementDTO();
billingStatementDTO.setBillingStatementIds(String.valueOf(billingStatementId));
@@ -1250,7 +1257,8 @@ public class BillingStatementApplicationService {
Long organizationId = billingStatement.getOrganizationId();
Map<String, Object> taxRateMap = billingStatementMapper.getTaxRate(organizationId, firstSubjectCode, firstSubjectName);
if (taxRateMap == null) continue;
Double taxRate = (Double) taxRateMap.get("taxRate");
BigDecimal taxRateBigDecimal = (BigDecimal) taxRateMap.get("taxRate");
Double taxRate = taxRateBigDecimal.doubleValue();
Long billingStatementId = billingStatement.getBillingStatementId();
BillingStatementDTO billingStatementDTO = new BillingStatementDTO();
billingStatementDTO.setBillingStatementIds(String.valueOf(billingStatementId));
@@ -1321,7 +1329,8 @@ public class BillingStatementApplicationService {
Long organizationId = billingStatement.getOrganizationId();
Map<String, Object> taxRateMap = billingStatementMapper.getTaxRate(organizationId, firstSubjectCode, firstSubjectName);
if (taxRateMap == null) continue;
Double taxRate = (Double) taxRateMap.get("taxRate");
BigDecimal taxRateBigDecimal = (BigDecimal) taxRateMap.get("taxRate");
Double taxRate = taxRateBigDecimal.doubleValue();
Long billingStatementId = billingStatement.getBillingStatementId();
BillingStatementDTO billingStatementDTO = new BillingStatementDTO();
billingStatementDTO.setBillingStatementIds(String.valueOf(billingStatementId));
@@ -1400,7 +1409,8 @@ public class BillingStatementApplicationService {
Long organizationId = billingStatement.getOrganizationId();
Map<String, Object> taxRateMap = billingStatementMapper.getTaxRate(organizationId, firstSubjectCode, firstSubjectName);
if (taxRateMap == null) continue;
Double taxRate = (Double) taxRateMap.get("taxRate");
BigDecimal taxRateBigDecimal = (BigDecimal) taxRateMap.get("taxRate");
Double taxRate = taxRateBigDecimal.doubleValue();
Long billingStatementId = billingStatement.getBillingStatementId();
BillingStatementDTO billingStatementDTO = new BillingStatementDTO();
billingStatementDTO.setBillingStatementIds(String.valueOf(billingStatementId));
@@ -1455,7 +1465,8 @@ public class BillingStatementApplicationService {
Long organizationId = billingStatement.getOrganizationId();
Map<String, Object> taxRateMap = billingStatementMapper.getTaxRate(organizationId, firstSubjectCode, firstSubjectName);
if (taxRateMap == null) continue;
Double taxRate = (Double) taxRateMap.get("taxRate");
BigDecimal taxRateBigDecimal = (BigDecimal) taxRateMap.get("taxRate");
Double taxRate = taxRateBigDecimal.doubleValue();
Long billingStatementId = billingStatement.getBillingStatementId();
BillingStatementDTO billingStatementDTO = new BillingStatementDTO();
billingStatementDTO.setBillingStatementIds(String.valueOf(billingStatementId));
@@ -1526,7 +1537,8 @@ public class BillingStatementApplicationService {
Long organizationId = billingStatement.getOrganizationId();
Map<String, Object> taxRateMap = billingStatementMapper.getTaxRate(organizationId, firstSubjectCode, firstSubjectName);
if (taxRateMap == null) continue;
Double taxRate = (Double) taxRateMap.get("taxRate");
BigDecimal taxRateBigDecimal = (BigDecimal) taxRateMap.get("taxRate");
Double taxRate = taxRateBigDecimal.doubleValue();
Long billingStatementId = billingStatement.getBillingStatementId();
BillingStatementDTO billingStatementDTO = new BillingStatementDTO();
billingStatementDTO.setBillingStatementIds(String.valueOf(billingStatementId));