接口调整

dev
masong 2 years ago
parent 0f19d8f8f9
commit a432904763
  1. 2
      cjy-project/src/main/resources/mapper/reservationAge/ReservationHourMapper.xml
  2. 6
      cjy-project/src/main/resources/mapper/tour/TourInfoMapper.xml

@ -83,7 +83,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<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}
where t1.del_flag !='2' and t2.del_flag !='2' and t2.organ_code =#{organCode}and (t1.hour >=8 and t1.hour <=18)
group by t1.hour
</select>

@ -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

Loading…
Cancel
Save