Browse Source

Merge remote-tracking branch 'origin/develop' into develop

‘linchangsheng’ 7 months ago
parent
commit
aa15eff673
1 changed files with 4 additions and 3 deletions
  1. 4 3
      mall-server-api/src/main/resources/mapper/MaterialMapper.xml

+ 4 - 3
mall-server-api/src/main/resources/mapper/MaterialMapper.xml

@@ -775,6 +775,7 @@
             t1.worker_name,
             t1.worker_name,
             IFNULL(SUM( t1.totalSaleValue ) - SUM( t1.retValue ), 0) AS totalSaleValue,
             IFNULL(SUM( t1.totalSaleValue ) - SUM( t1.retValue ), 0) AS totalSaleValue,
             IFNULL(SUM( t1.cash ), 0) AS cash,
             IFNULL(SUM( t1.cash ), 0) AS cash,
+            IFNULL(SUM( t1.allinpay ), 0) AS allinpay,
             IFNULL(SUM( t1.cashSaleValue ), 0) AS cashSaleValue,
             IFNULL(SUM( t1.cashSaleValue ), 0) AS cashSaleValue,
             IFNULL(SUM( t1.allinpaySaleValue ), 0) AS allinpaySaleValue,
             IFNULL(SUM( t1.allinpaySaleValue ), 0) AS allinpaySaleValue,
             IFNULL(SUM( t1.retValue ), 0) AS retValue
             IFNULL(SUM( t1.retValue ), 0) AS retValue
@@ -1405,7 +1406,7 @@
                     a.worker_name,
                     a.worker_name,
                     a.websit_id,
                     a.websit_id,
                     a.websit_name,
                     a.websit_name,
-                    b.category_id,
+                    b.goods_category_id AS category_id,
                     SUM( a.sales_qty ) AS totalQty,
                     SUM( a.sales_qty ) AS totalQty,
                     SUM( a.totalSaleVal ) AS totalSaleVal,
                     SUM( a.totalSaleVal ) AS totalSaleVal,
                     SUM( a.convert_qty ) as totalConvertQty
                     SUM( a.convert_qty ) as totalConvertQty
@@ -1449,13 +1450,13 @@
                             AND a.confirm_by IS NOT NULL
                             AND a.confirm_by IS NOT NULL
                             AND a.confirm_time BETWEEN #{startDate} AND #{endDate}
                             AND a.confirm_time BETWEEN #{startDate} AND #{endDate}
                     ) a
                     ) a
-                    LEFT JOIN goods b ON a.goods_id = b.goods_id
+                    LEFT JOIN websit_goods b ON a.goods_id = b.goods_id
                 GROUP BY
                 GROUP BY
                     a.worker_id,
                     a.worker_id,
                     a.worker_name,
                     a.worker_name,
                     a.websit_id,
                     a.websit_id,
                     a.websit_name,
                     a.websit_name,
-                    b.category_id
+                    b.goods_category_id
             ) a
             ) a
         GROUP BY
         GROUP BY
             a.worker_id,
             a.worker_id,