Commit fd453c0d305b0d21f939639961ac2db66651f92b
1 parent
52454200
Pc人才库
Showing
7 changed files
with
25 additions
and
4 deletions
Show diff stats
boot-nunu/src/main/java/com/softwarebr/nunu/BootNunuApplication.java
| @@ -21,7 +21,7 @@ public class BootNunuApplication { | @@ -21,7 +21,7 @@ public class BootNunuApplication { | ||
| 21 | 21 | ||
| 22 | public static void main(String[] args) { | 22 | public static void main(String[] args) { |
| 23 | //处理参数 | 23 | //处理参数 |
| 24 | - args = handlerArgs(args); | 24 | + // args = handlerArgs(args); |
| 25 | SpringApplication.run(BootNunuApplication.class, args); | 25 | SpringApplication.run(BootNunuApplication.class, args); |
| 26 | 26 | ||
| 27 | } | 27 | } |
boot-nunu/src/main/java/com/softwarebr/nunu/domain/VerifyPageTotal.java
| @@ -51,4 +51,7 @@ public class VerifyPageTotal { | @@ -51,4 +51,7 @@ public class VerifyPageTotal { | ||
| 51 | @ApiModelProperty(value = "招聘会资源", required = true, example = "10") | 51 | @ApiModelProperty(value = "招聘会资源", required = true, example = "10") |
| 52 | private Integer inviteCount; | 52 | private Integer inviteCount; |
| 53 | 53 | ||
| 54 | + @ApiModelProperty(value = "人才库", required = true, example = "10") | ||
| 55 | + private Integer talentCount; | ||
| 56 | + | ||
| 54 | } | 57 | } |
boot-nunu/src/main/java/com/softwarebr/nunu/json/admin/res/TalentDetailsResult.java
| @@ -94,5 +94,14 @@ public class TalentDetailsResult { | @@ -94,5 +94,14 @@ public class TalentDetailsResult { | ||
| 94 | @ApiModelProperty(value = "是否上架(0下架 1上架) ", required = true, example = "") | 94 | @ApiModelProperty(value = "是否上架(0下架 1上架) ", required = true, example = "") |
| 95 | private Integer upperStatus; | 95 | private Integer upperStatus; |
| 96 | 96 | ||
| 97 | + @ApiModelProperty(value = "期望工作省份", required = true, example = "") | ||
| 98 | + private Long provinceId; | ||
| 99 | + | ||
| 100 | + @ApiModelProperty(value = "期望工作城市", required = true, example = "") | ||
| 101 | + private Long cityId; | ||
| 102 | + | ||
| 103 | + @ApiModelProperty(value = "期望工作区县", required = true, example = "") | ||
| 104 | + private Long areaId; | ||
| 105 | + | ||
| 97 | 106 | ||
| 98 | } | 107 | } |
boot-nunu/src/main/java/com/softwarebr/nunu/json/admin/res/TalentResult.java
| @@ -32,6 +32,9 @@ public class TalentResult { | @@ -32,6 +32,9 @@ public class TalentResult { | ||
| 32 | @ApiModelProperty(value = "姓名", required = true, example = "") | 32 | @ApiModelProperty(value = "姓名", required = true, example = "") |
| 33 | private String name; | 33 | private String name; |
| 34 | 34 | ||
| 35 | + @ApiModelProperty(value = "性别", required = true, example = "") | ||
| 36 | + private String sex; | ||
| 37 | + | ||
| 35 | @ApiModelProperty(value = "简历封面图", required = true, example = "") | 38 | @ApiModelProperty(value = "简历封面图", required = true, example = "") |
| 36 | private String coverUri; | 39 | private String coverUri; |
| 37 | 40 |
boot-nunu/src/main/java/com/softwarebr/nunu/web/admin/AdminResController.java
| @@ -28,6 +28,7 @@ import com.softwarebr.nunu.util.AmountConversionUtil; | @@ -28,6 +28,7 @@ import com.softwarebr.nunu.util.AmountConversionUtil; | ||
| 28 | import io.swagger.annotations.Api; | 28 | import io.swagger.annotations.Api; |
| 29 | import io.swagger.annotations.ApiOperation; | 29 | import io.swagger.annotations.ApiOperation; |
| 30 | import io.swagger.annotations.ApiParam; | 30 | import io.swagger.annotations.ApiParam; |
| 31 | +import lombok.RequiredArgsConstructor; | ||
| 31 | import org.springframework.beans.factory.annotation.Autowired; | 32 | import org.springframework.beans.factory.annotation.Autowired; |
| 32 | import org.springframework.security.access.prepost.PreAuthorize; | 33 | import org.springframework.security.access.prepost.PreAuthorize; |
| 33 | import org.springframework.web.bind.annotation.*; | 34 | import org.springframework.web.bind.annotation.*; |
| @@ -75,7 +76,7 @@ public class AdminResController { | @@ -75,7 +76,7 @@ public class AdminResController { | ||
| 75 | @ApiOperation(value = "创新资源交易区状态数据统计", notes = "创新资源交易区状态数据统计", produces = "text/plain") | 76 | @ApiOperation(value = "创新资源交易区状态数据统计", notes = "创新资源交易区状态数据统计", produces = "text/plain") |
| 76 | @PreAuthorize("hasRole('res-project-query')") | 77 | @PreAuthorize("hasRole('res-project-query')") |
| 77 | @GetMapping("/v1/res/count") | 78 | @GetMapping("/v1/res/count") |
| 78 | - public JSONResult<VerifyPageTotal> getResCount(ProjectQueryParam param1, PropertyQueryParam param2, InviteQueryParam param3) { | 79 | + public JSONResult<VerifyPageTotal> getResCount(ProjectQueryParam param1, PropertyQueryParam param2, InviteQueryParam param3, TalentQueryParam param4) { |
| 79 | VerifyPageTotal verifyPageResult = new VerifyPageTotal(); | 80 | VerifyPageTotal verifyPageResult = new VerifyPageTotal(); |
| 80 | projectQueryHandle(param1); | 81 | projectQueryHandle(param1); |
| 81 | verifyPageResult.setProjectCount(projectService.count(param1)); | 82 | verifyPageResult.setProjectCount(projectService.count(param1)); |
| @@ -83,6 +84,8 @@ public class AdminResController { | @@ -83,6 +84,8 @@ public class AdminResController { | ||
| 83 | verifyPageResult.setPropertyCount(propertyService.count(param2)); | 84 | verifyPageResult.setPropertyCount(propertyService.count(param2)); |
| 84 | inviteQueryHandle(param3); | 85 | inviteQueryHandle(param3); |
| 85 | verifyPageResult.setInviteCount(inviteService.count(param3)); | 86 | verifyPageResult.setInviteCount(inviteService.count(param3)); |
| 87 | + talentQueryHandle(param4); | ||
| 88 | + verifyPageResult.setTalentCount(talentService.count(param4)); | ||
| 86 | return JSONResult.ok(verifyPageResult); | 89 | return JSONResult.ok(verifyPageResult); |
| 87 | } | 90 | } |
| 88 | 91 |
boot-nunu/src/main/java/com/softwarebr/nunu/web/api/ApiResController.java
| @@ -381,12 +381,12 @@ public class ApiResController { | @@ -381,12 +381,12 @@ public class ApiResController { | ||
| 381 | 381 | ||
| 382 | @ApiOperation(value = "需求发布-人才库简历") | 382 | @ApiOperation(value = "需求发布-人才库简历") |
| 383 | @PutMapping("access/v1/center/request/talent") | 383 | @PutMapping("access/v1/center/request/talent") |
| 384 | - public JSONResult<TalentResult> talentCreateV1(@Valid @RequestBody TalentParam param) { | 384 | + public JSONResult<TalentDetailsResult> talentCreateV1(@Valid @RequestBody TalentParam param) { |
| 385 | Long memberId = Long.valueOf(SecurityContextHolder.getSubject().getId()); | 385 | Long memberId = Long.valueOf(SecurityContextHolder.getSubject().getId()); |
| 386 | 386 | ||
| 387 | TalentParamDTO talentParamDTO = convertTo(param, TalentParamDTO.class); | 387 | TalentParamDTO talentParamDTO = convertTo(param, TalentParamDTO.class); |
| 388 | Talent talent = talentService.saveTalent(memberId, talentParamDTO); | 388 | Talent talent = talentService.saveTalent(memberId, talentParamDTO); |
| 389 | - TalentResult talentResult = ControllerPageHandle.convertTo(talent, TalentResult.class); | 389 | + TalentDetailsResult talentResult = ControllerPageHandle.convertTo(talent, TalentDetailsResult.class); |
| 390 | return JSONResult.ok(talentResult); | 390 | return JSONResult.ok(talentResult); |
| 391 | } | 391 | } |
| 392 | 392 |
boot-nunu/src/main/resources/application.properties
0 → 100644