dev
masong 2 years ago
parent 892a326816
commit aca64ea665
  1. 4
      cjy-project/src/main/resources/mapper/reservationAge/ReservationHourMapper.xml

@ -77,13 +77,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectHourFlowList" resultMap="ResultVOResult">
select t1.hour as name,ifnull( sum(t1.prebook_num),0) as num from r_reservation_hour 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}
where t1.del_flag !='2' and t2.del_flag !='2' and t2.organ_code =#{organCode} and (t1.hour &gt;=8 and t1.hour &lt;=18)
group by t1.hour
</select>
<select id="selectInToFlowHourList" resultMap="ResultVOResult">
select t1.hour as name,ifnull( sum(t1.into_num),0) as num from r_reservation_hour 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}and (t1.hour &gt;=8 and t1.hour &lt;=18)
where t1.del_flag !='2' and t2.del_flag !='2' and t2.organ_code =#{organCode} and (t1.hour &gt;=8 and t1.hour &lt;=18)
group by t1.hour
</select>

Loading…
Cancel
Save