|
@@ -3,32 +3,46 @@ package com.citu.module.menduner.system.service.resume;
|
|
import cn.hutool.core.codec.Base64;
|
|
import cn.hutool.core.codec.Base64;
|
|
import cn.hutool.http.HttpUtil;
|
|
import cn.hutool.http.HttpUtil;
|
|
import com.citu.framework.common.pojo.CommonResult;
|
|
import com.citu.framework.common.pojo.CommonResult;
|
|
|
|
+import com.citu.module.menduner.system.controller.base.person.info.PersonDetailExtendRespVO;
|
|
|
|
+import com.citu.module.menduner.system.controller.base.person.info.PersonDetailRespVO;
|
|
import com.citu.module.menduner.system.controller.base.resume.resumesdk.TemResumeResVo;
|
|
import com.citu.module.menduner.system.controller.base.resume.resumesdk.TemResumeResVo;
|
|
|
|
+import io.swagger.v3.oas.annotations.parameters.RequestBody;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
+import javax.annotation.Resource;
|
|
|
|
+
|
|
@Service
|
|
@Service
|
|
public class OnlineResumeServiceImpl implements OnlineResumeService {
|
|
public class OnlineResumeServiceImpl implements OnlineResumeService {
|
|
|
|
|
|
|
|
|
|
- TenResumeService tenResumeService;
|
|
|
|
-
|
|
|
|
|
|
+ @Resource
|
|
|
|
+ private TenResumeService tenResumeService;
|
|
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- public CommonResult<TemResumeResVo> resumeParser(String fileUrl) {
|
|
|
|
|
|
+ public TemResumeResVo resumeParser(String fileUrl) {
|
|
String fileName = fileUrl.substring(fileUrl.lastIndexOf("/") + 1);
|
|
String fileName = fileUrl.substring(fileUrl.lastIndexOf("/") + 1);
|
|
byte[] bytes = HttpUtil.downloadBytes(fileUrl);
|
|
byte[] bytes = HttpUtil.downloadBytes(fileUrl);
|
|
Base64 base64 = new Base64();
|
|
Base64 base64 = new Base64();
|
|
String fileContent = base64.encode(bytes);
|
|
String fileContent = base64.encode(bytes);
|
|
- CommonResult<TemResumeResVo> commonResult = tenResumeService.tenResumeService(fileName,fileContent);
|
|
|
|
- return commonResult;
|
|
|
|
|
|
+ return tenResumeService.tenResumeService(fileName, fileContent);
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- @Autowired
|
|
|
|
- public void setTenResumeService(TenResumeService tenResumeService) {
|
|
|
|
- this.tenResumeService = tenResumeService;
|
|
|
|
|
|
+ @Override
|
|
|
|
+ public PersonDetailExtendRespVO parserByPerson(String fileUrl) {
|
|
|
|
+ TemResumeResVo temResumeResVo = resumeParser(fileUrl);
|
|
|
|
+ PersonDetailExtendRespVO resp=new PersonDetailExtendRespVO();
|
|
|
|
+ // TODO 解析出简历对象后 赋值给resp
|
|
|
|
+ // TODO 没有的信息可不填
|
|
|
|
+ // TODO resp.info 人员基本信息 areaId、regId 需要取出省市区id,工作年限、工作经验通过 EducationTypeEnum|ExpTypeEnum 判断赋type值,其他基本信息根据情况填
|
|
|
|
+ // TODO resp.interestedList 大概率取不出,但是可以填positionName
|
|
|
|
+ // TODO resp.skillList 完全配不出格式,先不用管
|
|
|
|
+ // TODO resp.eduList 可填schoolName、educationType(EducationTypeEnum)、major、startTime、endTime
|
|
|
|
+ // TODO resp.workList 可填enterpriseName、positionName、startTime、endTime、content
|
|
|
|
+ // TODO resp.projectList 自行评估有没有
|
|
|
|
+ // TODO resp.trainList 大概率没有
|
|
|
|
+ // TODO resp.resume 将temResumeResVo丢进来
|
|
|
|
+ return resp;
|
|
}
|
|
}
|
|
}
|
|
}
|