|
@@ -1406,7 +1406,7 @@
|
|
|
a.worker_name,
|
|
|
a.websit_id,
|
|
|
a.websit_name,
|
|
|
- b.category_id,
|
|
|
+ b.goods_category_id AS category_id,
|
|
|
SUM( a.sales_qty ) AS totalQty,
|
|
|
SUM( a.totalSaleVal ) AS totalSaleVal,
|
|
|
SUM( a.convert_qty ) as totalConvertQty
|
|
@@ -1450,13 +1450,13 @@
|
|
|
AND a.confirm_by IS NOT NULL
|
|
|
AND a.confirm_time BETWEEN #{startDate} AND #{endDate}
|
|
|
) 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
|
|
|
a.worker_id,
|
|
|
a.worker_name,
|
|
|
a.websit_id,
|
|
|
a.websit_name,
|
|
|
- b.category_id
|
|
|
+ b.goods_category_id
|
|
|
) a
|
|
|
GROUP BY
|
|
|
a.worker_id,
|