liangbo.huang 2 veckor sedan
förälder
incheckning
c9a43b3186

+ 1 - 1
trade-service/src/main/resources/data.init/v1.1/20241022.sql

@@ -201,7 +201,7 @@ INSERT INTO `s_file_template` (`template_code`, `file_type`, `default_name`, `sr
 VALUES ('taxRebateAgreement', 'taxRebateAgreement', '技术服务合同(退税服务)',
         '/data/contract_template/技术服务合同(退税服务).docx', 'trade-user_document', 0);
 
-CREATE TABLE `enterprise_related_person_i18`
+CREATE TABLE `enterprise_related_person_i18n`
 (
     `id`       bigint(20)   NOT NULL,
     `language` varchar(255) NOT NULL,

+ 1 - 1
trade-service/src/main/resources/mapper/trade/exportrebate/TaxRebateExportDetailsMapper.xml

@@ -87,7 +87,7 @@
         SELECT
         COUNT(DISTINCT d.id) AS total_count,
         COUNT(DISTINCT d.customs_declaration_no) AS customs_declaration_count,
-        SUM(COALESCE(d.export_quantity,0) * COALESCE(d.fob_price_usd,0)) / 10000 AS export_total_amount,
+        SUM(COALESCE(d.fob_price_usd,0)) / 10000 AS export_total_amount,
         SUM(COALESCE(p.purchase_invoice_count, 0)) AS purchase_invoice_count,
         SUM(COALESCE(d.tax_refund_amount,0)) / 10000 AS tax_rebate_total_amount
         FROM tax_rebate_export_details d