anderx пре 1 година
родитељ
комит
bd645c2e9d
1 измењених фајлова са 1 додато и 9 уклоњено
  1. 1 9
      src/main/java/com/goafanti/common/mapper/UserMapper.xml

+ 1 - 9
src/main/java/com/goafanti/common/mapper/UserMapper.xml

@@ -1569,15 +1569,7 @@
     <select id="selectUserClueCount" resultType="java.lang.Integer">
         select count(*) from `user` a
         where clue_status =1
-        <if test="aid !=null">
-            and a.aid= #{aid}
-        </if>
-        <if  test="clueProcess !=null">
-            and a.clue_process= #{clueProcess}
-        </if>
-        <if test="startTime  !=null and endTime != null">
-            and a.clue_time between #{startTime} and #{endTime}
-        </if>
+        <include refid="selectUserClueListSql"/>
     </select>
 </mapper>