|
|
@@ -1,11 +1,13 @@
|
|
|
package com.sqx.modules.firstLogin.control;
|
|
|
|
|
|
-import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
|
import com.sqx.common.utils.Result;
|
|
|
import com.sqx.modules.app.annotation.Login;
|
|
|
-import com.sqx.modules.firstLogin.entity.DepartmentEntity;
|
|
|
-import com.sqx.modules.firstLogin.entity.WorkExpEntity;
|
|
|
+import com.sqx.modules.firstLogin.entity.Department;
|
|
|
+import com.sqx.modules.firstLogin.entity.PostSkill;
|
|
|
+import com.sqx.modules.firstLogin.entity.WorkExp;
|
|
|
import com.sqx.modules.firstLogin.service.DepartmentService;
|
|
|
+import com.sqx.modules.firstLogin.service.WorkExpService;
|
|
|
+import com.sqx.modules.firstLogin.service.PostSkillService;
|
|
|
import com.sqx.modules.resumes.entity.Resumes;
|
|
|
import com.sqx.modules.resumes.service.ResumesService;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
@@ -22,12 +24,15 @@ public class UserFirstRegistCotroller {
|
|
|
private ResumesService resumesService;
|
|
|
@Autowired
|
|
|
private DepartmentService departmentService;
|
|
|
+ @Autowired
|
|
|
+ private WorkExpService workExpService;
|
|
|
+ @Autowired
|
|
|
+ private PostSkillService postSkillService;
|
|
|
|
|
|
@Login
|
|
|
@PostMapping("regist")
|
|
|
@ApiOperation("初次加载信息")
|
|
|
public void userFirstRegist(Long userId, String minWage, String maxWages, String city,Integer ifExp){
|
|
|
- System.out.println("?????????" + userId);
|
|
|
Resumes resumes1 = resumesService.selectResumesByUserId(userId);
|
|
|
resumes1.setCity(city);
|
|
|
resumes1.setIfExp(ifExp);
|
|
|
@@ -37,14 +42,31 @@ public class UserFirstRegistCotroller {
|
|
|
}
|
|
|
@GetMapping ("getDepartment" )
|
|
|
@ApiOperation("获取工作部门列表")
|
|
|
- public Result getDepartment(DepartmentEntity departmentEntity){
|
|
|
+ public Result getDepartment(Department department){
|
|
|
|
|
|
- return Result.success().put("data",departmentService.getDepartmentList(departmentEntity));
|
|
|
+ return Result.success().put("data",departmentService.getDepartmentList(department));
|
|
|
}
|
|
|
+ @GetMapping ("getPostSkill" )
|
|
|
+ @ApiOperation("获取专业技能")
|
|
|
+ public Result getPostSkill(PostSkill postSkill){
|
|
|
+ return Result.success().put("data",postSkillService.getPostSkill(postSkill));
|
|
|
+ }
|
|
|
|
|
|
@PostMapping("workExp")
|
|
|
@ApiOperation("工作经验")
|
|
|
- public void workExp(WorkExpEntity workExp){
|
|
|
+ public void workExp(Long userId,WorkExp workExp){
|
|
|
+ Resumes resumes1 = resumesService.selectResumesByUserId(userId);
|
|
|
+ WorkExp workExp1 = new WorkExp();
|
|
|
+ resumes1.setWorkExpId(Math.toIntExact(workExp1.getWorkExpId()));
|
|
|
+ resumesService.updateById(resumes1);
|
|
|
+ workExp1.setType(workExp.getType());
|
|
|
+ workExp1.setDepartment(workExp.getDepartment());
|
|
|
+ workExp1.setPostSkills(workExp.getPostSkills());
|
|
|
+ workExp1.setPostLevel(workExp.getPostLevel());
|
|
|
+ workExp1.setWorkContent(workExp.getWorkContent());
|
|
|
+ workExp1.setWorkAchieve(workExp.getWorkAchieve());
|
|
|
+ workExp1.setIndustry(workExp.getIndustry());
|
|
|
+ workExpService.updateById(workExp1);
|
|
|
}
|
|
|
@PostMapping("registe")
|
|
|
@ApiOperation("补充详细信息")
|