Browse Source

工单删除

qiuenguang 1 year ago
parent
commit
6ce965b1be
1 changed files with 1 additions and 1 deletions
  1. 1 1
      application/api/controller/WorkOrder.php

+ 1 - 1
application/api/controller/WorkOrder.php

@@ -2412,7 +2412,7 @@ class WorkOrder extends Api
             //删除工单资料、工艺资料、印件资料
             \db()->startTrans();
             try {
-                \db('工单_基本资料')->where('Uniqid',$value)->delete();
+                \db('工单_基本资料')->where('Gd_gdbh',$workorder)->delete();
                 if (!empty(\db('工单_工艺资料')->where('Gy0_gdbh',$workorder)->find())){
                     \db('工单_工艺资料')->where('Gy0_gdbh',$workorder)->delete();
                 }