Explorar o código

经销商销售统计数量乘以时间

lyhzzz %!s(int64=2) %!d(string=hai) anos
pai
achega
31f486eae1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/main/resources/mapper/manage/AgentNewLogMapper.xml

+ 1 - 1
src/main/resources/mapper/manage/AgentNewLogMapper.xml

@@ -3,7 +3,7 @@
 <mapper namespace="com.fdkankan.manage.mapper.IAgentNewLogMapper">
 
     <select id="listGroup" resultType="com.fdkankan.manage.vo.response.AgentLogGVo" >
-        select agent_id,type,sum(count)as num from t_agent_new_log
+        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>