Commit 53b92e5a authored by hanfeng's avatar hanfeng

Merge branch 'master-order-statistics' into dev

parents 82b14836 1575d73b
...@@ -43,12 +43,12 @@ ...@@ -43,12 +43,12 @@
resultMap="order"> resultMap="order">
SELECT SELECT
<if test="type==2"> <if test="type==2">
DATE_FORMAT(date( FROM_UNIXTIME( a.crt_time / 1000 ) ),'%Y-%v') AS period, DATE_FORMAT(date( FROM_UNIXTIME( a.account_time / 1000 ) ),'%Y-%v') AS period,
</if> </if>
<if test="type==3"> <if test="type==3">
DATE_FORMAT(date( FROM_UNIXTIME( a.crt_time / 1000 ) ),'%Y-%m') AS period, DATE_FORMAT(date( FROM_UNIXTIME( a.account_time / 1000 ) ),'%Y-%m') AS period,
</if> </if>
date( FROM_UNIXTIME( a.crt_time / 1000 ) ) AS period, date( FROM_UNIXTIME( a.account_time / 1000 ) ) AS period,
count( a.id ) AS number, count( a.id ) AS number,
SUM( a.account_amount ) AS amount, SUM( a.account_amount ) AS amount,
d.member_level AS level d.member_level AS level
...@@ -68,13 +68,13 @@ ...@@ -68,13 +68,13 @@
</if> </if>
GROUP BY GROUP BY
<if test="type==2"> <if test="type==2">
DATE_FORMAT(date( FROM_UNIXTIME( a.crt_time / 1000 ) ),'%Y-%v'), DATE_FORMAT(date( FROM_UNIXTIME( a.account_time / 1000 ) ),'%Y-%v'),
</if> </if>
<if test="type==3"> <if test="type==3">
DATE_FORMAT(date( FROM_UNIXTIME( a.crt_time / 1000 ) ),'%Y-%m'), DATE_FORMAT(date( FROM_UNIXTIME( a.account_time / 1000 ) ),'%Y-%m'),
</if> </if>
date( FROM_UNIXTIME( a.crt_time / 1000 ) ), date( FROM_UNIXTIME( a.account_time / 1000 ) ),
d.member_level d.member_level
</select> </select>
<resultMap id="order" type="com.xxfc.platform.order.entity.MembersOrder"> <resultMap id="order" type="com.xxfc.platform.order.entity.MembersOrder">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment