wugg 2 years ago
parent
commit
1fd6274021
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/admin/model/GoodStockInfo.php

+ 1 - 1
app/admin/model/GoodStockInfo.php

@@ -152,7 +152,7 @@ class GoodStockInfo extends Model
 	* @throws \think\Exception
  */
 	static function bnStock(int $stockid,string $bnCode,int $num,int $flag=0,float $origin_price=0){
-			$stock =self::where(["stockid"=>$stockid,"bnCode"=>$bnCode])->lock(true)->findOrEmpty()->toArray();
+			$stock =self::where(["stockid"=>$stockid,"bnCode"=>$bnCode])->findOrEmpty()->toArray();
 			if($flag==1) {
 				if(empty($stock)|| $stock['balance_num']< $num)
 					throw new Exception("bn库存数不足",1006);