From 45ea27fd1f331c70f3f358a789aac1cdcda6709f Mon Sep 17 00:00:00 2001 From: zhengyongxing Date: Thu, 9 Jan 2020 19:20:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B8=82=E5=9C=BA=E7=BB=93=E7=AE=97=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E5=88=A0=E9=99=A4=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../StatementMangementController.class.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Application/Admin/Controller/StatementMangementController.class.php b/Application/Admin/Controller/StatementMangementController.class.php index 84cddf7f6..fe8f5e4de 100644 --- a/Application/Admin/Controller/StatementMangementController.class.php +++ b/Application/Admin/Controller/StatementMangementController.class.php @@ -165,4 +165,21 @@ class StatementMangementController extends ThinkController } } + public function delStatementData() { + + $id = $_REQUEST['id']; + if (!$id) { + $this->ajaxReturn(['code'=>2000,'msg'=>'error']); + } + + $is_del = M('statement','tab_')->where(['id'=>$id])->delete(); + + if ($is_del) { + $this->ajaxReturn(['code'=>0,'msg'=>'success']); + } else { + $this->ajaxReturn(['code'=>2000,'msg'=>'error']); + } + + } + }