市场结算列表删除操作

master
zhengyongxing 5 years ago
parent 6bda9fe842
commit 45ea27fd1f

@ -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