Browse Source

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

lyhzzz 2 năm trước cách đây
mục cha
commit
31f486eae1
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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>