Browse Source

销售收入上缴-v1.1

hanqingsong 3 months ago
parent
commit
14e0559b76

+ 10 - 12
unis-plugin/unis-plugin-biz/src/main/java/com/unis/financialSupervision/modular/fsSaleRevenue/mapper/mapping/FsSaleRevenueMapper.xml

@@ -45,7 +45,9 @@
45 45
             tcc. YEAR,
46 46
             tcc. MONTH,
47 47
             tcc.accounting_quantity accountingQuantity,
48
-            tcc.accounting_amount accountingAmount
48
+            tcc.accounting_amount accountingAmount,
49
+            tcc.province_accounting_quantity provinceAccountingQuantity,
50
+            tcc.province_accounting_amount provinceAccountingAmount
49 51
         FROM
50 52
             business_fs_sale_revenue_three_consistence_account tcc
51 53
         LEFT JOIN business_fs_sale_revenue sr ON sr.id = tcc.fs_sale_revenue_id
@@ -105,17 +107,9 @@
105 107
     </select>
106 108
     <select id="getOutStorageDetailsInfo" parameterType="integer" resultType="com.unis.financialSupervision.modular.fsSaleRevenueThreeConsistence.entity.FsSaleRevenueThreeConsistence">
107 109
         SELECT
108
-            tc.id,
109
-            tc.`year`,
110
-            tc.`month`,
111
-            tc.basic_storehouse_id,
112
-            tc.warehouse_id,
110
+            tc.*,
113 111
             bs.storehouse_name storehouseName,
114
-            bw.warehouse_name warehouseName,
115
-            tc.loss,
116
-            tc.custody_account_quantity,
117
-            tc.statistical_account_quantity,
118
-            tc.complete_time
112
+            bw.warehouse_name warehouseName
119 113
         FROM
120 114
             business_fs_sale_revenue_three_consistence tc
121 115
         LEFT JOIN basic_storehouse bs ON tc.basic_storehouse_id = bs.storehouse_id
@@ -126,6 +120,7 @@
126 120
     <select id="getSettlementDetailsInfo" parameterType="integer" resultType="com.unis.financialSupervision.modular.fsSaleRevenueSettle.entity.FsSaleRevenueSettle">
127 121
         SELECT
128 122
             rs.id,
123
+            rs.fs_sale_revenue_id fsSaleRevenueId,
129 124
             rs.province_acceptance_unit,
130 125
             rs.province_total_settle_quantity,
131 126
             rs.province_total_settle_amount,
@@ -170,9 +165,12 @@
170 165
     <select id="getDiffPriceDetailsInfo" parameterType="integer" resultType="com.unis.financialSupervision.modular.fsSaleRevenueDiffPrice.entity.FsSaleRevenueDiffPrice">
171 166
         SELECT
172 167
             dp.id,
168
+            dp.fs_sale_revenue_id fsSaleRevenueId,
173 169
             dp.project_type projectType,
174 170
             dp.total_quantity totalQuantity,
175
-            dp.total_amount totalAmount
171
+            dp.province_total_quantity provinceTotalQuantity,
172
+            dp.total_amount totalAmount,
173
+            dp.province_total_amount provinceTotalAmount
176 174
         FROM
177 175
             business_fs_sale_revenue_diff_price dp
178 176
         WHERE