作者 何书鹏
1 个管道 的构建 通过 耗费 1 秒

bug修改

... ... @@ -815,6 +815,7 @@ class Company extends Api
"data": [{
"id": 4, //投递ID
"is_view": "0", //是否已被查看:0=否,1=是
"createtime": "2020.10.11 20:31", //投递时间
"user": { //投递者信息
"id": 15, //用户ID
"nickname": "", //真实姓名
... ... @@ -836,7 +837,9 @@ class Company extends Api
->order('createtime desc')
->paginate($page_num,false,['page'=>$page])
->each(function($v){
$v->visible(['id','is_view','user']);
// 投递时间
$v->createtime = date('Y.m.d H:i',$v->createtime);
$v->visible(['id','is_view','createtime','user']);
$v->getRelation('user')->visible(['id','image','nickname']);
})->toArray();
$this->success('成功', $data);
... ... @@ -955,15 +958,19 @@ class Company extends Api
$page = $this->request->param('page', 1, 'intval');
$page_num = $this->request->param('page_num', 10, 'intval');
$type = $this->request->param('type');
$where['status'] = '1';
$where = [
'ujd.status' => '0',
'ujd.company_id' => $this->company_id,
];
// 求职类型
if(!empty($type)){
$where['type'] = $type;
$where['uj.type'] = $type;
}
$data = UserJobDownload::with(['user_job'=>['user']])
->where('status','0')
->where('company_id',$this->company_id)
->order('createtime desc')
$data = UserJobDownload::alias('ujd')
->join('mobile_user_job uj','uj.id = ujd.user_job_id')
->with(['user_job'=>['user']])
->where($where)
->order('ujd.createtime desc')
->paginate($page_num,false,['page'=>$page])
->each(function($v){
$v->createtime = date('Y.m.d H:i',$v->createtime);
... ... @@ -1007,8 +1014,8 @@ class Company extends Api
/**
* @ApiWeigh (65)
* @ApiTitle (我的招聘-我发布的-不合适)
* @ApiSummary (我的招聘-我发布的-不合适)
* @ApiTitle (我的招聘-我下载的-不合适)
* @ApiSummary (我的招聘-我下载的-不合适)
* @ApiMethod (POST)
*
* @ApiHeaders (name=token, type=string, required=true, description="请求的Token")
... ...
... ... @@ -309,7 +309,7 @@
<a href="javascript:;" data-id="29" class="list-group-item">我的招聘-我发布的-查看简历-不合适</a>
<a href="javascript:;" data-id="30" class="list-group-item">我的招聘-我下载的</a>
<a href="javascript:;" data-id="31" class="list-group-item">我的招聘-我下载的-查看简历</a>
<a href="javascript:;" data-id="32" class="list-group-item">我的招聘-我发布的-不合适</a>
<a href="javascript:;" data-id="32" class="list-group-item">我的招聘-我下载的-不合适</a>
<a href="javascript:;" data-id="21" class="list-group-item">套餐说明</a>
</div>
<a href="#异步接口" class="list-group-item" data-toggle="collapse" data-parent="#sidebar">异步接口 <i class="fa fa-caret-down"></i></a>
... ... @@ -19237,6 +19237,7 @@
"data": [{
"id": 4, //投递ID
"is_view": "0", //是否已被查看:0=否,1=是
"createtime": "2020.10.11 20:31", //投递时间
"user": { //投递者信息
"id": 15, //用户ID
"nickname": "", //真实姓名
... ... @@ -19891,7 +19892,7 @@
<div class="panel-heading" id="heading-32">
<h4 class="panel-title">
<span class="label label-primary">POST</span>
<a data-toggle="collapse" data-parent="#accordion32" href="#collapseOne32"> 我的招聘-我发布的-不合适 <span class="text-muted">/mobile/company/userJobResumeViewReject</span></a>
<a data-toggle="collapse" data-parent="#accordion32" href="#collapseOne32"> 我的招聘-我下载的-不合适 <span class="text-muted">/mobile/company/userJobResumeViewReject</span></a>
</h4>
</div>
<div id="collapseOne32" class="panel-collapse collapse">
... ... @@ -19909,7 +19910,7 @@
<div class="tab-pane active" id="info32">
<div class="well">
我的招聘-我发布的-不合适 </div>
我的招聘-我下载的-不合适 </div>
<div class="panel panel-default">
<div class="panel-heading"><strong>Headers</strong></div>
<div class="panel-body">
... ... @@ -20263,7 +20264,7 @@
<div class="row mt0 footer">
<div class="col-md-6" align="left">
Generated on 2020-10-16 17:13:04 </div>
Generated on 2020-10-16 18:00:08 </div>
<div class="col-md-6" align="right">
<a href="./" target="_blank">企智帮</a>
</div>
... ...