Merge branch 'feature/group_type' of 47.111.118.107:wmtx/platform into feature/group_type

master
chenzhi 5 years ago
commit 89d21c6218

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

Loading…
Cancel
Save