|
|
@@ -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('删除成功');
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|