修改pc互联网端-修改查询候选人报错情况

This commit is contained in:
sh
2026-04-27 16:47:32 +08:00
parent 136d7d9ade
commit e2d84b2b55

View File

@@ -192,11 +192,20 @@ public class CmsJobController extends BaseController
@Log(title = "岗位", businessType = BusinessType.DELETE)
@GetMapping("/candidates")
@PreAuthorize("@ss.hasPermi('bussiness:job:candidates')")
public TableDataInfo candidates(Long jobId)
public TableDataInfo candidates(String encryptJobId)
{
if(StringUtils.isBlank(encryptJobId)){
return error(500,"岗位id为空!");
}
try {
Long jobId=Long.parseLong(SM4Utils.decryptEcb(SM4Constants.SM4_KET, encryptJobId));
startPage();
List<CandidateVO> list = jobService.candidates(jobId);
return getDataTable(list);
}catch (Exception e){
e.printStackTrace();
return error(500,"参数不正确!");
}
}
@ApiOperation("获取推荐岗位")