Commit 19ce92a9 authored by hangjun83's avatar hangjun83

优化

parent 49b3c785
......@@ -27,7 +27,7 @@ class BhuaProductRepositoryEloquent extends BaseRepository implements BhuaProduc
{
$productsModel = BhuaProducts::query();
if(!is_array($pCode)){
$productsModel->where('products.p_code',$pCode);
$productsModel->where('products.p_code','=',$pCode);
}else{
$productsModel->whereIn('products.p_code',$pCode);
}
......@@ -42,7 +42,7 @@ class BhuaProductRepositoryEloquent extends BaseRepository implements BhuaProduc
{
$productsModel = BhuaProducts::query();
if(!is_array($pCode)){
$productsModel->where('products.p_code',$pCode);
$productsModel->where('products.p_code','=',$pCode);
}else{
$productsModel->whereIn('products.p_code',$pCode);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment