1.sql添加排出删除数据条件

dev
862857010@qq.com 2 years ago
parent 8a2a4a6bfb
commit bf5993170f
  1. 11
      cjy-project/src/main/resources/mapper/reservationAge/AppointmentStatisticsTaskMapper.xml

@ -17,7 +17,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
WHERE 1=1
and DATE_FORMAT(t1.appointment_date,'%Y-%m-%d') = DATE_FORMAT(NOW(),'%Y-%m-%d')
and t1.source_type=1
and t1.del_flag !=2
GROUP BY t2.resource_code, t1.organ_code
</select>
<select id="getHourAppointmentLiveData" resultType="java.util.Map">
@ -109,7 +109,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and source_type=1
</select>
<select id="selectTouristVerification" resultType="java.lang.String">
select documents_number from appointment_center_data where state =1 and certificate_type ='5501' and external_id = #{resourceCode} and source_type=1 and source_type=1 and DATE_FORMAT(write_off_time,'%Y-%m-%d') = ( CURDATE() - INTERVAL 1 DAY)
select documents_number
from appointment_center_data
where state = 1
and certificate_type = '5501'
and external_id = #{resourceCode}
and source_type = 1
and del_flag!=2
and DATE_FORMAT(write_off_time, '%Y-%m-%d') = (CURDATE() - INTERVAL 1 DAY)
</select>
<select id="selectAppointmentsNumber" resultType="java.lang.Integer">

Loading…
Cancel
Save