1.修改sql

dev
862857010@qq.com 2 years ago
parent c4f1fa9494
commit 0125be8b1c
  1. 2
      cjy-project/src/main/resources/mapper/reservationAge/AppointmentStatisticsTaskMapper.xml
  2. 4
      cjy-project/src/main/resources/mapper/reservationAge/ReservationRealtimeMapper.xml

@ -150,7 +150,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
appointment_team_data t1
LEFT JOIN appointment_people_info t2 on t1.id =t2.appointment_form
and t2.del_flag !=2
WHERE t1.scenic_code=#{resourceCode} and t1.del_flag !=2 and t1.appointment_date=DATE_FORMAT( NOW(), '%Y-%m-%d' ) and t2.certificate_type='5501'
WHERE t1.scenic_code=#{resourceCode} and t1.del_flag !=2 and t2.certificate_type='5501'
</select>
</mapper>

@ -81,7 +81,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select>
<select id="getGroupAppointmentCount" resultType="java.lang.Long">
SELECT sum(appointment_people_count)
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' )

Loading…
Cancel
Save