Commit bc3eb9f7 authored by tangwei's avatar tangwei

修改bug

parent 5cb6c8fa
...@@ -75,6 +75,9 @@ public class OrgPersonFormDto extends BaseEntity{ ...@@ -75,6 +75,9 @@ public class OrgPersonFormDto extends BaseEntity{
private String orgExpandAttr8; private String orgExpandAttr8;
//当前登录人id
private String userId;
public OrgPersonFormDto() { public OrgPersonFormDto() {
} }
......
...@@ -58,7 +58,7 @@ import io.swagger.annotations.ApiOperation; ...@@ -58,7 +58,7 @@ import io.swagger.annotations.ApiOperation;
@RestController @RestController
@Api(tags = "人员Api") @Api(tags = "人员Api")
@RequestMapping(value = "/org-person") @RequestMapping(value = "/org-person")
public class OrgPersonController { public class OrgPersonController extends BaseController {
@Autowired @Autowired
OrgUsrServiceImpl iOrgUsrService; OrgUsrServiceImpl iOrgUsrService;
@Autowired @Autowired
...@@ -124,11 +124,15 @@ public class OrgPersonController { ...@@ -124,11 +124,15 @@ public class OrgPersonController {
* @return * @return
* @throws Exception * @throws Exception
*/ */
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY) @TycloudOperation(ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/{id}", method = RequestMethod.GET) @RequestMapping(value = "/{id}", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "获取人员详情", notes = "获取人员详情") @ApiOperation(httpMethod = "GET", value = "获取人员详情", notes = "获取人员详情")
public ResponseModel<OrgPersonFormDto> selectById(HttpServletRequest request, @PathVariable Long id) throws Exception { public ResponseModel<OrgPersonFormDto> selectById(HttpServletRequest request, @PathVariable Long id) throws Exception {
return ResponseHelper.buildResponse(iOrgUsrService.selectPersonById(id));
OrgPersonFormDto orgPersonFormDto=iOrgUsrService.selectPersonById(id);
AgencyUserModel user = getUserInfo();
orgPersonFormDto.setUserId(user.getUserId());
return ResponseHelper.buildResponse(orgPersonFormDto);
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment