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