Commit 70e2ee9d by 284718418@qq.com

添加原始文件路径

parent 42c43ee3
......@@ -255,11 +255,16 @@ public class ZpglRcxx extends Model<ZpglRcxx> {
@ApiModelProperty(value = "最高学历 1:小学;2:初中;3:高中;4:中专;5:大专;6:本科;7:研究生;8:硕士;9:博士")
private String highesteducation;
/**
* 毕业院校
*/
* 毕业院校
*/
@ApiModelProperty(value = "毕业院校")
private String universitie;
/**
* 专业名称
*/
@ApiModelProperty(value = "专业名称")
private String subject;
/**
* 最近工作单位
*/
@ApiModelProperty(value = "最近工作单位")
......
......@@ -15,6 +15,7 @@ import cn.timer.api.dto.email.SendMessageDto;
import cn.timer.api.dto.template.InterviewNotice;
import cn.timer.api.dto.zpgl.ImportCandidateDto;
import cn.timer.api.dto.zpgl.ZpglRcxxDto;
import cn.timer.api.service.OSSService;
import cn.timer.api.utils.Result;
import cn.timer.api.utils.ResultUtil;
import cn.timer.api.utils.ZpglMessageTemplate;
......@@ -63,6 +64,9 @@ public class ZpglServiceImpl implements ZpglService {
@Autowired
private ZpglWxgzptServiceImpl zpglWxgzptService;
@Autowired
private OSSService ossService;
@Override
public boolean updateZpglRcxx(UserBean userBean, ZpglRcxxDto zpglRcxxDto) {
......@@ -278,6 +282,11 @@ public class ZpglServiceImpl implements ZpglService {
if (StringUtils.isEmpty(resumeExtract) || StringUtils.isEmpty(resumeExtract.getBasic_infos())) {
return ResultUtil.error("导入简历失败,请检查是否为简历文件~");
}
Result<String> data = ossService.upload(userBean.getOrgCode(), "zpgl", file);
if(!StringUtils.isEmpty(data) && !StringUtils.isEmpty(data.getData())){
importCandidateDto.setFilePath(data.getData());
importCandidateDto.setFileName(file.getOriginalFilename());
}
return this.addZpglRcxx(userBean, resumeExtract, importCandidateDto);
}
......@@ -307,6 +316,8 @@ public class ZpglServiceImpl implements ZpglService {
zpglRcxx.setStatus(importCandidateDto.getStatus());
zpglRcxx.setZpglZpqdId(importCandidateDto.getZpglZpqdId());
zpglRcxx.setOrgCode(userBean.getOrgCode().toString());
zpglRcxx.setFileName(importCandidateDto.getFileName());
zpglRcxx.setFilePath(importCandidateDto.getFilePath());
Integer highesteducation = null;
// 添加人才信息
if (!StringUtils.isEmpty(resumeExtract.getBasic_infos())) {
......
......@@ -49,6 +49,18 @@ public class ImportCandidateDto implements Serializable{
*/
@ApiModelProperty(value = "文档类型,目前支持pdf,doc,docx,wps,txt,jpg,jpeg,png,bmp,tif格式")
private String suffix;
/**
* 文件名
*/
@ApiModelProperty(value = "文件名")
private String fileName;
/**
* 文件路径
*/
@ApiModelProperty(value = "文件路径")
private String filePath;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment