|
|
@@ -441,12 +441,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</delete>
|
|
|
|
|
|
<select id="selectFsStoreOrderCounts" resultType="com.alibaba.fastjson.JSONObject">
|
|
|
- SELECT count(t.order_id ) AS orderCount, t.type, sum(IFNULL(t.pay_price,0)) as payPrice
|
|
|
+ SELECT count(t.id ) AS orderCount, t.type, sum(IFNULL(t.pay_price,0)) as payPrice
|
|
|
FROM
|
|
|
(
|
|
|
- SELECT DATE_FORMAT( o.create_time, #{sqlDateFormat} ) AS type, o.order_id,o.pay_price
|
|
|
+ SELECT DATE_FORMAT( o.create_time, #{sqlDateFormat} ) AS type, o.id,o.pay_price
|
|
|
FROM
|
|
|
- fs_store_order AS o
|
|
|
+ fs_store_order_scrm AS o
|
|
|
WHERE
|
|
|
o.status > 1 and
|
|
|
(DATE_FORMAT(o.create_time,#{sqlDateFormat}) between #{beginTime} and #{finalTime})
|