|
@@ -5,6 +5,7 @@ import com.zjugis.framework.common.pojo.PageResult;
|
|
|
import com.zjugis.module.adm.controller.admin.staff.vo.records.RecordsPageReqVO;
|
|
|
import com.zjugis.module.adm.controller.admin.staff.vo.records.RecordsRespVO;
|
|
|
import com.zjugis.module.adm.convert.staff.RecordsConvert;
|
|
|
+import com.zjugis.module.adm.dal.dataobject.staff.StaffRecordSDO;
|
|
|
import com.zjugis.module.adm.service.staff.RecordsService;
|
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
@@ -15,6 +16,7 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
import javax.validation.Valid;
|
|
|
+import javax.validation.constraints.NotNull;
|
|
|
|
|
|
import static com.zjugis.framework.common.pojo.CommonResult.success;
|
|
|
|
|
@@ -37,4 +39,13 @@ public class StaffRecordsController {
|
|
|
public CommonResult<PageResult<RecordsRespVO>> getRecordsPage(@Valid RecordsPageReqVO reqVO) {
|
|
|
return success(RecordsConvert.INSTANCE.convertPage(recordsService.getRecordsPage(reqVO)));
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ @GetMapping("/detail")
|
|
|
+ @Operation(summary = "我的档案")
|
|
|
+ public CommonResult<StaffRecordSDO> getStuffDetail(@Valid @NotNull(message = "用户id不能为空") String userId) {
|
|
|
+ return success(recordsService.getRecordDetail(userId));
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
}
|