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']); + } + + } + }