lyhzzz 2 years ago
parent
commit
e7b2ee0b5a
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/main/resources/mapper/manage/AgentNewLogMapper.xml

+ 3 - 2
src/main/resources/mapper/manage/AgentNewLogMapper.xml

@@ -3,9 +3,10 @@
 <mapper namespace="com.fdkankan.manage.mapper.IAgentNewLogMapper">
 <mapper namespace="com.fdkankan.manage.mapper.IAgentNewLogMapper">
 
 
     <select id="listGroup" resultType="com.fdkankan.manage.vo.response.AgentLogGVo" >
     <select id="listGroup" resultType="com.fdkankan.manage.vo.response.AgentLogGVo" >
-        select agent_id,type,sum(count)as num from t_agent_new_log GROUP BY agent_id,type
+        select agent_id,type,sum(count)as num from t_agent_new_log
         <if test="startTime != null and startTime !='' ">
         <if test="startTime != null and startTime !='' ">
-            and create_time between #{startTime} and #{endTime}
+            where create_time between #{startTime} and #{endTime}
         </if>
         </if>
+        GROUP BY agent_id,type
     </select>
     </select>
 </mapper>
 </mapper>