lyhzzz 2 年之前
父節點
當前提交
e987a666c2

+ 3 - 3
src/main/resources/mapper/manage/ScenePlusMapper.xml

@@ -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>

+ 2 - 2
src/main/resources/mapper/manage/SceneProMapper.xml

@@ -8,10 +8,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 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  is_obj = 1
             and scene_source  = 4
         </if>