岗位- AI问题业务逻辑完善

This commit is contained in:
2025-12-16 15:25:39 +08:00
parent e18371ddb8
commit 6324088316
4 changed files with 41 additions and 8 deletions

View File

@@ -1,5 +1,6 @@
package com.vetti.web.controller.hotake;
import cn.hutool.core.collection.CollectionUtil;
import com.vetti.common.annotation.Log;
import com.vetti.common.core.controller.BaseController;
import com.vetti.common.core.domain.AjaxResult;
@@ -107,5 +108,21 @@ public class HotakeRolesInfoController extends BaseController
return R.ok(hotakeRolesInfoService.saveHotakeRolesInfo(hotakeRolesInfo));
}
/**
* 获取岗位信息详细信息(UUID)
*/
@ApiOperation("获取岗位信息详细信息(UUID)")
@GetMapping(value = "/interview/{uuid}")
public R<HotakeRolesInfoDto> getInfoUuid(@PathVariable("uuid") String uuid)
{
HotakeRolesInfo query = new HotakeRolesInfo();
query.setUuid(uuid);
List<HotakeRolesInfo> list = hotakeRolesInfoService.selectHotakeRolesInfoList(query);
Long id = 0L;
if(CollectionUtil.isNotEmpty(list)){
id = list.get(0).getId();
}
return R.ok(hotakeRolesInfoService.selectHotakeRolesInfoDtoById(id));
}
}

View File

@@ -14,6 +14,9 @@ import lombok.experimental.Accessors;
@Accessors(chain = true)
public class RoleBenefitsDto {
@ApiModelProperty("福利Key")
@ApiModelProperty("福利Key/自定义")
private String keyValue;
@ApiModelProperty("standard:标准福利,customize:自定义")
private String type;
}

View File

@@ -71,6 +71,9 @@ public class HotakeRolesInfoServiceImpl extends BaseServiceImpl implements IHota
public HotakeRolesInfoDto selectHotakeRolesInfoDtoById(Long id) {
HotakeRolesInfoDto dto = new HotakeRolesInfoDto();
HotakeRolesInfo hotakeRolesInfo = hotakeRolesInfoMapper.selectHotakeRolesInfoById(id);
if(hotakeRolesInfo == null){
throw new ServiceException(MessageUtils.messageCustomize("HotakeRolesInfoServiceImpl10001"));
}
BeanUtil.copyProperties(hotakeRolesInfo, dto);
if(hotakeRolesInfo != null) {
@@ -274,6 +277,7 @@ public class HotakeRolesInfoServiceImpl extends BaseServiceImpl implements IHota
}else{
rolesInfo.setCertificationsLicensesJson("");
}
rolesInfo.setAcceptEquivalentWorkFlag(hotakeRolesInfo.getAcceptEquivalentWorkFlag());
}
if(RoleOperStepsEnum.STEPS_3.getCode().equals(hotakeRolesInfo.getOperStep())){
rolesInfo.setDescriptionTone(hotakeRolesInfo.getDescriptionTone());
@@ -292,10 +296,11 @@ public class HotakeRolesInfoServiceImpl extends BaseServiceImpl implements IHota
}
if(RoleOperStepsEnum.STEPS_5.getCode().equals(hotakeRolesInfo.getOperStep())){
rolesInfo.setAiScreeningVideoFlag(hotakeRolesInfo.getAiScreeningVideoFlag());
rolesInfo.setVideoId(hotakeRolesInfo.getVideoId());
rolesInfo.setSpeechSpeed(hotakeRolesInfo.getSpeechSpeed());
}
if(RoleOperStepsEnum.STEPS_6.getCode().equals(hotakeRolesInfo.getOperStep())){
if (CollectionUtil.isNotEmpty(hotakeRolesInfo.getPublishingChannelsList())){
String publishingChannelsJson = JSONUtil.toJsonStr(hotakeRolesInfo.getPublishingChannelsList());
rolesInfo.setPublishingChannelsJson(publishingChannelsJson);
@@ -309,10 +314,18 @@ public class HotakeRolesInfoServiceImpl extends BaseServiceImpl implements IHota
//默认是编辑中状态
if(StrUtil.isEmpty(hotakeRolesInfo.getStatus())){
rolesInfo.setStatus(RoleStatusEnum.EDITING.getCode());
}else{
rolesInfo.setStatus(hotakeRolesInfo.getStatus());
}
if(StrUtil.isNotEmpty(hotakeRolesInfo.getDataType())){
rolesInfo.setDataType(hotakeRolesInfo.getDataType());
}
if(StrUtil.isNotEmpty(hotakeRolesInfo.getLanguages())){
rolesInfo.setLanguages(hotakeRolesInfo.getLanguages());
}
if(StrUtil.isNotEmpty(hotakeRolesInfo.getOperStep())){
rolesInfo.setOperStep(hotakeRolesInfo.getOperStep());
}
rolesInfo.setRecruiterId(SecurityUtils.getUserId());
fill(FillTypeEnum.UPDATE.getCode(), rolesInfo);
hotakeRolesInfoMapper.updateAllHotakeRolesInfo(rolesInfo);

View File

@@ -274,8 +274,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
application_deadline = #{applicationDeadline},
posted = #{posted},
aiScreeningVideoFlag = #{ai_screening_video_flag},
videoId = #{video_id},
ai_screening_video_flag = #{aiScreeningVideoFlag},
video_id = #{videoId},
speech_speed = #{speechSpeed},
languages = #{languages},