修改pc互联网端-修改查询候选人报错情况
This commit is contained in:
@@ -192,11 +192,20 @@ public class CmsJobController extends BaseController
|
|||||||
@Log(title = "岗位", businessType = BusinessType.DELETE)
|
@Log(title = "岗位", businessType = BusinessType.DELETE)
|
||||||
@GetMapping("/candidates")
|
@GetMapping("/candidates")
|
||||||
@PreAuthorize("@ss.hasPermi('bussiness:job:candidates')")
|
@PreAuthorize("@ss.hasPermi('bussiness:job:candidates')")
|
||||||
public TableDataInfo candidates(Long jobId)
|
public TableDataInfo candidates(String encryptJobId)
|
||||||
{
|
{
|
||||||
startPage();
|
if(StringUtils.isBlank(encryptJobId)){
|
||||||
List<CandidateVO> list = jobService.candidates(jobId);
|
return error(500,"岗位id为空!");
|
||||||
return getDataTable(list);
|
}
|
||||||
|
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("获取推荐岗位")
|
@ApiOperation("获取推荐岗位")
|
||||||
|
|||||||
Reference in New Issue
Block a user