|
@@ -43,21 +43,21 @@ class resumelogic extends baselogic
|
|
|
['name' => 'inventid', 'title' => 'inventid', 'require' => true, 'type' => 'numeric'],
|
|
|
['name' => 'partyid', 'title' => 'partyid', 'type' => 'numeric'],
|
|
|
],
|
|
|
- 'getsendedresumebywhere'=>[
|
|
|
- ['name' => 'openid', 'title' => 'companyid', 'require' => true, 'type' => 'string'],
|
|
|
+ 'getsendedresumebywhere' => [
|
|
|
+ ['name' => 'openid', 'title' => 'openid', 'require' => true, 'type' => 'string'],
|
|
|
['name' => 'status', 'title' => 'status', 'type' => 'numeric', 'regex' => '/[0|1|2]{1}/'],
|
|
|
['name' => 'page', 'title' => 'page', 'type' => 'numeric'],
|
|
|
['name' => 'size', 'title' => 'size', 'type' => 'numeric'],
|
|
|
],
|
|
|
- 'getinfobyid'=>[
|
|
|
+ 'getinfobyid' => [
|
|
|
['name' => 'id', 'title' => 'id', 'require' => true, 'type' => 'numeric'],
|
|
|
],
|
|
|
- 'getinfobyuserid'=>[
|
|
|
+ 'getinfobyuserid' => [
|
|
|
['name' => 'userid', 'title' => 'userid', 'require' => true, 'type' => 'numeric'],
|
|
|
],
|
|
|
- 'getallinfobyid'=>[
|
|
|
+ 'getallinfobyid' => [
|
|
|
['name' => 'id', 'title' => 'id', 'require' => true, 'type' => 'numeric'],
|
|
|
- ]
|
|
|
+ ],
|
|
|
];
|
|
|
return $list;
|
|
|
}
|
|
@@ -221,7 +221,8 @@ class resumelogic extends baselogic
|
|
|
* 20220119
|
|
|
* wj
|
|
|
*/
|
|
|
- public function getallinfobyid($arr){
|
|
|
+ public function getallinfobyid($arr)
|
|
|
+ {
|
|
|
$result = $this->checkparam(__FUNCTION__, $arr);
|
|
|
if (1 != $result['status']) {
|
|
|
return $result;
|
|
@@ -299,7 +300,7 @@ class resumelogic extends baselogic
|
|
|
$inventid = $arr['inventid'];
|
|
|
$m_i = new inventmodel();
|
|
|
$iinfo = $m_i->getinfobyid($inventid);
|
|
|
- if(empty($iinfo)){
|
|
|
+ if (empty($iinfo)) {
|
|
|
return backarr(0, "岗位不存在");
|
|
|
}
|
|
|
$m_r = new resumemodel();
|
|
@@ -308,7 +309,7 @@ class resumelogic extends baselogic
|
|
|
if (empty($rinfo)) {
|
|
|
return backarr(0, "简历不存在");
|
|
|
}
|
|
|
- if(isset($arr['partyid'])){
|
|
|
+ if (isset($arr['partyid'])) {
|
|
|
$partyid = $arr['partyid'];
|
|
|
$m_p = new partymodel();
|
|
|
$pinfo = $m_p->getinfobyid($partyid);
|
|
@@ -336,7 +337,8 @@ class resumelogic extends baselogic
|
|
|
*
|
|
|
* @return void
|
|
|
*/
|
|
|
- public function getsendedresumebywhere($arr){
|
|
|
+ public function getsendedresumebywhere($arr)
|
|
|
+ {
|
|
|
$result = $this->checkparam(__FUNCTION__, $arr);
|
|
|
if (1 != $result['status']) {
|
|
|
return $result;
|
|
@@ -348,18 +350,18 @@ class resumelogic extends baselogic
|
|
|
return backarr(0, "用户信息不存在");
|
|
|
}
|
|
|
$where = [];
|
|
|
- if(isset($arr['status'])){
|
|
|
+ if (isset($arr['status'])) {
|
|
|
$where['status'] = $arr['status'];
|
|
|
}
|
|
|
- if(1!=$uinfo['is_company']){
|
|
|
+ if (1 != $uinfo['is_company']) {
|
|
|
$where['send_user_id'] = $uinfo['id'];
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
$where['company_id'] = $uinfo['company_id'];
|
|
|
}
|
|
|
$m_s = new sendrecordmodel();
|
|
|
- $count = $m_s->getlist($where,'count');
|
|
|
- if($count<0){
|
|
|
- return backarr(0,"无数据");
|
|
|
+ $count = $m_s->getlist($where, 'count');
|
|
|
+ if ($count < 0) {
|
|
|
+ return backarr(0, "无数据");
|
|
|
}
|
|
|
$page = isset($arr['page']) && !empty($arr['page']) ? $arr['page'] : 1;
|
|
|
$size = isset($arr['size']) && !empty($arr['size']) ? $arr['size'] : 10;
|