unknown 8 ヶ月 前
コミット
877e465bf2
1 ファイル変更27 行追加0 行削除
  1. 27 0
      application/api/controller/PrintingPlate.php

+ 27 - 0
application/api/controller/PrintingPlate.php

@@ -503,4 +503,31 @@ class PrintingPlate extends Api
         ];
 //        $list = db('<UNK>_<UNK>')
     }
+
+
+    /**
+     * 印版删除
+     * @return void
+     * @throws \think\Exception
+     * @throws \think\exception\PDOException
+     */
+    public function PrintDetaiDel()
+    {
+        if ($this->request->isGet() === false) {
+            $this->error('请求错误');
+        }
+        $param = $this->request->param();
+        if (empty($param) || !isset($param['UniqID'])) {
+            $this->error('参数错误');
+        }
+        $id = explode(',', $param['UniqID']);
+        $res = db('产品_印版库')
+            ->where('UniqID','in',$id)
+            ->delete();
+        if ($res === false){
+            $this->error('删除失败');
+        }else{
+            $this->success('删除成功');
+        }
+    }
 }