ソースを参照

印件、工艺删除

qiuenguang 1 年間 前
コミット
754c66e9da
1 ファイル変更48 行追加0 行削除
  1. 48 0
      application/api/controller/WorkOrder.php

+ 48 - 0
application/api/controller/WorkOrder.php

@@ -1562,5 +1562,53 @@ class WorkOrder extends Api
         $this->success('成功',$list);
     }
 
+    /**
+     * 工单资料管理->印件资料删除
+     * @return void
+     * @throws \think\Exception
+     * @throws \think\exception\PDOException
+     */
+    public function PrintDetailDel()
+    {
+        if ($this->request->isGet() === false){
+            $this->error('请求错误');
+        }
+        $param = $this->request->param();
+        if (isset($param['UniqId']) === false){
+            $this->error('参数错误');
+        }
+        $res = \db('工单_印件资料')
+            ->where('Uniqid',$param['UniqId'])
+            ->delete();
+        if ($res !== false){
+            $this->success('删除成功');
+        }else{
+            $this->error('删除失败');
+        }
+    }
 
+    /**
+     * 工单资料管理->工艺资料删除
+     * @return void
+     * @throws \think\Exception
+     * @throws \think\exception\PDOException
+     */
+    public function ProcessDetailDel()
+    {
+        if ($this->request->isGet() === false){
+            $this->error('请求错误');
+        }
+        $param = $this->request->param();
+        if (isset($param['UniqId']) === false){
+            $this->error('参数错误');
+        }
+        $res = \db('工单_工艺资料')
+            ->where('UniqId',$param['UniqId'])
+            ->delete();
+        if ($res !== false){
+            $this->success('删除成功');
+        }else{
+            $this->error('删除失败');
+        }
+    }
 }