$where=" and (`title` like '%".$searchValue."%' or `code` like '%".$searchValue."%') ";
}
$model=newModel();
//======================
$fields="count(id) count";
//返回列表(limit分页)
if($queryType=="list"){
$where.=$sort;
$fields=" *,case `_status` when 1 then '<font color=green>上线</font>' when 2 then '<font color=red>下线</font>' when 0 then '<font>未知</font>' end as `status` ";
}
$sql="select ".$fields." from sh_media_wasu where 1=1 ".$where.";";