|
@@ -159,6 +159,7 @@ class Expedite extends Base
|
|
|
* @return name:video_list.duration type:int default:-- desc:时长(单位:秒)
|
|
|
* @return name:video_list.app_name type:string default:-- desc:平台名称
|
|
|
* @return name:video_list.app_logo type:string default:-- desc:平台头像
|
|
|
+ * @return name:video_list.create_at type:string default:-- desc:时间
|
|
|
|
|
|
* @return name:article_list type:array default:-- desc:图文列表【单个】
|
|
|
* @return name:article_list.title type:string default:-- desc:图文标题
|
|
@@ -170,6 +171,7 @@ class Expedite extends Base
|
|
|
* @return name:article_list.read_num type:int default:-- desc:阅读量
|
|
|
* @return name:article_list.app_name type:string default:-- desc:平台名称
|
|
|
* @return name:article_list.app_logo type:string default:-- desc:平台头像
|
|
|
+ * @return name:article_list.create_at type:string default:-- desc:时间
|
|
|
*
|
|
|
* @return name:datum_list type:array default:-- desc:资料列表【单个】
|
|
|
* @return name:datum_list.id type:int default:-- desc:资料的url_id
|
|
@@ -301,7 +303,7 @@ class Expedite extends Base
|
|
|
|
|
|
|
|
|
// 图文
|
|
|
- $article_list = ArticleItem::field('a.id item_id,a.user_id,a.article_id,a.cover,a.title,a.is_vip,a.images,a.read_num,a.desc')->alias('a')
|
|
|
+ $article_list = ArticleItem::field('a.id item_id,a.user_id,a.create_at,a.article_id,a.cover,a.title,a.is_vip,a.images,a.read_num,a.desc')->alias('a')
|
|
|
->when($search_name,function ($query)use ($search_name,$search_time){
|
|
|
if($search_name) $query->where('a.title|a.label','like','%'.$search_name.'%');
|
|
|
if($search_time) $query->where('a.create_at','> time',date('Y-m-d H:i:s',strtotime('-'.$search_time.' days')));
|
|
@@ -320,7 +322,7 @@ class Expedite extends Base
|
|
|
->where('a.status',1)->where('a.is_deleted',0)->where('b.status',1)->where('b.is_deleted',0)->count();
|
|
|
|
|
|
// 资料
|
|
|
- $datum_list = DatumUrl::field('a.id,a.url,a.datum_id,a.title,a.is_vip')->alias('a')
|
|
|
+ $datum_list = DatumUrl::field('a.id,a.url,a.datum_id,a.title,a.is_vip,a.create_at')->alias('a')
|
|
|
->when($search_name,function ($query)use ($search_name,$search_time){
|
|
|
if($search_name) $query->where('a.title|a.label','like','%'.$search_name.'%');
|
|
|
if($search_time) $query->where('a.create_at','> time',date('Y-m-d H:i:s',strtotime('-'.$search_time.' days')));
|
|
@@ -388,7 +390,7 @@ class Expedite extends Base
|
|
|
if($search_time) $query->where('create_at','> time',date('Y-m-d H:i:s',strtotime('-'.$search_time.' days')));
|
|
|
})->where('is_deleted',0)->where('status',1) ->where('release_time','< time',date('Y-m-d H:i:s'))->count();
|
|
|
// 供应商
|
|
|
- $supplier_goods_list =SupplierGoods::field('a.id,a.supplier_id,a.name,a.read_num,a.label,a.cover,s.title supplier_name')
|
|
|
+ $supplier_goods_list =SupplierGoods::field('a.id,a.supplier_id,a.name,a.read_num,a.label,a.cover,s.title supplier_name,a.create_at')
|
|
|
->alias('a')->when($search_name,function ($query)use($search_name,$search_time){
|
|
|
if($search_name) $query->where('a.name','like','%'.$search_name.'%');
|
|
|
if($search_time) $query->where('a.create_at','> time',date('Y-m-d H:i:s',strtotime('-'.$search_time.' days')));
|
|
@@ -404,7 +406,7 @@ class Expedite extends Base
|
|
|
})->alias('g')->leftJoin('Supplier s','g.supplier_id = s.id')->where('g.status','=',1) ->where('g.release_time','< time',date('Y-m-d H:i:s'))
|
|
|
->where('g.is_deleted','=',0)->where('s.status','=',1)->where('s.is_deleted','=',0)->count();
|
|
|
// 需求
|
|
|
- $demand_list = PlatformDemand::field('id,cover,money,user_id,label,title,cover,is_over,content,company,company_logo')->alias('a')
|
|
|
+ $demand_list = PlatformDemand::field('id,cover,money,user_id,label,title,cover,is_over,content,company,company_logo,a.create_at')->alias('a')
|
|
|
->when($search_name,function ($query)use ($search_name,$search_time){
|
|
|
if($search_name) $query->where('title|label','like','%'.$search_name.'%');
|
|
|
if($search_time) $query->where('create_at','> time',date('Y-m-d H:i:s',strtotime('-'.$search_time.' days')));
|
|
@@ -441,7 +443,7 @@ class Expedite extends Base
|
|
|
->where('a.status',1) ->where('release_time','< time',date('Y-m-d H:i:s'))
|
|
|
->where('a.is_deleted',0)->count();
|
|
|
// 活动
|
|
|
- $activity_list = \app\common\model\Activity::field('id,cover,title,address,label,start_time,end_time,ladder,price')->alias('a')
|
|
|
+ $activity_list = \app\common\model\Activity::field('id,cover,title,address,label,start_time,end_time,ladder,price,a.create_at')->alias('a')
|
|
|
->when($search_name,function ($query)use ($search_name,$search_time){
|
|
|
if($search_name) $query->where('title|label','like','%'.$search_name.'%');
|
|
|
if($search_time) $query->where('create_at','> time',date('Y-m-d H:i:s',strtotime('-'.$search_time.' days')));
|