业务逻辑修改以及完善

This commit is contained in:
2026-01-18 17:25:58 +08:00
parent f84f23df55
commit 7240cb74ad
13 changed files with 268 additions and 134 deletions

View File

@@ -32,22 +32,33 @@ public class HotakeComplianceInfoController extends BaseController
* 查询用户合规性信息列表
*/
@ApiOperation("查询用户合规性信息列表")
@GetMapping("/list")
public TableWebDataInfo<HotakeComplianceInfo> list(HotakeComplianceInfo hotakeComplianceInfo)
@GetMapping("/pageList")
public TableWebDataInfo<HotakeComplianceInfo> pageList(HotakeComplianceInfo hotakeComplianceInfo)
{
startPage();
List<HotakeComplianceInfo> list = hotakeComplianceInfoService.selectHotakeComplianceInfoList(hotakeComplianceInfo);
return getWebDataTable(list);
}
/**
* 查询用户合规性信息列表
*/
@ApiOperation("查询用户合规性信息列表(无分页)")
@GetMapping("/getList")
public R<List<HotakeComplianceInfo>> list(HotakeComplianceInfo hotakeComplianceInfo)
{
List<HotakeComplianceInfo> list = hotakeComplianceInfoService.selectHotakeComplianceInfoList(hotakeComplianceInfo);
return R.ok(list,"");
}
/**
* 获取用户合规性信息详细信息
*/
@ApiOperation("获取用户合规性信息详细信息")
@GetMapping(value = "/{id}")
public R<?> getInfo(@PathVariable("id") Long id)
public R<HotakeComplianceInfo> getInfo(@PathVariable("id") Long id)
{
return R.ok(hotakeComplianceInfoService.selectHotakeComplianceInfoById(id));
return R.ok(hotakeComplianceInfoService.selectHotakeComplianceInfoById(id),"");
}
/**
@@ -77,9 +88,9 @@ public class HotakeComplianceInfoController extends BaseController
*/
@ApiOperation("删除用户合规性信息")
@Log(title = "用户合规性信息", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public R<?> remove(@PathVariable Long[] ids)
@DeleteMapping("/{id}")
public R<?> remove(@PathVariable Long id)
{
return R.ok(hotakeComplianceInfoService.deleteHotakeComplianceInfoByIds(ids));
return R.ok(hotakeComplianceInfoService.deleteHotakeComplianceInfoById(id));
}
}

View File

@@ -32,20 +32,31 @@ public class HotakeRolesApplyOperRecordController extends BaseController
* 查询岗位申请操作信息列表
*/
@ApiOperation("查询岗位申请操作信息列表")
@GetMapping("/list")
public TableWebDataInfo<HotakeRolesApplyOperRecord> list(HotakeRolesApplyOperRecord hotakeRolesApplyOperRecord)
@GetMapping("/pageList")
public TableWebDataInfo<HotakeRolesApplyOperRecord> pageList(HotakeRolesApplyOperRecord hotakeRolesApplyOperRecord)
{
startPage();
List<HotakeRolesApplyOperRecord> list = hotakeRolesApplyOperRecordService.selectHotakeRolesApplyOperRecordList(hotakeRolesApplyOperRecord);
return getWebDataTable(list);
}
/**
* 查询岗位申请操作信息列表
*/
@ApiOperation("查询岗位申请操作信息列表(无分页)")
@GetMapping("/getList")
public R<List<HotakeRolesApplyOperRecord>> list(HotakeRolesApplyOperRecord hotakeRolesApplyOperRecord)
{
List<HotakeRolesApplyOperRecord> list = hotakeRolesApplyOperRecordService.selectHotakeRolesApplyOperRecordList(hotakeRolesApplyOperRecord);
return R.ok(list);
}
/**
* 获取岗位申请操作信息详细信息
*/
@ApiOperation("获取岗位申请操作信息详细信息")
@GetMapping(value = "/{id}")
public R<?> getInfo(@PathVariable("id") Long id)
public R<HotakeRolesApplyOperRecord> getInfo(@PathVariable("id") Long id)
{
return R.ok(hotakeRolesApplyOperRecordService.selectHotakeRolesApplyOperRecordById(id));
}

View File

@@ -9,8 +9,10 @@ import cn.hutool.json.JSONUtil;
import com.vetti.common.core.domain.R;
import com.vetti.common.enums.IsInterviewEnum;
import com.vetti.common.enums.UserOperStepsEnum;
import com.vetti.hotake.domain.HotakeComplianceInfo;
import com.vetti.hotake.domain.HotakeCvInfo;
import com.vetti.hotake.domain.HotakeProblemBaseInfo;
import com.vetti.hotake.service.IHotakeComplianceInfoService;
import com.vetti.hotake.service.IHotakeCvInfoService;
import com.vetti.hotake.service.IHotakeProblemBaseInfoService;
import com.vetti.web.entity.dto.SysUserDto;
@@ -63,6 +65,9 @@ public class SysProfileController extends BaseController
@Autowired
private IHotakeProblemBaseInfoService problemBaseInfoService;
@Autowired
private IHotakeComplianceInfoService complianceInfoService;
/**
* 个人信息
*/
@@ -79,6 +84,11 @@ public class SysProfileController extends BaseController
List<HotakeCvInfo> cvInfoList = cvInfoService.selectHotakeCvInfoList(query);
dto.setCvInfoList(cvInfoList);
HotakeComplianceInfo queryCompliance = new HotakeComplianceInfo();
queryCompliance.setUserId(user.getUserId());
List<HotakeComplianceInfo> complianceInfoList = complianceInfoService.selectHotakeComplianceInfoList(queryCompliance);
dto.setComplianceInfoList(complianceInfoList);
//是否可以参加面试
HotakeProblemBaseInfo queryProblemBaseInfo = new HotakeProblemBaseInfo();
queryProblemBaseInfo.setUserId(user.getUserId());

View File

@@ -1,6 +1,7 @@
package com.vetti.web.entity.dto;
import com.vetti.common.core.domain.entity.SysUser;
import com.vetti.hotake.domain.HotakeComplianceInfo;
import com.vetti.hotake.domain.HotakeCvInfo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@@ -23,4 +24,7 @@ public class SysUserDto extends SysUser {
@ApiModelProperty("简历数据集合")
private List<HotakeCvInfo> cvInfoList;
@ApiModelProperty("个人合规数据集合")
private List<HotakeComplianceInfo> complianceInfoList;
}

View File

@@ -104,6 +104,7 @@ public class ElevenLabsConvAiTokenClientServiceImpl implements IElevenLabsConvAi
@Override
public HotakeAiInterviewScoringDto getAiInterviewScoring(HotakeAiInterviewScoringVo scoringVo) {
log.info("请求参数为:{}",JSONUtil.toJsonStr(scoringVo));
List<Map> list = new ArrayList<>();
//获取第一条数据记录
Map<String, String> mapEntity = new HashMap<>();
@@ -125,17 +126,27 @@ public class ElevenLabsConvAiTokenClientServiceImpl implements IElevenLabsConvAi
ChatGPTClient gptClient = SpringUtils.getBean(ChatGPTClient.class);
String resultMsg = gptClient.handleAiChat(promptJson, "PF");
log.info("返回的结果为:{}",resultMsg);
//开始解析返回结果
Map mapResultData = JSONUtil.toBean(resultMsg,Map.class);
//获取评分
Object scoreStr = mapResultData.get("score");
Object assessment = mapResultData.get("assessment");
try {
//开始解析返回结果
Map mapResultData = JSONUtil.toBean(resultMsg,Map.class);
//获取评分
Object scoreStr = mapResultData.get("score");
Object assessment = mapResultData.get("assessment");
HotakeAiInterviewScoringDto scoringDto = new HotakeAiInterviewScoringDto();
scoringDto.setScore(scoreStr+"");
scoringDto.setAssessment(assessment+"");
scoringDto.setContent(scoreStr +"\n"+assessment);
return scoringDto;
}catch (Exception e){
e.printStackTrace();
HotakeAiInterviewScoringDto scoringDto = new HotakeAiInterviewScoringDto();
scoringDto.setScore(0+"");
scoringDto.setAssessment("Skills need improvement");
scoringDto.setContent(0 +"\n"+"Skills need improvement");
return scoringDto;
}
HotakeAiInterviewScoringDto scoringDto = new HotakeAiInterviewScoringDto();
scoringDto.setScore(scoreStr+"");
scoringDto.setAssessment(assessment+"");
scoringDto.setContent(scoreStr +"\n"+assessment);
return scoringDto;
}