|
@@ -341,7 +341,7 @@ public class OrgController extends ControllerSupport {
|
|
|
@GetMapping("/logo")
|
|
|
public void getLogo(@RequestParam("domain") String domain, HttpServletResponse response)
|
|
|
throws IOException {
|
|
|
- OrgEntity org = orgRepo.findRootOrg(domain);
|
|
|
+ OrgEntity org = orgRepo.findRootOrgByCode(domain);
|
|
|
DynamicEnumManager manager = OrgProperty.getDynamicEnumManager();
|
|
|
DynamicEnum de = manager.getByName("LOGO_PATH");
|
|
|
|
|
@@ -355,7 +355,7 @@ public class OrgController extends ControllerSupport {
|
|
|
@ApiOperation(value = "查询顶级机构")
|
|
|
@GetMapping("/getRootOrgByCode")
|
|
|
public OrgEntity getRootOrgByCode(@RequestParam("code") String code) throws IOException {
|
|
|
- OrgEntity org = orgRepo.findRootOrg(code);
|
|
|
+ OrgEntity org = orgRepo.findRootOrgByCode(code);
|
|
|
return org;
|
|
|
}
|
|
|
|