wugg 2 years ago
parent
commit
8b548c1314
1 changed files with 3 additions and 2 deletions
  1. 3 2
      app/admin/controller/Resign.php

+ 3 - 2
app/admin/controller/Resign.php

@@ -130,9 +130,10 @@ class Resign extends Base
         }
         $supplier=Db::name("supplier")->where("code","=",$good['supplierNo'])->find();
         if($supplier==false)  return error_show(1004,"未找到供应商数据");
-        $bk= Db::name("purchease")->where(["spuCode","=",$good_code],["status","<>",2],["is_del","=",0])->find();
+        $bk= Db::name("purchease")->where([["spuCode","=",$good_code],["status","<>",2],["is_del","=",0]])->find();
         if($bk!=false) return error_show(1004,"存在未完成备库单数据");
-        $cgd =Db::name("purchease_order")->where(["spuCode","=",$good_code],["status","in",[0,1]],["is_del","=",0])->find();
+        $cgd =Db::name("purchease_order")->where([["spuCode","=",$good_code],["status","in",[0,1]],["is_del","=",0]])
+        ->find();
         if($cgd!=false) return error_show(1004,"存在未完成采购单数据");
         //查验仓库库存数量
         $stock =Db::name("good_stock")->alias("a")->leftJoin("warehouse_info b","a.wsm_code=b.wsm_code")->where