首炬大屏
parent
393d55e78e
commit
5470f24f50
|
|
@ -24,8 +24,9 @@
|
||||||
WHERE a.status = 2
|
WHERE a.status = 2
|
||||||
UNION ALL
|
UNION ALL
|
||||||
SELECT COUNT(*) c, 3 t
|
SELECT COUNT(*) c, 3 t
|
||||||
FROM ba_order_dispatch
|
FROM ba_order
|
||||||
WHERE status = 3) t
|
WHERE type = 5
|
||||||
|
AND finish = 1) t
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="getYuYueSummary" resultType="com.njzscloud.supervisory.statistics.pojo.YuYueSummary">
|
<select id="getYuYueSummary" resultType="com.njzscloud.supervisory.statistics.pojo.YuYueSummary">
|
||||||
|
|
@ -38,14 +39,16 @@
|
||||||
FROM (SELECT COUNT(*) c, 1 t
|
FROM (SELECT COUNT(*) c, 1 t
|
||||||
FROM ba_order a
|
FROM ba_order a
|
||||||
INNER JOIN ba_order_dispatch b ON b.order_no = a.order_no
|
INNER JOIN ba_order_dispatch b ON b.order_no = a.order_no
|
||||||
WHERE UNIX_TIMESTAMP(a.create_time) >= UNIX_TIMESTAMP(CURDATE())
|
WHERE UNIX_TIMESTAMP(from_unixtime(a.create_time)) >= UNIX_TIMESTAMP(DATE_SUB(CURDATE(), INTERVAL 24 HOUR))
|
||||||
AND UNIX_TIMESTAMP(a.create_time) <![CDATA[ < ]]> UNIX_TIMESTAMP(DATE_ADD(CURDATE(), INTERVAL -24 HOUR))
|
AND UNIX_TIMESTAMP(from_unixtime(a.create_time)) <![CDATA[ < ]]> UNIX_TIMESTAMP(CURDATE())
|
||||||
|
AND a.status NOT IN (4, 5)
|
||||||
UNION ALL
|
UNION ALL
|
||||||
SELECT COUNT(*) c, 2 t
|
SELECT COUNT(*) c, 2 t
|
||||||
FROM ba_order a
|
FROM ba_order a
|
||||||
INNER JOIN ba_order_dispatch b ON b.order_no = a.order_no
|
INNER JOIN ba_order_dispatch b ON b.order_no = a.order_no
|
||||||
WHERE UNIX_TIMESTAMP(a.create_time) >= UNIX_TIMESTAMP(CURDATE())
|
WHERE UNIX_TIMESTAMP(from_unixtime(a.create_time)) >= UNIX_TIMESTAMP(CURDATE())
|
||||||
AND UNIX_TIMESTAMP(a.create_time) <![CDATA[ < ]]> UNIX_TIMESTAMP(DATE_ADD(CURDATE(), INTERVAL 24 HOUR))) t) tt
|
AND a.status NOT IN (4, 5)
|
||||||
|
AND UNIX_TIMESTAMP(from_unixtime(a.create_time)) <![CDATA[ < ]]> UNIX_TIMESTAMP(DATE_ADD(CURDATE(), INTERVAL 24 HOUR))) t) tt
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="getDisposeTotalWeight" resultType="java.lang.Integer">
|
<select id="getDisposeTotalWeight" resultType="java.lang.Integer">
|
||||||
|
|
@ -70,9 +73,9 @@
|
||||||
SELECT COUNT(*) car_count
|
SELECT COUNT(*) car_count
|
||||||
FROM ba_order a
|
FROM ba_order a
|
||||||
INNER JOIN ba_order_dispatch b ON b.order_no = a.order_no
|
INNER JOIN ba_order_dispatch b ON b.order_no = a.order_no
|
||||||
WHERE UNIX_TIMESTAMP(a.create_time) >= UNIX_TIMESTAMP(CURDATE())
|
WHERE UNIX_TIMESTAMP(from_unixtime(a.create_time)) >= UNIX_TIMESTAMP(CURDATE())
|
||||||
AND UNIX_TIMESTAMP(a.create_time) <![CDATA[ < ]]> UNIX_TIMESTAMP(DATE_ADD(CURDATE(), INTERVAL 24 HOUR))
|
AND UNIX_TIMESTAMP(from_unixtime(a.create_time)) <![CDATA[ < ]]> UNIX_TIMESTAMP(DATE_ADD(CURDATE(), INTERVAL 24 HOUR))
|
||||||
AND a.status = 1
|
AND a.status NOT IN (4, 5)
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="getRegionSummary" resultType="com.njzscloud.supervisory.statistics.pojo.RegionSummary">
|
<select id="getRegionSummary" resultType="com.njzscloud.supervisory.statistics.pojo.RegionSummary">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue