|
@@ -184,6 +184,7 @@ class Appointment extends Permissions
|
|
|
if (false == $this->getModel()->where('id', $id)->delete()) {
|
|
|
$this->error('删除失败');
|
|
|
} else {
|
|
|
+ \app\common\model\AppointmentTicket::where('appointment_id',$id)->delete();
|
|
|
$this->success('删除成功', 'index');
|
|
|
}
|
|
|
}
|