Browse Source

统计签单总金额

albertshaw 7 years ago
parent
commit
e8b34eca71

+ 1 - 1
src/main/java/com/goafanti/common/mapper/DailySalesReportMapper.xml

@@ -27,7 +27,7 @@
   
   <select id="selectDailySalesReports" resultMap="BaseResultMap">
     SELECT o.salesman_id as admin_id, a.department_id as dep_id,
-	count(o.order_no) as order_count, sum(o.order_amount) as order_amount
+	count(o.order_no) as order_count, sum(o.sign_total_amount) as order_amount
 	FROM aft.t_order o
 	left join aft.admin a on o.salesman_id=a.id
 	where o.order_status=3 and o.sign_time &gt;= #{startTime,jdbcType=TIMESTAMP} and o.sign_time &lt; #{endTime,jdbcType=TIMESTAMP}