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