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