|
@@ -4,13 +4,16 @@
|
|
|
|
|
|
<select id="getCountGroupByUserId" resultType="com.fdkankan.manage.vo.response.GroupByCount" >
|
|
<select id="getCountGroupByUserId" resultType="com.fdkankan.manage.vo.response.GroupByCount" >
|
|
SELECT user_id as id, count(id) as count FROM t_scene_pro WHERE rec_status = 'A' and is_upgrade = 0
|
|
SELECT user_id as id, count(id) as count FROM t_scene_pro WHERE rec_status = 'A' and is_upgrade = 0
|
|
- and scene_source in (1,2,3,12,13,14)
|
|
|
|
and user_id in
|
|
and user_id in
|
|
<foreach item="userId" collection="userIdList" open="(" separator="," close=")">
|
|
<foreach item="userId" collection="userIdList" open="(" separator="," close=")">
|
|
#{userId}
|
|
#{userId}
|
|
</foreach>
|
|
</foreach>
|
|
|
|
+ <if test="isObj !=null and isObj = 0">
|
|
|
|
+ and scene_source in (1,2,3,12,13,14)
|
|
|
|
+ </if>
|
|
<if test="isObj !=null and isObj = 1">
|
|
<if test="isObj !=null and isObj = 1">
|
|
- is_obj = 1
|
|
|
|
|
|
+ and is_obj = 1
|
|
|
|
+ and scene_source = 4
|
|
</if>
|
|
</if>
|
|
GROUP BY user_id
|
|
GROUP BY user_id
|
|
</select>
|
|
</select>
|