Commit c2e09d4d authored by chenzhao's avatar chenzhao

增加接口

parent 1def55f8
......@@ -935,4 +935,16 @@ public class OrgUsrController extends BaseController {
List<OrgUsr> listByBizOrgTypeCode = iOrgUsrService.getListByBizOrgTypeCode(orgType, bizOrgCode);
return ResponseHelper.buildResponse(listByBizOrgTypeCode);
}
@TycloudOperation(ApiLevel = UserType.AGENCY)
@ApiOperation(httpMethod = "GET", value = "根据amosId返回单位code", notes = "根据amosId返回单位code")
@GetMapping(value = "/getBizByAmos")
public ResponseModel<String> getBizByAmos() throws Exception {
ReginParams selectedOrgInfo = getSelectedOrgInfo();
String userId = selectedOrgInfo.getUserModel().getUserId();
String parentId = iOrgUsrService.getParentId(userId);
OrgUsr orgUsr = iOrgUsrService.getById(parentId);
return ResponseHelper.buildResponse(orgUsr.getBizOrgCode());
}
}
\ No newline at end of file
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