|
|
|
@ -546,7 +546,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
|
<select id="selectScenicFlow" resultType="java.util.Map"> |
|
|
|
|
SELECT |
|
|
|
|
SUM( t1.max_load ) maxLoad, |
|
|
|
|
(select ifnull( sum(t2.current_num),0) from flow_current_scenic t2 ) as intoFlow |
|
|
|
|
( select |
|
|
|
|
ifnull(sum(case WHEN state = 1 then 1 else 0 end), 0) as writeOffs |
|
|
|
|
from appointment_center_data |
|
|
|
|
where del_flag!='2' and organ_code=#{organCode} |
|
|
|
|
and to_days(appointment_date) = to_days(now())) as intoFlow |
|
|
|
|
FROM |
|
|
|
|
b_tour_info t1 |
|
|
|
|
WHERE |
|
|
|
|