|
|
@@ -6,7 +6,9 @@ import com.sqx.common.utils.Result;
|
|
|
import com.sqx.modules.app.annotation.Login;
|
|
|
import com.sqx.modules.app.entity.UserEntity;
|
|
|
import com.sqx.modules.app.service.UserService;
|
|
|
+import com.sqx.modules.interviewRecord.entity.HrPhone;
|
|
|
import com.sqx.modules.interviewRecord.entity.InterviewRecord;
|
|
|
+import com.sqx.modules.interviewRecord.service.HrPhoneService;
|
|
|
import com.sqx.modules.interviewRecord.service.InterviewRecordService;
|
|
|
import com.sqx.modules.resumes.entity.Company;
|
|
|
import com.sqx.modules.resumes.service.CompanyService;
|
|
|
@@ -35,6 +37,8 @@ public class InterviewRecordController {
|
|
|
private CompanyService companyService;
|
|
|
@Autowired
|
|
|
private InterviewRecordService interviewRecordService;
|
|
|
+ @Autowired
|
|
|
+ private HrPhoneService hrPhoneService;
|
|
|
|
|
|
@Login
|
|
|
@ApiOperation("获取面试记录列表")
|
|
|
@@ -77,8 +81,8 @@ public class InterviewRecordController {
|
|
|
}
|
|
|
|
|
|
@Login
|
|
|
- @PostMapping("新增面试邀请")
|
|
|
- @ApiOperation("addInterview")
|
|
|
+ @PostMapping("addInterview")
|
|
|
+ @ApiOperation("新增面试邀请")
|
|
|
public Result addInterview(@RequestAttribute("userId")Long userId,@RequestBody InterviewRecord interviewRecord){
|
|
|
interviewRecord.setUserId(userId);
|
|
|
interviewRecordService.saveOrUpdate(interviewRecord);
|
|
|
@@ -86,11 +90,37 @@ public class InterviewRecordController {
|
|
|
}
|
|
|
|
|
|
@Login
|
|
|
- @GetMapping("用户搜索面试列表")
|
|
|
- @ApiOperation("selectInterviewListOfUser")
|
|
|
+ @GetMapping("selectInterviewListOfUser")
|
|
|
+ @ApiOperation("用户搜索面试列表")
|
|
|
public Result selectInterviewList(@RequestAttribute("userId")Long userId){
|
|
|
return Result.success().put("data",interviewRecordService.selectInterviewList(userId));
|
|
|
}
|
|
|
|
|
|
+ @Login
|
|
|
+ @PostMapping("addHrPhone")
|
|
|
+ @ApiOperation("新增岗位联系人")
|
|
|
+ public Result addHrPhone (@RequestAttribute("userID")Long userId, @RequestBody HrPhone hrPhone){
|
|
|
+ hrPhone.setUserId(Math.toIntExact(userId));
|
|
|
+ hrPhone.setIsUse(1);
|
|
|
+ hrPhoneService.saveOrUpdate(hrPhone);
|
|
|
+ return Result.success();
|
|
|
+ }
|
|
|
+ @Login
|
|
|
+ @PostMapping("selectHrPhone")
|
|
|
+ @ApiOperation("新增岗位联系人")
|
|
|
+ public Result selectHrPhone (@RequestAttribute("userID")Long userId){
|
|
|
+ return Result.success().put("data",hrPhoneService.getBaseMapper().selectList(new QueryWrapper<HrPhone>().eq("user_id",userId).eq("is_use",1)));
|
|
|
+ }
|
|
|
+ @Login
|
|
|
+ @PostMapping("deleteHrPhone")
|
|
|
+ @ApiOperation("删除联系人")
|
|
|
+ public Result deleteHrPhone ( @RequestBody HrPhone hrPhone){
|
|
|
+ HrPhone hrPhone1 =hrPhoneService.getById(hrPhone.getHrPhoneId());
|
|
|
+ hrPhone1.setIsUse(0);
|
|
|
+ hrPhoneService.updateById(hrPhone1);
|
|
|
+ return Result.success();
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
|