|
@@ -201,4 +201,30 @@ class Note extends Base
|
|
|
$del=$info->save();
|
|
|
return $del ? success("删除成功") :error("删除失败");
|
|
|
}
|
|
|
+
|
|
|
+ public function wxpushList(){
|
|
|
+ $param = $this->request->param(["start"=>"","end"=>"","bugNo"=>"","push_id"=>"","template_name"=>"","status"=>"",
|
|
|
+ "page"=>1,"size"=>10],'post','trim');
|
|
|
+ $where=[];
|
|
|
+ if($param['start']!==""){
|
|
|
+ $where[]=['createTime',">",startTime($param['start'])];
|
|
|
+ }
|
|
|
+ if($param['end']!==""){
|
|
|
+ $where[]=['createTime',"<",endTime($param['end'])];
|
|
|
+ }
|
|
|
+ if($param['bugNo']!==""){
|
|
|
+ $where[]=['bugNo',"like","%{$param['bugNo']}%"];
|
|
|
+ }
|
|
|
+ if($param['push_id']!==""){
|
|
|
+ $where[]=['push_id',"=",$param['push_id']];
|
|
|
+ }
|
|
|
+ if($param['template_name']!==""){
|
|
|
+ $where[]=['template_name',"like","%{$param['template_name']}%"];
|
|
|
+ }
|
|
|
+ if($param['status']!==""){
|
|
|
+ $where[]=['status',"=",$param['status']];
|
|
|
+ }
|
|
|
+ $list = \app\bug\model\WechatPush::where($where)->order("createTime desc")->paginate(["list_rows"=>$param['size'],"page"=>$param['page']]);
|
|
|
+ return success("获取成功",['list'=>$list->items(),'count'=>$list->total()]);
|
|
|
+ }
|
|
|
}
|