| | |
| | | IFNULL(SUM(CASE WHEN order_from = 2 THEN 1 ELSE 0 END),0) activityOrderTotal |
| | | FROM t_order |
| | | WHERE del_flag = 0 AND order_status IN (2,3) |
| | | <if test="null != shopIds and shopIds.size() > 0"> |
| | | and shop_id in |
| | | <foreach collection="shopIds" index="index" item="item" open="(" separator="," close=")"> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="activityUserTotal" resultType="java.lang.Integer"> |
| | |
| | | COUNT(DISTINCT user_id) |
| | | FROM t_order |
| | | WHERE del_flag = 0 AND order_from = 2 AND order_status IN (2,3) |
| | | <if test="null != shopIds and shopIds.size() > 0"> |
| | | and shop_id in |
| | | <foreach collection="shopIds" index="index" item="item" open="(" separator="," close=")"> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="getTotalOrderTotalOrderFrom" resultType="com.ruoyi.order.domain.vo.MgtTotalOrderTotalVo"> |