Commit bc3eb9f7 authored by tangwei's avatar tangwei

修改bug

parent 5cb6c8fa
......@@ -75,6 +75,9 @@ public class OrgPersonFormDto extends BaseEntity{
private String orgExpandAttr8;
//当前登录人id
private String userId;
public OrgPersonFormDto() {
}
......
......@@ -58,7 +58,7 @@ import io.swagger.annotations.ApiOperation;
@RestController
@Api(tags = "人员Api")
@RequestMapping(value = "/org-person")
public class OrgPersonController {
public class OrgPersonController extends BaseController {
@Autowired
OrgUsrServiceImpl iOrgUsrService;
@Autowired
......@@ -124,11 +124,15 @@ public class OrgPersonController {
* @return
* @throws Exception
*/
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY)
@TycloudOperation(ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/{id}", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "获取人员详情", notes = "获取人员详情")
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