Преглед изворни кода

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

lyhzzz пре 2 година
родитељ
комит
31f486eae1
1 измењених фајлова са 1 додато и 1 уклоњено
  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">
 <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
+        select agent_id,type,sum(count * total_time )as num from t_agent_new_log
         <if test="startTime != null and startTime !='' ">
         <if test="startTime != null and startTime !='' ">
             where create_time between #{startTime} and #{endTime}
             where create_time between #{startTime} and #{endTime}
         </if>
         </if>