From 5009a327db92fe7c98ed93ed50c70783024ba241 Mon Sep 17 00:00:00 2001 From: yulingwei <2436953959@qq.com> Date: Mon, 13 Apr 2020 15:14:06 +0800 Subject: [PATCH] upt --- Application/Admin/Controller/WorkOrderController.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Application/Admin/Controller/WorkOrderController.class.php b/Application/Admin/Controller/WorkOrderController.class.php index 235768914..96ebd2753 100644 --- a/Application/Admin/Controller/WorkOrderController.class.php +++ b/Application/Admin/Controller/WorkOrderController.class.php @@ -314,7 +314,7 @@ class WorkOrderController extends ThinkController // 删除 public function delete($ids) { - $delete = M('work_order_info', 'tab_')->where(['id'=>['in', $ids]])->save(['status'=>2]); + $delete = M('work_order_info', 'tab_')->where(['id'=>['in', $ids]])->delete(); return $delete ? $this->success('删除成功') : $this->error('删除失败'); }