...
|
...
|
@@ -296,8 +296,7 @@ class YuyueController extends UserBaseController |
|
|
$exist_map['yuyue_week'] = $week;
|
|
|
$exist_map['yuyue_end'] = [['>',$begin],['<=',$end],'and'];
|
|
|
$is_exist=\db('yuyue')->where($exist_map)->find();
|
|
|
dump(\db('yuyue')->getLastSql());
|
|
|
dump($is_exist);
|
|
|
|
|
|
$exist_map1['yuyue_begin'] = ['>=',$begin];
|
|
|
$exist_map1['teach_id'] = intval($tech_id);
|
|
|
$exist_map1['yuyue_day'] = $day;
|
...
|
...
|
@@ -305,8 +304,7 @@ class YuyueController extends UserBaseController |
|
|
$exist_map1['yuyue_end'] = ['<=',$end];
|
|
|
|
|
|
$is_exist1=\db('yuyue')->where($exist_map1)->find();
|
|
|
dump(\db('yuyue')->getLastSql());
|
|
|
dump($is_exist1);
|
|
|
|
|
|
|
|
|
if (!empty($is_exist)||!empty($is_exist1)){
|
|
|
return json(['code' => '0', 'msg' => '您好,您的预约时间与其他学员冲突,请刷新后提交!']);
|
...
|
...
|
|