|
@@ -1430,6 +1430,12 @@
|
|
|
AND a.company_wechat_id = #{companyWechatId}
|
|
|
AND a.flag = 'PAY_TAKE'
|
|
|
AND a.confirm_time BETWEEN #{startDate} AND #{endDate}
|
|
|
+ <if test="websits != null and websits.size > 0">
|
|
|
+ AND a.websit_id in
|
|
|
+ <foreach item="item" index="index" collection="websits" open="(" separator="," close=")">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
UNION ALL
|
|
|
SELECT
|
|
|
a.identity,
|
|
@@ -1449,6 +1455,12 @@
|
|
|
AND a.company_wechat_id = #{companyWechatId}
|
|
|
AND a.confirm_by IS NOT NULL
|
|
|
AND a.confirm_time BETWEEN #{startDate} AND #{endDate}
|
|
|
+ <if test="websits != null and websits.size > 0">
|
|
|
+ AND a.websit_id in
|
|
|
+ <foreach item="item" index="index" collection="websits" open="(" separator="," close=")">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
) a
|
|
|
LEFT JOIN websit_goods b ON a.goods_id = b.goods_id
|
|
|
GROUP BY
|