|
|
|
@ -169,15 +169,15 @@ class StatementMangementController extends ThinkController
|
|
|
|
|
|
|
|
|
|
$id = $_REQUEST['id'];
|
|
|
|
|
if (!$id) {
|
|
|
|
|
$this->ajaxReturn(['code'=>2000,'msg'=>'error']);
|
|
|
|
|
$this->ajaxReturn(['code'=>2000,'error'=>'no']);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$is_del = M('statement','tab_')->where(['id'=>$id])->delete();
|
|
|
|
|
|
|
|
|
|
if ($is_del) {
|
|
|
|
|
$this->ajaxReturn(['code'=>0,'msg'=>'success']);
|
|
|
|
|
$this->ajaxReturn(['code'=>0,'success'=>'ok']);
|
|
|
|
|
} else {
|
|
|
|
|
$this->ajaxReturn(['code'=>2000,'msg'=>'error']);
|
|
|
|
|
$this->ajaxReturn(['code'=>2000,'error'=>'no']);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|