...
|
...
|
@@ -290,11 +290,11 @@ class YuyueController extends UserBaseController |
|
|
|
|
|
/*查看当前时间是否已经被预约了*/
|
|
|
|
|
|
$exist_map['yuyue_begin'] = [['>=',$begin],['<',$end],'or'];
|
|
|
$exist_map['yuyue_begin'] = [['>=',$begin],['<',$end],'and'];
|
|
|
$exist_map['teach_id'] = intval($tech_id);
|
|
|
$exist_map['yuyue_day'] = $day;
|
|
|
$exist_map['yuyue_week'] = $week;
|
|
|
$exist_map['yuyue_end'] = [['>',$begin],['<=',$end],'or'];
|
|
|
$exist_map['yuyue_end'] = [['>',$begin],['<=',$end],'and'];
|
|
|
$is_exist=\db('yuyue')->where($exist_map)->find();
|
|
|
dump(\db('yuyue')->getLastSql());
|
|
|
dump($is_exist);
|
...
|
...
|
|