|
@@ -27,7 +27,7 @@ import java.util.List;
|
|
|
import static com.citu.framework.apilog.core.enums.OperateTypeEnum.EXPORT;
|
|
import static com.citu.framework.apilog.core.enums.OperateTypeEnum.EXPORT;
|
|
|
import static com.citu.framework.common.pojo.CommonResult.success;
|
|
import static com.citu.framework.common.pojo.CommonResult.success;
|
|
|
|
|
|
|
|
-@Tag(name = "管理后台 - 人才信息-个人档案")
|
|
|
|
|
|
|
+@Tag(name = "管理后台 - 人才信息-人才档案")
|
|
|
@RestController
|
|
@RestController
|
|
|
@RequestMapping("/menduner/system/person-info")
|
|
@RequestMapping("/menduner/system/person-info")
|
|
|
@Validated
|
|
@Validated
|
|
@@ -37,14 +37,14 @@ public class PersonInfoController {
|
|
|
private PersonInfoService personInfoService;
|
|
private PersonInfoService personInfoService;
|
|
|
|
|
|
|
|
@PostMapping("/create")
|
|
@PostMapping("/create")
|
|
|
- @Operation(summary = "创建人才信息-个人档案")
|
|
|
|
|
|
|
+ @Operation(summary = "创建人才信息-人才档案")
|
|
|
@PreAuthorize("@ss.hasPermission('menduner:system:person-info:create')")
|
|
@PreAuthorize("@ss.hasPermission('menduner:system:person-info:create')")
|
|
|
public CommonResult<Long> createUserInfo(@Valid @RequestBody PersonInfoSaveReqVO createReqVO) {
|
|
public CommonResult<Long> createUserInfo(@Valid @RequestBody PersonInfoSaveReqVO createReqVO) {
|
|
|
return success(personInfoService.createUserInfo(createReqVO));
|
|
return success(personInfoService.createUserInfo(createReqVO));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@PutMapping("/update")
|
|
@PutMapping("/update")
|
|
|
- @Operation(summary = "更新人才信息-个人档案")
|
|
|
|
|
|
|
+ @Operation(summary = "更新人才信息-人才档案")
|
|
|
@PreAuthorize("@ss.hasPermission('menduner:system:person-info:update')")
|
|
@PreAuthorize("@ss.hasPermission('menduner:system:person-info:update')")
|
|
|
public CommonResult<Boolean> updateUserInfo(@Valid @RequestBody PersonInfoSaveReqVO updateReqVO) {
|
|
public CommonResult<Boolean> updateUserInfo(@Valid @RequestBody PersonInfoSaveReqVO updateReqVO) {
|
|
|
personInfoService.updateUserInfo(updateReqVO);
|
|
personInfoService.updateUserInfo(updateReqVO);
|
|
@@ -52,7 +52,7 @@ public class PersonInfoController {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@DeleteMapping("/delete")
|
|
@DeleteMapping("/delete")
|
|
|
- @Operation(summary = "删除人才信息-个人档案")
|
|
|
|
|
|
|
+ @Operation(summary = "删除人才信息-人才档案")
|
|
|
@Parameter(name = "id", description = "编号", required = true)
|
|
@Parameter(name = "id", description = "编号", required = true)
|
|
|
@PreAuthorize("@ss.hasPermission('menduner:system:person-info:delete')")
|
|
@PreAuthorize("@ss.hasPermission('menduner:system:person-info:delete')")
|
|
|
public CommonResult<Boolean> deleteUserInfo(@RequestParam("id") Long id) {
|
|
public CommonResult<Boolean> deleteUserInfo(@RequestParam("id") Long id) {
|
|
@@ -61,7 +61,7 @@ public class PersonInfoController {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@GetMapping("/get")
|
|
@GetMapping("/get")
|
|
|
- @Operation(summary = "获得人才信息-个人档案")
|
|
|
|
|
|
|
+ @Operation(summary = "获得人才信息-人才档案")
|
|
|
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
|
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
|
|
@PreAuthorize("@ss.hasPermission('menduner:system:person-info:query')")
|
|
@PreAuthorize("@ss.hasPermission('menduner:system:person-info:query')")
|
|
|
public CommonResult<PersonInfoRespVO> getUserInfo(@RequestParam("id") Long id) {
|
|
public CommonResult<PersonInfoRespVO> getUserInfo(@RequestParam("id") Long id) {
|
|
@@ -70,7 +70,7 @@ public class PersonInfoController {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@GetMapping("/page")
|
|
@GetMapping("/page")
|
|
|
- @Operation(summary = "获得人才信息-个人档案分页")
|
|
|
|
|
|
|
+ @Operation(summary = "获得人才信息-人才档案分页")
|
|
|
@PreAuthorize("@ss.hasPermission('menduner:system:person-info:query')")
|
|
@PreAuthorize("@ss.hasPermission('menduner:system:person-info:query')")
|
|
|
public CommonResult<PageResult<PersonInfoRespVO>> getUserInfoPage(@Valid PersonInfoPageReqVO pageReqVO) {
|
|
public CommonResult<PageResult<PersonInfoRespVO>> getUserInfoPage(@Valid PersonInfoPageReqVO pageReqVO) {
|
|
|
PageResult<PersonInfoDO> pageResult = personInfoService.getUserInfoPage(pageReqVO);
|
|
PageResult<PersonInfoDO> pageResult = personInfoService.getUserInfoPage(pageReqVO);
|
|
@@ -78,7 +78,7 @@ public class PersonInfoController {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@GetMapping("/export-excel")
|
|
@GetMapping("/export-excel")
|
|
|
- @Operation(summary = "导出人才信息-个人档案 Excel")
|
|
|
|
|
|
|
+ @Operation(summary = "导出人才信息-人才档案 Excel")
|
|
|
@PreAuthorize("@ss.hasPermission('menduner:system:person-info:export')")
|
|
@PreAuthorize("@ss.hasPermission('menduner:system:person-info:export')")
|
|
|
@ApiAccessLog(operateType = EXPORT)
|
|
@ApiAccessLog(operateType = EXPORT)
|
|
|
public void exportUserInfoExcel(@Valid PersonInfoPageReqVO pageReqVO,
|
|
public void exportUserInfoExcel(@Valid PersonInfoPageReqVO pageReqVO,
|
|
@@ -86,7 +86,7 @@ public class PersonInfoController {
|
|
|
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
|
|
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
|
|
|
List<PersonInfoDO> list = personInfoService.getUserInfoPage(pageReqVO).getList();
|
|
List<PersonInfoDO> list = personInfoService.getUserInfoPage(pageReqVO).getList();
|
|
|
// 导出 Excel
|
|
// 导出 Excel
|
|
|
- ExcelUtils.write(response, "人才信息-个人档案.xls", "数据", PersonInfoRespVO.class,
|
|
|
|
|
|
|
+ ExcelUtils.write(response, "人才信息-人才档案.xls", "数据", PersonInfoRespVO.class,
|
|
|
BeanUtils.toBean(list, PersonInfoRespVO.class));
|
|
BeanUtils.toBean(list, PersonInfoRespVO.class));
|
|
|
}
|
|
}
|
|
|
|
|
|