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