...
|
...
|
@@ -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")
|
...
|
...
|
|