You've already forked FrameTour-BE
数据
This commit is contained in:
@ -38,7 +38,7 @@
|
||||
SELECT
|
||||
IFNULL(count(1), 0) AS count
|
||||
FROM (
|
||||
select count(1) as count
|
||||
select 1
|
||||
from statistics
|
||||
where type=10 and morph_id in (1047,1048,1049) and scenic_id = #{scenicId}
|
||||
<if test="startTime!= null">
|
||||
@ -47,7 +47,6 @@
|
||||
<if test="endTime!= null">
|
||||
and create_time <= #{endTime}
|
||||
</if>
|
||||
group by member_id
|
||||
) AS subquery;
|
||||
</select>
|
||||
<select id="countClickPayOfMember" resultType="java.lang.Integer">
|
||||
@ -83,23 +82,28 @@
|
||||
)a
|
||||
</select>
|
||||
<select id="countSceneOrderNum" resultType="java.lang.Integer">
|
||||
SELECT
|
||||
IFNULL(count(count), 0) AS count
|
||||
FROM (
|
||||
select count(1) as count
|
||||
from `order`
|
||||
where scenic_id = #{scenicId} and pay_at is not null
|
||||
from statistics
|
||||
where type=4 and scenic_id = #{scenicId}
|
||||
<if test="startTime!= null">
|
||||
and create_at >= #{startTime}
|
||||
and create_time >= #{startTime}
|
||||
</if>
|
||||
<if test="endTime!= null">
|
||||
and create_at <= #{endTime}
|
||||
and create_time <= #{endTime}
|
||||
</if>
|
||||
group by morph_id
|
||||
)a
|
||||
</select>
|
||||
<select id="countPushOrderNum" resultType="java.lang.Integer">
|
||||
SELECT
|
||||
IFNULL(SUM(count), 0) AS count
|
||||
IFNULL(count(count), 0) AS count
|
||||
FROM (
|
||||
select count(1) as count
|
||||
from statistics
|
||||
where type=4 and scenic_id = #{scenicId}
|
||||
where type=3 and scenic_id = #{scenicId}
|
||||
<if test="startTime!= null">
|
||||
and create_time >= #{startTime}
|
||||
</if>
|
||||
|
Reference in New Issue
Block a user