You've already forked FrameTour-BE
2
This commit is contained in:
@ -10,7 +10,7 @@
|
||||
select ifnull(sum(pay_price),0) as payPrice
|
||||
from `order`
|
||||
where
|
||||
status = 1 and scenic_id = #{scenicId}
|
||||
(status = 1 or status = 2) and scenic_id = #{scenicId}
|
||||
<if test="startTime!= null">
|
||||
and create_at >= #{startTime}
|
||||
</if>
|
||||
@ -36,7 +36,7 @@
|
||||
</select>
|
||||
<select id="countScanCodeOfMember" 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
|
||||
@ -52,7 +52,7 @@
|
||||
</select>
|
||||
<select id="countClickPayOfMember" 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
|
||||
@ -68,7 +68,7 @@
|
||||
</select>
|
||||
<select id="countPayOfMember" 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
|
||||
@ -116,7 +116,7 @@
|
||||
</select>
|
||||
<select id="countPushOfMember" 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
|
||||
@ -142,15 +142,17 @@
|
||||
</if>
|
||||
</select>
|
||||
<select id="countUploadFaceOfMember" resultType="java.lang.Integer">
|
||||
select count(1) as count
|
||||
from face
|
||||
where scenic_id = #{scenicId}
|
||||
<if test="startTime!= null">
|
||||
and create_at >= #{startTime}
|
||||
</if>
|
||||
<if test="endTime!= null">
|
||||
and create_at <= #{endTime}
|
||||
select ifnull(count(1),0) as count
|
||||
from(
|
||||
select count(1) as count
|
||||
from face
|
||||
where scenic_id = #{scenicId}
|
||||
<if test="startTime!= null">and create_at >= #{startTime}
|
||||
</if><if test="
|
||||
endTime!= null">and create_at <= #{endTime}
|
||||
</if>
|
||||
group by member_id
|
||||
) a
|
||||
</select>
|
||||
<select id="countCompleteVideoOfMember" resultType="java.lang.Integer">
|
||||
select ifnull(count(1),0) as count
|
||||
@ -170,11 +172,11 @@
|
||||
</select>
|
||||
<select id="countTotalVisitorOfMember" 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=0 and scenic_id = #{scenicId}
|
||||
where type in (0,10) and scenic_id = #{scenicId}
|
||||
<if test="startTime!= null">
|
||||
and create_time >= #{startTime}
|
||||
</if>
|
||||
@ -186,7 +188,7 @@
|
||||
</select>
|
||||
<select id="countCompleteOfVideo" resultType="java.lang.Integer">
|
||||
select count(1) as count
|
||||
from video
|
||||
from task
|
||||
where scenic_id = #{scenicId}
|
||||
<if test="startTime!= null">
|
||||
and create_time >= #{startTime}
|
||||
|
Reference in New Issue
Block a user