AgentNewLogMapper.xml 575 B

123456789101112
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3. <mapper namespace="com.fdkankan.manage.mapper.IAgentNewLogMapper">
  4. <select id="listGroup" resultType="com.fdkankan.manage.vo.response.AgentLogGVo" >
  5. select agent_id,type,sum(count * total_time )as num from t_agent_new_log
  6. <if test="startTime != null and startTime !='' ">
  7. where create_time between #{startTime} and #{endTime}
  8. </if>
  9. GROUP BY agent_id,type
  10. </select>
  11. </mapper>