Commit 14e5fe5c by zwb

修改简历基本信息管理功能

parent e8edde8b
...@@ -221,7 +221,7 @@ public class NewEditionResumeController { ...@@ -221,7 +221,7 @@ public class NewEditionResumeController {
*/ */
@PostMapping(value = "/resume-data-tagList") @PostMapping(value = "/resume-data-tagList")
@RepeatSubmit @RepeatSubmit
public R<List<String>> resumeDataTagList(@RequestBody ResumeMakeDto dto){ public R<List<Map<String,Object>>> resumeDataTagList(@RequestBody ResumeMakeDto dto){
if (null == dto.getResumeId()){ if (null == dto.getResumeId()){
throw new JxgException("简历id不能为空"); throw new JxgException("简历id不能为空");
} }
...@@ -235,7 +235,7 @@ public class NewEditionResumeController { ...@@ -235,7 +235,7 @@ public class NewEditionResumeController {
*/ */
@PostMapping(value = "/update-resume-tagList") @PostMapping(value = "/update-resume-tagList")
@RepeatSubmit @RepeatSubmit
public R<List<String>> updateResumeTagList(@RequestBody ResumeBaseTagDto dto){ public R<List<Map<String,Object>>> updateResumeTagList(@RequestBody ResumeBaseTagDto dto){
if (null == dto.getResumeId()){ if (null == dto.getResumeId()){
throw new JxgException("简历id不能为空"); throw new JxgException("简历id不能为空");
} }
...@@ -253,6 +253,7 @@ public class NewEditionResumeController { ...@@ -253,6 +253,7 @@ public class NewEditionResumeController {
if (null == dto.getWorkExperience()&&dto.getInternshipExperience()==null){ if (null == dto.getWorkExperience()&&dto.getInternshipExperience()==null){
throw new JxgException("切换经历不能为空"); throw new JxgException("切换经历不能为空");
} }
return R.ok(this.newEditionResumeService.reversalExperience(dto)); this.newEditionResumeService.reversalExperience(dto);
return R.ok();
} }
} }
...@@ -5,6 +5,7 @@ import com.bkty.system.domain.entity.FunctionResumeBaseTag; ...@@ -5,6 +5,7 @@ import com.bkty.system.domain.entity.FunctionResumeBaseTag;
import org.apache.ibatis.annotations.*; import org.apache.ibatis.annotations.*;
import java.util.List; import java.util.List;
import java.util.Map;
/** /**
* 个人简历基本数据标签Mapper * 个人简历基本数据标签Mapper
...@@ -60,4 +61,11 @@ and ft.is_show = 0""") ...@@ -60,4 +61,11 @@ and ft.is_show = 0""")
"</script>" "</script>"
}) })
void updateResumeTag(@Param("resumeId") String resumeId, @Param("resumeBaseTagNameList") List<String> resumeBaseTagNameList); void updateResumeTag(@Param("resumeId") String resumeId, @Param("resumeBaseTagNameList") List<String> resumeBaseTagNameList);
@Select("""
select tag_name tagName,is_show isShow
from function_resume_base_tag ft
where ft.resume_id = #{resumeId}
""")
List<Map<String, Object>> selectTagList(String resumeId);
} }
...@@ -104,7 +104,7 @@ public class AiAnalysisServiceImpl extends ServiceImpl<AiRecommendBaseMapper, Ai ...@@ -104,7 +104,7 @@ public class AiAnalysisServiceImpl extends ServiceImpl<AiRecommendBaseMapper, Ai
aiRecommendBase.setRecommendStatus(0); //未推荐 aiRecommendBase.setRecommendStatus(0); //未推荐
aiRecommendBase.setUserId(Objects.requireNonNull(LoginHelper.getLoginUser()).getUserId()); aiRecommendBase.setUserId(Objects.requireNonNull(LoginHelper.getLoginUser()).getUserId());
this.baseMapper.insert(aiRecommendBase); this.baseMapper.insert(aiRecommendBase);
redisTemplate.opsForValue().set(Constants.REDIS_USER_ANALYSIS_KEY.formatted(dto.getResumeId()), JSON.toJSONString(aiRecommendBase)); redisTemplate.opsForValue().set(Constants.REDIS_USER_ANALYSIS_KEY.formatted(aiRecommendBase.getId()), JSON.toJSONString(aiRecommendBase));
return String.valueOf(aiRecommendBase.getId()); return String.valueOf(aiRecommendBase.getId());
} }
} }
...@@ -103,14 +103,14 @@ public interface NewEditionResumeService { ...@@ -103,14 +103,14 @@ public interface NewEditionResumeService {
* 查询个人简历基本信息标签列表 * 查询个人简历基本信息标签列表
* @param resumeId * @param resumeId
*/ */
List<String> resumeDataTagList(String resumeId); List<Map<String,Object>> resumeDataTagList(String resumeId);
/** /**
* 更新个人简历基本信息标签列表 * 更新个人简历基本信息标签列表
* @param dto * @param dto
* @return * @return
*/ */
List<String> updateResumeTagList(ResumeBaseTagDto dto); List<Map<String,Object>> updateResumeTagList(ResumeBaseTagDto dto);
/** /**
* 个人简历工作经历与实习经历切换 * 个人简历工作经历与实习经历切换
...@@ -118,6 +118,6 @@ public interface NewEditionResumeService { ...@@ -118,6 +118,6 @@ public interface NewEditionResumeService {
* @param dto * @param dto
* @return * @return
*/ */
String reversalExperience(ResumeExpChangeDto dto) throws Exception; void reversalExperience(ResumeExpChangeDto dto) throws Exception;
} }
...@@ -928,12 +928,12 @@ public class NewEditionResumeServiceImpl implements NewEditionResumeService { ...@@ -928,12 +928,12 @@ public class NewEditionResumeServiceImpl implements NewEditionResumeService {
} }
@Override @Override
public List<String> resumeDataTagList(String resumeId) { public List<Map<String,Object>> resumeDataTagList(String resumeId) {
return resumeBaseTagMapper.selectTagNameList(resumeId); return resumeBaseTagMapper.selectTagList(resumeId);
} }
@Override @Override
public List<String> updateResumeTagList(ResumeBaseTagDto dto) { public List<Map<String,Object>> updateResumeTagList(ResumeBaseTagDto dto) {
String resumeId = dto.getResumeId(); String resumeId = dto.getResumeId();
List<String> resumeBaseTagNameList = dto.getResumeNameList(); List<String> resumeBaseTagNameList = dto.getResumeNameList();
...@@ -951,7 +951,7 @@ public class NewEditionResumeServiceImpl implements NewEditionResumeService { ...@@ -951,7 +951,7 @@ public class NewEditionResumeServiceImpl implements NewEditionResumeService {
} }
@Override @Override
public String reversalExperience(ResumeExpChangeDto dto) throws Exception { public void reversalExperience(ResumeExpChangeDto dto) throws Exception {
//修改工作经历 //修改工作经历
if (dto.getWorkExperience()!=null){ if (dto.getWorkExperience()!=null){
if (StringUtils.isNotBlank(dto.getWorkExperience().getModelName())) if (StringUtils.isNotBlank(dto.getWorkExperience().getModelName()))
...@@ -962,7 +962,6 @@ public class NewEditionResumeServiceImpl implements NewEditionResumeService { ...@@ -962,7 +962,6 @@ public class NewEditionResumeServiceImpl implements NewEditionResumeService {
if (StringUtils.isNotBlank(dto.getInternshipExperience().getModelName())) if (StringUtils.isNotBlank(dto.getInternshipExperience().getModelName()))
updateModule(dto.getInternshipExperience().getModelName(),dto.getInternshipExperience()); updateModule(dto.getInternshipExperience().getModelName(),dto.getInternshipExperience());
} }
return null;
} }
public String sanitizeFileName(String fileName) { public String sanitizeFileName(String fileName) {
......
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 sign in to comment