lyhzzz 2 سال پیش
والد
کامیت
e987a666c2
2فایلهای تغییر یافته به همراه5 افزوده شده و 5 حذف شده
  1. 3 3
      src/main/resources/mapper/manage/ScenePlusMapper.xml
  2. 2 2
      src/main/resources/mapper/manage/SceneProMapper.xml

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

@@ -4,7 +4,7 @@
 
 
     <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(p.id) as count FROM t_scene_plus p
         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
             left join t_scene_plus_ext e on p.id = e.plus_id
         </if>
         </if>
         WHERE  p.rec_status = 'A'
         WHERE  p.rec_status = 'A'
@@ -12,10 +12,10 @@
         <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">
+        <if test="isObj != null and isObj == 0">
             and p.scene_source in (1,2,3,12,13,14)
             and p.scene_source in (1,2,3,12,13,14)
         </if>
         </if>
-        <if test="isObj != null and isObj = 1">
+        <if test="isObj != null and isObj == 1">
             and e.is_obj = 1
             and e.is_obj = 1
             and p.scene_source = 4
             and p.scene_source = 4
         </if>
         </if>

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

@@ -8,10 +8,10 @@
          <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">
+        <if test="isObj !=null and isObj == 0">
             and scene_source in (1,2,3,12,13,14)
             and scene_source in (1,2,3,12,13,14)
         </if>
         </if>
-        <if test="isObj !=null and isObj = 1">
+        <if test="isObj !=null and isObj == 1">
            and  is_obj = 1
            and  is_obj = 1
             and scene_source  = 4
             and scene_source  = 4
         </if>
         </if>