|
@@ -146,6 +146,11 @@ class Sale extends Base{
|
|
}
|
|
}
|
|
$cat_status= isset($post['cat_status'])&&$post['cat_status']!=="" ? intval($post['cat_status']) :"";
|
|
$cat_status= isset($post['cat_status'])&&$post['cat_status']!=="" ? intval($post['cat_status']) :"";
|
|
if($cat_status!=='') $condition[]=["b.status","=",$cat_status];
|
|
if($cat_status!=='') $condition[]=["b.status","=",$cat_status];
|
|
|
|
+
|
|
|
|
+ $goodNo= isset($post['goodNo'])&&$post['goodNo']!=="" ? trim($post['goodNo']) :"";
|
|
|
|
+ if($goodNo!=='') $condition[]=["a.goodNo","like","%$goodNo%"];
|
|
|
|
+ $goodName= isset($post['goodName'])&&$post['goodName']!=="" ? trim($post['goodName']) :"";
|
|
|
|
+ if($goodName!=='') $condition[]=["a.goodName","like","%$goodName%"];
|
|
$count =Db::name("qrd_info")
|
|
$count =Db::name("qrd_info")
|
|
->alias("a")
|
|
->alias("a")
|
|
->leftJoin("good b","a.goodNo=b.spuCode")->where($condition)->count();
|
|
->leftJoin("good b","a.goodNo=b.spuCode")->where($condition)->count();
|