浏览代码

接口修改

xiao547607 3 年之前
父节点
当前提交
fa47f70601

+ 7 - 1
web/src/main/java/com/jpsoft/employment/modules/mobile/controller/ResumeApiController.java

@@ -80,6 +80,9 @@ public class ResumeApiController {
     @Autowired
     private CityService cityService;
 
+    @Autowired
+    private WorkCategoryService workCategoryService;
+
 
     private Logger logger = LoggerFactory.getLogger(getClass());
 
@@ -271,7 +274,10 @@ public class ResumeApiController {
             resume.setWorkExpName(dataDictionaryService.getName(resume.getWorkExp()));
             resume.setEducationName(dataDictionaryService.getName(resume.getEducation()));
             resume.setJobStatusName(dataDictionaryService.getName(resume.getJobStatus()));
-            resume.setPositionCategoryName(dataDictionaryService.getName(resume.getPositionCategoryId()));
+            WorkCategory workCategory = workCategoryService.get(resume.getPositionCategoryId());
+            if(workCategory != null) {
+                resume.setPositionCategoryName(workCategory.getName());
+            }
             if(resume.getUserIsAuthentication() == "1")
                 resume.setUserIsAuthenticationName("已实名");
             else