|
@@ -84,7 +84,14 @@ class Sale extends BaseController{
|
|
|
if($qrdsource!='') $condition []=["qrdSource","=",$qrdsource];
|
|
|
$sendstatus= isset($post['sendstatus']) && $post['sendstatus']!='' ? intval($post['sendstatus']) :"";
|
|
|
if($sendstatus!='') $condition []=["sendStatus","=",$sendstatus];
|
|
|
+ $tag_id= isset($post['tag_id'])&&$post['tag_id']!=="" ? intval($post['tag_id']) :"";
|
|
|
+ $tag_name= isset($post['tag_name'])&&$post['tag_name']!="" ? trim($post['tag_name']) :"";
|
|
|
+ if($tag_id!==''){
|
|
|
+ if($tag_id==5){$condition[]=["tag_id","<>",0];
|
|
|
+ }else{ $condition[]=["tag_id","=",$tag_id];}
|
|
|
|
|
|
+ }
|
|
|
+ if($tag_name!='')$condition[]=["tag_name","like","%$tag_name%"];
|
|
|
$count =Db::name("qrd_info")->where($condition)->count();
|
|
|
$total = ceil($count/$size);
|
|
|
$page = $page>$total ? intval($total) : $page;
|