Commit 70e2ee9d by 284718418@qq.com

添加原始文件路径

parent 42c43ee3
...@@ -260,6 +260,11 @@ public class ZpglRcxx extends Model<ZpglRcxx> { ...@@ -260,6 +260,11 @@ public class ZpglRcxx extends Model<ZpglRcxx> {
@ApiModelProperty(value = "毕业院校") @ApiModelProperty(value = "毕业院校")
private String universitie; private String universitie;
/** /**
* 专业名称
*/
@ApiModelProperty(value = "专业名称")
private String subject;
/**
* 最近工作单位 * 最近工作单位
*/ */
@ApiModelProperty(value = "最近工作单位") @ApiModelProperty(value = "最近工作单位")
......
...@@ -15,6 +15,7 @@ import cn.timer.api.dto.email.SendMessageDto; ...@@ -15,6 +15,7 @@ import cn.timer.api.dto.email.SendMessageDto;
import cn.timer.api.dto.template.InterviewNotice; import cn.timer.api.dto.template.InterviewNotice;
import cn.timer.api.dto.zpgl.ImportCandidateDto; import cn.timer.api.dto.zpgl.ImportCandidateDto;
import cn.timer.api.dto.zpgl.ZpglRcxxDto; import cn.timer.api.dto.zpgl.ZpglRcxxDto;
import cn.timer.api.service.OSSService;
import cn.timer.api.utils.Result; import cn.timer.api.utils.Result;
import cn.timer.api.utils.ResultUtil; import cn.timer.api.utils.ResultUtil;
import cn.timer.api.utils.ZpglMessageTemplate; import cn.timer.api.utils.ZpglMessageTemplate;
...@@ -63,6 +64,9 @@ public class ZpglServiceImpl implements ZpglService { ...@@ -63,6 +64,9 @@ public class ZpglServiceImpl implements ZpglService {
@Autowired @Autowired
private ZpglWxgzptServiceImpl zpglWxgzptService; private ZpglWxgzptServiceImpl zpglWxgzptService;
@Autowired
private OSSService ossService;
@Override @Override
public boolean updateZpglRcxx(UserBean userBean, ZpglRcxxDto zpglRcxxDto) { public boolean updateZpglRcxx(UserBean userBean, ZpglRcxxDto zpglRcxxDto) {
...@@ -278,6 +282,11 @@ public class ZpglServiceImpl implements ZpglService { ...@@ -278,6 +282,11 @@ public class ZpglServiceImpl implements ZpglService {
if (StringUtils.isEmpty(resumeExtract) || StringUtils.isEmpty(resumeExtract.getBasic_infos())) { if (StringUtils.isEmpty(resumeExtract) || StringUtils.isEmpty(resumeExtract.getBasic_infos())) {
return ResultUtil.error("导入简历失败,请检查是否为简历文件~"); 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); return this.addZpglRcxx(userBean, resumeExtract, importCandidateDto);
} }
...@@ -307,6 +316,8 @@ public class ZpglServiceImpl implements ZpglService { ...@@ -307,6 +316,8 @@ public class ZpglServiceImpl implements ZpglService {
zpglRcxx.setStatus(importCandidateDto.getStatus()); zpglRcxx.setStatus(importCandidateDto.getStatus());
zpglRcxx.setZpglZpqdId(importCandidateDto.getZpglZpqdId()); zpglRcxx.setZpglZpqdId(importCandidateDto.getZpglZpqdId());
zpglRcxx.setOrgCode(userBean.getOrgCode().toString()); zpglRcxx.setOrgCode(userBean.getOrgCode().toString());
zpglRcxx.setFileName(importCandidateDto.getFileName());
zpglRcxx.setFilePath(importCandidateDto.getFilePath());
Integer highesteducation = null; Integer highesteducation = null;
// 添加人才信息 // 添加人才信息
if (!StringUtils.isEmpty(resumeExtract.getBasic_infos())) { if (!StringUtils.isEmpty(resumeExtract.getBasic_infos())) {
......
...@@ -49,6 +49,18 @@ public class ImportCandidateDto implements Serializable{ ...@@ -49,6 +49,18 @@ public class ImportCandidateDto implements Serializable{
*/ */
@ApiModelProperty(value = "文档类型,目前支持pdf,doc,docx,wps,txt,jpg,jpeg,png,bmp,tif格式") @ApiModelProperty(value = "文档类型,目前支持pdf,doc,docx,wps,txt,jpg,jpeg,png,bmp,tif格式")
private String suffix; 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