|
|
|
@ -153,8 +153,8 @@ |
|
|
|
|
LEFT JOIN ybsj_appointment_setting t2 on t1.appointment_settings_id = t2.id and t2.state = 0 |
|
|
|
|
LEFT join ybsj_scenic_info t3 on t2.scenic_id =t3.guid |
|
|
|
|
WHERE t2.scenic_id = #{scenicId} |
|
|
|
|
and t1.del_flag !=2 |
|
|
|
|
and t1.use_date LIKE CONCAT('%', #{whichDay}, '%') |
|
|
|
|
|
|
|
|
|
and (t1.unavailable_date NOT LIKE CONCAT('%', #{date}, '%') or t1.unavailable_date is null) |
|
|
|
|
</select> |
|
|
|
|
<select id="getAppointmentCount" resultType="java.lang.Integer"> |
|
|
|
@ -188,4 +188,7 @@ |
|
|
|
|
<select id="getScenicNameByid" resultType="java.lang.String"> |
|
|
|
|
select sname from ybsj_scenic_info where guid=#{scenicId} |
|
|
|
|
</select> |
|
|
|
|
<select id="getAppointmentSettingByScenicId" resultType="java.lang.Integer"> |
|
|
|
|
select can_reserve_day_number from ybsj_appointment_setting where scenic_id=#{scenicId} and `state`=0 |
|
|
|
|
</select> |
|
|
|
|
</mapper> |
|
|
|
|