فهرست منبع

印版领用记录删除

unknown 9 ماه پیش
والد
کامیت
f419d79d47
1فایلهای تغییر یافته به همراه30 افزوده شده و 0 حذف شده
  1. 30 0
      application/api/controller/PrintingPlate.php

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

@@ -369,4 +369,34 @@ class PrintingPlate extends Api
             $this->success('成功', $list);
         }
     }
+
+
+    /**
+     * 印版领用记录删除
+     * @return void
+     * @throws \think\Exception
+     * @throws \think\exception\PDOException
+     */
+    public function PrintReceiveDelete()
+    {
+        if ($this->request->isGet() === false) {
+            $this->error('请求错误');
+        }
+        $param = $this->request->param();
+        if (empty($param) || !isset($param['id'])) {
+            $this->error('参数错误');
+        }
+        $id = explode(',', $param['id']);
+        if (empty($id)) {
+            $this->error('请先选中要删除数据');
+        }
+        $res = db('工单_印版领用记录')
+            ->where('UniqID','in',$id)
+            ->delete();
+        if ($res === false){
+            $this->error('删除失败');
+        }else{
+            $this->success('删除成功');
+        }
+    }
 }