dev
862857010@qq.com 2 years ago
parent becdd79ed1
commit 8403fbbfa7
  1. 10
      cjy-project/src/main/resources/mapper/reservationAge/ReservationRealtimeMapper.xml

@ -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>
<select id="selectPreBookByOrganCode" resultType="java.lang.Integer" parameterType="Long">
SELECT
IFNULL( sum(appointment_people_count), 0 )
from appointment_team_data
WHERE scenic_code = #{organCode}
and del_flag !=2 and appointment_date=DATE_FORMAT( NOW(), '%Y-%m-%d' )
select ifnull(sum(t1.prebook_num), 0) as prebookNum
from r_reservation_realtime t1
left join b_tour_info t2 on t1.resource_code = t2.resource_code
where t1.del_flag !='2' and t2.del_flag !='2' and t2.organ_code =#{organCode}
</select>

Loading…
Cancel
Save