汇率数据类型转换;
This commit is contained in:
+24
-12
@@ -789,7 +789,8 @@ public class BillingStatementApplicationService {
|
|||||||
Long organizationId = billingStatement.getOrganizationId();
|
Long organizationId = billingStatement.getOrganizationId();
|
||||||
Map<String, Object> taxRateMap = billingStatementMapper.getTaxRate(organizationId, firstSubjectCode, firstSubjectName);
|
Map<String, Object> taxRateMap = billingStatementMapper.getTaxRate(organizationId, firstSubjectCode, firstSubjectName);
|
||||||
if (taxRateMap == null) continue;
|
if (taxRateMap == null) continue;
|
||||||
Double taxRate = (Double) taxRateMap.get("taxRate");
|
BigDecimal taxRateBigDecimal = (BigDecimal) taxRateMap.get("taxRate");
|
||||||
|
Double taxRate = taxRateBigDecimal.doubleValue();
|
||||||
Long billingStatementId = billingStatement.getBillingStatementId();
|
Long billingStatementId = billingStatement.getBillingStatementId();
|
||||||
BillingStatementDTO billingStatementDTO = new BillingStatementDTO();
|
BillingStatementDTO billingStatementDTO = new BillingStatementDTO();
|
||||||
billingStatementDTO.setBillingStatementIds(String.valueOf(billingStatementId));
|
billingStatementDTO.setBillingStatementIds(String.valueOf(billingStatementId));
|
||||||
@@ -845,7 +846,8 @@ public class BillingStatementApplicationService {
|
|||||||
Long organizationId = billingStatement.getOrganizationId();
|
Long organizationId = billingStatement.getOrganizationId();
|
||||||
Map<String, Object> taxRateMap = billingStatementMapper.getTaxRate(organizationId, firstSubjectCode, firstSubjectName);
|
Map<String, Object> taxRateMap = billingStatementMapper.getTaxRate(organizationId, firstSubjectCode, firstSubjectName);
|
||||||
if (taxRateMap == null) continue;
|
if (taxRateMap == null) continue;
|
||||||
Double taxRate = (Double) taxRateMap.get("taxRate");
|
BigDecimal taxRateBigDecimal = (BigDecimal) taxRateMap.get("taxRate");
|
||||||
|
Double taxRate = taxRateBigDecimal.doubleValue();
|
||||||
Long billingStatementId = billingStatement.getBillingStatementId();
|
Long billingStatementId = billingStatement.getBillingStatementId();
|
||||||
BillingStatementDTO billingStatementDTO = new BillingStatementDTO();
|
BillingStatementDTO billingStatementDTO = new BillingStatementDTO();
|
||||||
billingStatementDTO.setBillingStatementIds(String.valueOf(billingStatementId));
|
billingStatementDTO.setBillingStatementIds(String.valueOf(billingStatementId));
|
||||||
@@ -916,7 +918,8 @@ public class BillingStatementApplicationService {
|
|||||||
Long organizationId = billingStatement.getOrganizationId();
|
Long organizationId = billingStatement.getOrganizationId();
|
||||||
Map<String, Object> taxRateMap = billingStatementMapper.getTaxRate(organizationId, firstSubjectCode, firstSubjectName);
|
Map<String, Object> taxRateMap = billingStatementMapper.getTaxRate(organizationId, firstSubjectCode, firstSubjectName);
|
||||||
if (taxRateMap == null) continue;
|
if (taxRateMap == null) continue;
|
||||||
Double taxRate = (Double) taxRateMap.get("taxRate");
|
BigDecimal taxRateBigDecimal = (BigDecimal) taxRateMap.get("taxRate");
|
||||||
|
Double taxRate = taxRateBigDecimal.doubleValue();
|
||||||
Long billingStatementId = billingStatement.getBillingStatementId();
|
Long billingStatementId = billingStatement.getBillingStatementId();
|
||||||
BillingStatementDTO billingStatementDTO = new BillingStatementDTO();
|
BillingStatementDTO billingStatementDTO = new BillingStatementDTO();
|
||||||
billingStatementDTO.setBillingStatementIds(String.valueOf(billingStatementId));
|
billingStatementDTO.setBillingStatementIds(String.valueOf(billingStatementId));
|
||||||
@@ -995,7 +998,8 @@ public class BillingStatementApplicationService {
|
|||||||
Long organizationId = billingStatement.getOrganizationId();
|
Long organizationId = billingStatement.getOrganizationId();
|
||||||
Map<String, Object> taxRateMap = billingStatementMapper.getTaxRate(organizationId, firstSubjectCode, firstSubjectName);
|
Map<String, Object> taxRateMap = billingStatementMapper.getTaxRate(organizationId, firstSubjectCode, firstSubjectName);
|
||||||
if (taxRateMap == null) continue;
|
if (taxRateMap == null) continue;
|
||||||
Double taxRate = (Double) taxRateMap.get("taxRate");
|
BigDecimal taxRateBigDecimal = (BigDecimal) taxRateMap.get("taxRate");
|
||||||
|
Double taxRate = taxRateBigDecimal.doubleValue();
|
||||||
Long billingStatementId = billingStatement.getBillingStatementId();
|
Long billingStatementId = billingStatement.getBillingStatementId();
|
||||||
BillingStatementDTO billingStatementDTO = new BillingStatementDTO();
|
BillingStatementDTO billingStatementDTO = new BillingStatementDTO();
|
||||||
billingStatementDTO.setBillingStatementIds(String.valueOf(billingStatementId));
|
billingStatementDTO.setBillingStatementIds(String.valueOf(billingStatementId));
|
||||||
@@ -1050,7 +1054,8 @@ public class BillingStatementApplicationService {
|
|||||||
Long organizationId = billingStatement.getOrganizationId();
|
Long organizationId = billingStatement.getOrganizationId();
|
||||||
Map<String, Object> taxRateMap = billingStatementMapper.getTaxRate(organizationId, firstSubjectCode, firstSubjectName);
|
Map<String, Object> taxRateMap = billingStatementMapper.getTaxRate(organizationId, firstSubjectCode, firstSubjectName);
|
||||||
if (taxRateMap == null) continue;
|
if (taxRateMap == null) continue;
|
||||||
Double taxRate = (Double) taxRateMap.get("taxRate");
|
BigDecimal taxRateBigDecimal = (BigDecimal) taxRateMap.get("taxRate");
|
||||||
|
Double taxRate = taxRateBigDecimal.doubleValue();
|
||||||
Long billingStatementId = billingStatement.getBillingStatementId();
|
Long billingStatementId = billingStatement.getBillingStatementId();
|
||||||
BillingStatementDTO billingStatementDTO = new BillingStatementDTO();
|
BillingStatementDTO billingStatementDTO = new BillingStatementDTO();
|
||||||
billingStatementDTO.setBillingStatementIds(String.valueOf(billingStatementId));
|
billingStatementDTO.setBillingStatementIds(String.valueOf(billingStatementId));
|
||||||
@@ -1121,7 +1126,8 @@ public class BillingStatementApplicationService {
|
|||||||
Long organizationId = billingStatement.getOrganizationId();
|
Long organizationId = billingStatement.getOrganizationId();
|
||||||
Map<String, Object> taxRateMap = billingStatementMapper.getTaxRate(organizationId, firstSubjectCode, firstSubjectName);
|
Map<String, Object> taxRateMap = billingStatementMapper.getTaxRate(organizationId, firstSubjectCode, firstSubjectName);
|
||||||
if (taxRateMap == null) continue;
|
if (taxRateMap == null) continue;
|
||||||
Double taxRate = (Double) taxRateMap.get("taxRate");
|
BigDecimal taxRateBigDecimal = (BigDecimal) taxRateMap.get("taxRate");
|
||||||
|
Double taxRate = taxRateBigDecimal.doubleValue();
|
||||||
Long billingStatementId = billingStatement.getBillingStatementId();
|
Long billingStatementId = billingStatement.getBillingStatementId();
|
||||||
BillingStatementDTO billingStatementDTO = new BillingStatementDTO();
|
BillingStatementDTO billingStatementDTO = new BillingStatementDTO();
|
||||||
billingStatementDTO.setBillingStatementIds(String.valueOf(billingStatementId));
|
billingStatementDTO.setBillingStatementIds(String.valueOf(billingStatementId));
|
||||||
@@ -1194,7 +1200,8 @@ public class BillingStatementApplicationService {
|
|||||||
Long organizationId = billingStatement.getOrganizationId();
|
Long organizationId = billingStatement.getOrganizationId();
|
||||||
Map<String, Object> taxRateMap = billingStatementMapper.getTaxRate(organizationId, firstSubjectCode, firstSubjectName);
|
Map<String, Object> taxRateMap = billingStatementMapper.getTaxRate(organizationId, firstSubjectCode, firstSubjectName);
|
||||||
if (taxRateMap == null) continue;
|
if (taxRateMap == null) continue;
|
||||||
Double taxRate = (Double) taxRateMap.get("taxRate");
|
BigDecimal taxRateBigDecimal = (BigDecimal) taxRateMap.get("taxRate");
|
||||||
|
Double taxRate = taxRateBigDecimal.doubleValue();
|
||||||
Long billingStatementId = billingStatement.getBillingStatementId();
|
Long billingStatementId = billingStatement.getBillingStatementId();
|
||||||
BillingStatementDTO billingStatementDTO = new BillingStatementDTO();
|
BillingStatementDTO billingStatementDTO = new BillingStatementDTO();
|
||||||
billingStatementDTO.setBillingStatementIds(String.valueOf(billingStatementId));
|
billingStatementDTO.setBillingStatementIds(String.valueOf(billingStatementId));
|
||||||
@@ -1250,7 +1257,8 @@ public class BillingStatementApplicationService {
|
|||||||
Long organizationId = billingStatement.getOrganizationId();
|
Long organizationId = billingStatement.getOrganizationId();
|
||||||
Map<String, Object> taxRateMap = billingStatementMapper.getTaxRate(organizationId, firstSubjectCode, firstSubjectName);
|
Map<String, Object> taxRateMap = billingStatementMapper.getTaxRate(organizationId, firstSubjectCode, firstSubjectName);
|
||||||
if (taxRateMap == null) continue;
|
if (taxRateMap == null) continue;
|
||||||
Double taxRate = (Double) taxRateMap.get("taxRate");
|
BigDecimal taxRateBigDecimal = (BigDecimal) taxRateMap.get("taxRate");
|
||||||
|
Double taxRate = taxRateBigDecimal.doubleValue();
|
||||||
Long billingStatementId = billingStatement.getBillingStatementId();
|
Long billingStatementId = billingStatement.getBillingStatementId();
|
||||||
BillingStatementDTO billingStatementDTO = new BillingStatementDTO();
|
BillingStatementDTO billingStatementDTO = new BillingStatementDTO();
|
||||||
billingStatementDTO.setBillingStatementIds(String.valueOf(billingStatementId));
|
billingStatementDTO.setBillingStatementIds(String.valueOf(billingStatementId));
|
||||||
@@ -1321,7 +1329,8 @@ public class BillingStatementApplicationService {
|
|||||||
Long organizationId = billingStatement.getOrganizationId();
|
Long organizationId = billingStatement.getOrganizationId();
|
||||||
Map<String, Object> taxRateMap = billingStatementMapper.getTaxRate(organizationId, firstSubjectCode, firstSubjectName);
|
Map<String, Object> taxRateMap = billingStatementMapper.getTaxRate(organizationId, firstSubjectCode, firstSubjectName);
|
||||||
if (taxRateMap == null) continue;
|
if (taxRateMap == null) continue;
|
||||||
Double taxRate = (Double) taxRateMap.get("taxRate");
|
BigDecimal taxRateBigDecimal = (BigDecimal) taxRateMap.get("taxRate");
|
||||||
|
Double taxRate = taxRateBigDecimal.doubleValue();
|
||||||
Long billingStatementId = billingStatement.getBillingStatementId();
|
Long billingStatementId = billingStatement.getBillingStatementId();
|
||||||
BillingStatementDTO billingStatementDTO = new BillingStatementDTO();
|
BillingStatementDTO billingStatementDTO = new BillingStatementDTO();
|
||||||
billingStatementDTO.setBillingStatementIds(String.valueOf(billingStatementId));
|
billingStatementDTO.setBillingStatementIds(String.valueOf(billingStatementId));
|
||||||
@@ -1400,7 +1409,8 @@ public class BillingStatementApplicationService {
|
|||||||
Long organizationId = billingStatement.getOrganizationId();
|
Long organizationId = billingStatement.getOrganizationId();
|
||||||
Map<String, Object> taxRateMap = billingStatementMapper.getTaxRate(organizationId, firstSubjectCode, firstSubjectName);
|
Map<String, Object> taxRateMap = billingStatementMapper.getTaxRate(organizationId, firstSubjectCode, firstSubjectName);
|
||||||
if (taxRateMap == null) continue;
|
if (taxRateMap == null) continue;
|
||||||
Double taxRate = (Double) taxRateMap.get("taxRate");
|
BigDecimal taxRateBigDecimal = (BigDecimal) taxRateMap.get("taxRate");
|
||||||
|
Double taxRate = taxRateBigDecimal.doubleValue();
|
||||||
Long billingStatementId = billingStatement.getBillingStatementId();
|
Long billingStatementId = billingStatement.getBillingStatementId();
|
||||||
BillingStatementDTO billingStatementDTO = new BillingStatementDTO();
|
BillingStatementDTO billingStatementDTO = new BillingStatementDTO();
|
||||||
billingStatementDTO.setBillingStatementIds(String.valueOf(billingStatementId));
|
billingStatementDTO.setBillingStatementIds(String.valueOf(billingStatementId));
|
||||||
@@ -1455,7 +1465,8 @@ public class BillingStatementApplicationService {
|
|||||||
Long organizationId = billingStatement.getOrganizationId();
|
Long organizationId = billingStatement.getOrganizationId();
|
||||||
Map<String, Object> taxRateMap = billingStatementMapper.getTaxRate(organizationId, firstSubjectCode, firstSubjectName);
|
Map<String, Object> taxRateMap = billingStatementMapper.getTaxRate(organizationId, firstSubjectCode, firstSubjectName);
|
||||||
if (taxRateMap == null) continue;
|
if (taxRateMap == null) continue;
|
||||||
Double taxRate = (Double) taxRateMap.get("taxRate");
|
BigDecimal taxRateBigDecimal = (BigDecimal) taxRateMap.get("taxRate");
|
||||||
|
Double taxRate = taxRateBigDecimal.doubleValue();
|
||||||
Long billingStatementId = billingStatement.getBillingStatementId();
|
Long billingStatementId = billingStatement.getBillingStatementId();
|
||||||
BillingStatementDTO billingStatementDTO = new BillingStatementDTO();
|
BillingStatementDTO billingStatementDTO = new BillingStatementDTO();
|
||||||
billingStatementDTO.setBillingStatementIds(String.valueOf(billingStatementId));
|
billingStatementDTO.setBillingStatementIds(String.valueOf(billingStatementId));
|
||||||
@@ -1526,7 +1537,8 @@ public class BillingStatementApplicationService {
|
|||||||
Long organizationId = billingStatement.getOrganizationId();
|
Long organizationId = billingStatement.getOrganizationId();
|
||||||
Map<String, Object> taxRateMap = billingStatementMapper.getTaxRate(organizationId, firstSubjectCode, firstSubjectName);
|
Map<String, Object> taxRateMap = billingStatementMapper.getTaxRate(organizationId, firstSubjectCode, firstSubjectName);
|
||||||
if (taxRateMap == null) continue;
|
if (taxRateMap == null) continue;
|
||||||
Double taxRate = (Double) taxRateMap.get("taxRate");
|
BigDecimal taxRateBigDecimal = (BigDecimal) taxRateMap.get("taxRate");
|
||||||
|
Double taxRate = taxRateBigDecimal.doubleValue();
|
||||||
Long billingStatementId = billingStatement.getBillingStatementId();
|
Long billingStatementId = billingStatement.getBillingStatementId();
|
||||||
BillingStatementDTO billingStatementDTO = new BillingStatementDTO();
|
BillingStatementDTO billingStatementDTO = new BillingStatementDTO();
|
||||||
billingStatementDTO.setBillingStatementIds(String.valueOf(billingStatementId));
|
billingStatementDTO.setBillingStatementIds(String.valueOf(billingStatementId));
|
||||||
|
|||||||
Reference in New Issue
Block a user