Bläddra i källkod

工单核检单删除

qiuenguang 1 år sedan
förälder
incheckning
cdf1f1780c
1 ändrade filer med 25 tillägg och 0 borttagningar
  1. 25 0
      application/api/controller/WorkOrderVerification.php

+ 25 - 0
application/api/controller/WorkOrderVerification.php

@@ -938,4 +938,29 @@ class WorkOrderVerification extends Api
         $summedData = array_values($summedData);
         $this->success('请求成功',$summedData);
     }
+
+    /**
+     * 工单核检单删除
+     * @return void
+     * @throws \think\Exception
+     * @throws \think\exception\PDOException
+     */
+    public function del()
+    {
+        if ($this->request->isGet() === false){
+            $this->error('请求错误');
+        }
+        $param = $this->request->param();
+        if (empty($param['UniqId'])){
+            $this->error('参数错误');
+        }
+        $res = \db('db_qczl')
+            ->where('UniqId',$param['UniqId'])
+            ->delete();
+        if ($res !== false){
+            $this->success('删除成功');
+        }else{
+            $this->error('产出失败');
+        }
+    }
 }