|
|
@@ -1947,4 +1947,29 @@ class Facility extends Api
|
|
|
$this->error('修改失败');
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 产量上报数据删除
|
|
|
+ * @return void
|
|
|
+ * @throws \think\Exception
|
|
|
+ * @throws \think\exception\PDOException
|
|
|
+ */
|
|
|
+ public function ChanliangDel()
|
|
|
+ {
|
|
|
+ if ($this->request->isGet() === false){
|
|
|
+ $this->error('请求错误');
|
|
|
+ }
|
|
|
+ $param = $this->request->param();
|
|
|
+ if (empty($param['UniqId'])){
|
|
|
+ $this->error('参数错误');
|
|
|
+ }
|
|
|
+ $res = \db('设备_产量计酬')
|
|
|
+ ->where('UniqId',$param['UniqId'])
|
|
|
+ ->delete();
|
|
|
+ if ($res !== false){
|
|
|
+ $this->success('删除成功');
|
|
|
+ }else{
|
|
|
+ $this->error('删除失败');
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|