|
@@ -201,7 +201,7 @@ class Allot extends BaseController
|
|
|
->join("good_stock c", "c.spuCode = b.spuCode", "left")
|
|
|
->join("warehouse_info v","v.wsm_code=c.wsm_code","left")
|
|
|
->join("supplier n","n.code=v.supplierNo","left")
|
|
|
- ->where(['c.wsm_code' => $wsm_out,"v.wsm_type"=>1, 'b.spuCode' => $value['good_code'], 'b.is_del' => 0, 'a.is_del' => 0])->where("c.is_del=0 or c.is_del is null")
|
|
|
+ ->where(['c.wsm_code' => $wsm_out,"v.wsm_type"=>1, 'b.spuCode' => $value['spuCode'], 'b.is_del' => 0, 'a.is_del' => 0])->where("c.is_del=0 or c.is_del is null")
|
|
|
->field("b.spuCode,b.good_name,b.unit,c.wsm_code,c.usable_stock,c.good_type_code,c.wait_out_stock,c.wait_in_stock,n.name")->find();
|
|
|
if (empty($st)) {
|
|
|
Db::rollback();
|