|
|
@ -77,12 +77,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
select ifnull(in_num,0)as num from r_reservation_realtime where resource_code=#{resourceCode} |
|
|
|
select ifnull(in_num,0)as num from r_reservation_realtime where resource_code=#{resourceCode} |
|
|
|
</select> |
|
|
|
</select> |
|
|
|
<select id="selectPreBookByOrganCode" resultType="java.lang.Integer" parameterType="Long"> |
|
|
|
<select id="selectPreBookByOrganCode" resultType="java.lang.Integer" parameterType="Long"> |
|
|
|
SELECT |
|
|
|
select ifnull(sum(t1.prebook_num), 0) as prebookNum |
|
|
|
IFNULL( sum(appointment_people_count), 0 ) |
|
|
|
from r_reservation_realtime t1 |
|
|
|
|
|
|
|
left join b_tour_info t2 on t1.resource_code = t2.resource_code |
|
|
|
from appointment_team_data |
|
|
|
where t1.del_flag !='2' and t2.del_flag !='2' and t2.organ_code =#{organCode} |
|
|
|
WHERE scenic_code = #{organCode} |
|
|
|
|
|
|
|
and del_flag !=2 and appointment_date=DATE_FORMAT( NOW(), '%Y-%m-%d' ) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</select> |
|
|
|
</select> |
|
|
|