正在显示
2 个修改的文件
包含
21 行增加
和
13 行删除
@@ -815,6 +815,7 @@ class Company extends Api | @@ -815,6 +815,7 @@ class Company extends Api | ||
815 | "data": [{ | 815 | "data": [{ |
816 | "id": 4, //投递ID | 816 | "id": 4, //投递ID |
817 | "is_view": "0", //是否已被查看:0=否,1=是 | 817 | "is_view": "0", //是否已被查看:0=否,1=是 |
818 | + "createtime": "2020.10.11 20:31", //投递时间 | ||
818 | "user": { //投递者信息 | 819 | "user": { //投递者信息 |
819 | "id": 15, //用户ID | 820 | "id": 15, //用户ID |
820 | "nickname": "", //真实姓名 | 821 | "nickname": "", //真实姓名 |
@@ -836,7 +837,9 @@ class Company extends Api | @@ -836,7 +837,9 @@ class Company extends Api | ||
836 | ->order('createtime desc') | 837 | ->order('createtime desc') |
837 | ->paginate($page_num,false,['page'=>$page]) | 838 | ->paginate($page_num,false,['page'=>$page]) |
838 | ->each(function($v){ | 839 | ->each(function($v){ |
839 | - $v->visible(['id','is_view','user']); | 840 | + // 投递时间 |
841 | + $v->createtime = date('Y.m.d H:i',$v->createtime); | ||
842 | + $v->visible(['id','is_view','createtime','user']); | ||
840 | $v->getRelation('user')->visible(['id','image','nickname']); | 843 | $v->getRelation('user')->visible(['id','image','nickname']); |
841 | })->toArray(); | 844 | })->toArray(); |
842 | $this->success('成功', $data); | 845 | $this->success('成功', $data); |
@@ -955,15 +958,19 @@ class Company extends Api | @@ -955,15 +958,19 @@ class Company extends Api | ||
955 | $page = $this->request->param('page', 1, 'intval'); | 958 | $page = $this->request->param('page', 1, 'intval'); |
956 | $page_num = $this->request->param('page_num', 10, 'intval'); | 959 | $page_num = $this->request->param('page_num', 10, 'intval'); |
957 | $type = $this->request->param('type'); | 960 | $type = $this->request->param('type'); |
958 | - $where['status'] = '1'; | 961 | + $where = [ |
962 | + 'ujd.status' => '0', | ||
963 | + 'ujd.company_id' => $this->company_id, | ||
964 | + ]; | ||
959 | // 求职类型 | 965 | // 求职类型 |
960 | if(!empty($type)){ | 966 | if(!empty($type)){ |
961 | - $where['type'] = $type; | 967 | + $where['uj.type'] = $type; |
962 | } | 968 | } |
963 | - $data = UserJobDownload::with(['user_job'=>['user']]) | ||
964 | - ->where('status','0') | ||
965 | - ->where('company_id',$this->company_id) | ||
966 | - ->order('createtime desc') | 969 | + $data = UserJobDownload::alias('ujd') |
970 | + ->join('mobile_user_job uj','uj.id = ujd.user_job_id') | ||
971 | + ->with(['user_job'=>['user']]) | ||
972 | + ->where($where) | ||
973 | + ->order('ujd.createtime desc') | ||
967 | ->paginate($page_num,false,['page'=>$page]) | 974 | ->paginate($page_num,false,['page'=>$page]) |
968 | ->each(function($v){ | 975 | ->each(function($v){ |
969 | $v->createtime = date('Y.m.d H:i',$v->createtime); | 976 | $v->createtime = date('Y.m.d H:i',$v->createtime); |
@@ -1007,8 +1014,8 @@ class Company extends Api | @@ -1007,8 +1014,8 @@ class Company extends Api | ||
1007 | 1014 | ||
1008 | /** | 1015 | /** |
1009 | * @ApiWeigh (65) | 1016 | * @ApiWeigh (65) |
1010 | - * @ApiTitle (我的招聘-我发布的-不合适) | ||
1011 | - * @ApiSummary (我的招聘-我发布的-不合适) | 1017 | + * @ApiTitle (我的招聘-我下载的-不合适) |
1018 | + * @ApiSummary (我的招聘-我下载的-不合适) | ||
1012 | * @ApiMethod (POST) | 1019 | * @ApiMethod (POST) |
1013 | * | 1020 | * |
1014 | * @ApiHeaders (name=token, type=string, required=true, description="请求的Token") | 1021 | * @ApiHeaders (name=token, type=string, required=true, description="请求的Token") |
@@ -309,7 +309,7 @@ | @@ -309,7 +309,7 @@ | ||
309 | <a href="javascript:;" data-id="29" class="list-group-item">我的招聘-我发布的-查看简历-不合适</a> | 309 | <a href="javascript:;" data-id="29" class="list-group-item">我的招聘-我发布的-查看简历-不合适</a> |
310 | <a href="javascript:;" data-id="30" class="list-group-item">我的招聘-我下载的</a> | 310 | <a href="javascript:;" data-id="30" class="list-group-item">我的招聘-我下载的</a> |
311 | <a href="javascript:;" data-id="31" class="list-group-item">我的招聘-我下载的-查看简历</a> | 311 | <a href="javascript:;" data-id="31" class="list-group-item">我的招聘-我下载的-查看简历</a> |
312 | - <a href="javascript:;" data-id="32" class="list-group-item">我的招聘-我发布的-不合适</a> | 312 | + <a href="javascript:;" data-id="32" class="list-group-item">我的招聘-我下载的-不合适</a> |
313 | <a href="javascript:;" data-id="21" class="list-group-item">套餐说明</a> | 313 | <a href="javascript:;" data-id="21" class="list-group-item">套餐说明</a> |
314 | </div> | 314 | </div> |
315 | <a href="#异步接口" class="list-group-item" data-toggle="collapse" data-parent="#sidebar">异步接口 <i class="fa fa-caret-down"></i></a> | 315 | <a href="#异步接口" class="list-group-item" data-toggle="collapse" data-parent="#sidebar">异步接口 <i class="fa fa-caret-down"></i></a> |
@@ -19237,6 +19237,7 @@ | @@ -19237,6 +19237,7 @@ | ||
19237 | "data": [{ | 19237 | "data": [{ |
19238 | "id": 4, //投递ID | 19238 | "id": 4, //投递ID |
19239 | "is_view": "0", //是否已被查看:0=否,1=是 | 19239 | "is_view": "0", //是否已被查看:0=否,1=是 |
19240 | + "createtime": "2020.10.11 20:31", //投递时间 | ||
19240 | "user": { //投递者信息 | 19241 | "user": { //投递者信息 |
19241 | "id": 15, //用户ID | 19242 | "id": 15, //用户ID |
19242 | "nickname": "", //真实姓名 | 19243 | "nickname": "", //真实姓名 |
@@ -19891,7 +19892,7 @@ | @@ -19891,7 +19892,7 @@ | ||
19891 | <div class="panel-heading" id="heading-32"> | 19892 | <div class="panel-heading" id="heading-32"> |
19892 | <h4 class="panel-title"> | 19893 | <h4 class="panel-title"> |
19893 | <span class="label label-primary">POST</span> | 19894 | <span class="label label-primary">POST</span> |
19894 | - <a data-toggle="collapse" data-parent="#accordion32" href="#collapseOne32"> 我的招聘-我发布的-不合适 <span class="text-muted">/mobile/company/userJobResumeViewReject</span></a> | 19895 | + <a data-toggle="collapse" data-parent="#accordion32" href="#collapseOne32"> 我的招聘-我下载的-不合适 <span class="text-muted">/mobile/company/userJobResumeViewReject</span></a> |
19895 | </h4> | 19896 | </h4> |
19896 | </div> | 19897 | </div> |
19897 | <div id="collapseOne32" class="panel-collapse collapse"> | 19898 | <div id="collapseOne32" class="panel-collapse collapse"> |
@@ -19909,7 +19910,7 @@ | @@ -19909,7 +19910,7 @@ | ||
19909 | 19910 | ||
19910 | <div class="tab-pane active" id="info32"> | 19911 | <div class="tab-pane active" id="info32"> |
19911 | <div class="well"> | 19912 | <div class="well"> |
19912 | - 我的招聘-我发布的-不合适 </div> | 19913 | + 我的招聘-我下载的-不合适 </div> |
19913 | <div class="panel panel-default"> | 19914 | <div class="panel panel-default"> |
19914 | <div class="panel-heading"><strong>Headers</strong></div> | 19915 | <div class="panel-heading"><strong>Headers</strong></div> |
19915 | <div class="panel-body"> | 19916 | <div class="panel-body"> |
@@ -20263,7 +20264,7 @@ | @@ -20263,7 +20264,7 @@ | ||
20263 | 20264 | ||
20264 | <div class="row mt0 footer"> | 20265 | <div class="row mt0 footer"> |
20265 | <div class="col-md-6" align="left"> | 20266 | <div class="col-md-6" align="left"> |
20266 | - Generated on 2020-10-16 17:13:04 </div> | 20267 | + Generated on 2020-10-16 18:00:08 </div> |
20267 | <div class="col-md-6" align="right"> | 20268 | <div class="col-md-6" align="right"> |
20268 | <a href="./" target="_blank">企智帮</a> | 20269 | <a href="./" target="_blank">企智帮</a> |
20269 | </div> | 20270 | </div> |
-
请 注册 或 登录 后发表评论