| | |
| | | } |
| | | |
| | | $this->yunset("eid", $id); |
| | | |
| | | $resume_expect = $resumeM->getInfoByEid(array('eid' => $id, 'uid' => $this->uid, 'usertype' => $this->usertype, 'spid' => $this->spid)); |
| | | |
| | | if (empty($resume_expect)) { |
| | | |
| | | $this->ACT_msg($this->config['sy_weburl'], '没有找到该人才!'); |
| | |
| | | if (empty($eid)) { |
| | | return $res; |
| | | } |
| | | |
| | | $cache = $this->getClass(array('user', 'city', 'job', 'hy', 'industry')); |
| | | |
| | | //查询简历信息 |
| | | $expect = $this->getExpect(array('id' => $eid), array('cache' => $cache, 'needCache' => 1)); |
| | | |
| | | if (empty($expect)) { |
| | | return $res; |
| | | } |
| | |
| | | $resume['username_n'] = $this->setUsernameShow(array('nametype' => $resume['nametype'], 'name' => $resume['name'], 'eid' => $eid, 'sex' => $resume['sex'])); |
| | | //图片显示处理 |
| | | $resume['photo'] = $this->setResumePhotoShow(array('photo' => $resume['photo'], 'defphoto' => $resume['defphoto'], 'photo_status' => $resume['photo_status'], 'phototype' => $resume['phototype'], 'sex' => $resume['sex'])); |
| | | |
| | | //年龄 |
| | | if (!empty($resume['birthday'])) { |
| | | $resume['age'] = date('Y') - date('Y', strtotime($resume['birthday'])); |
| | |
| | | |
| | | $return['worknum'] = $worknum > 0 ? $worknum : 0; |
| | | |
| | | $return['workavg'] = $workavg > 11 ? avgToYm($workavg) : $workavg; |
| | | $return['workavg'] = $workavg; |
| | | |
| | | $return['workmin'] = date('Y.m', $workmin); |
| | | $return['workmax'] = $workmax == 0 ? '至今' : date('Y.m', $workmax); |