瀏覽代碼

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

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">
 
     <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>