|
@@ -261,16 +261,19 @@ public class SysController {
|
|
|
@ApiResponses({@ApiResponse(code = 200, message = "机构信息", response = TBOrg.class)})
|
|
|
public Result queryByOrgCode(@ApiParam(value = "机构code", required = true) @RequestParam String code) {
|
|
|
Optional.ofNullable(code).orElseThrow(() -> new BusinessException(ExceptionResultEnum.ORG_CODE_IS_NULL));
|
|
|
+ Map<String, Object> map = new HashMap<>();
|
|
|
+ map.put(SystemConstant.VERSION, SystemConstant.VERSION_VALUE);
|
|
|
if (!Objects.equals(code.toUpperCase(), SystemConstant.ADMIN)) {
|
|
|
TBOrg tbOrg = themisCacheService.addOrgCodeCache(code);
|
|
|
Optional.ofNullable(tbOrg).orElseThrow(() -> new BusinessException(ExceptionResultEnum.ORG_NO));
|
|
|
authInfoService.appHasExpired(code);
|
|
|
- return ResultUtil.ok(Collections.singletonMap("logo", tbOrg.getLogo()));
|
|
|
+ map.put("logo", tbOrg.getLogo());
|
|
|
} else {
|
|
|
SysConfig sysConfig = themisCacheService.addSysConfigCache(SystemConstant.ADMIN_LOGO_URL);
|
|
|
Optional.ofNullable(sysConfig).orElseThrow(() -> new BusinessException("未配置超级管理员logo"));
|
|
|
- return ResultUtil.ok(Collections.singletonMap("logo", sysConfig.getConfigValue()));
|
|
|
+ map.put("logo", sysConfig.getConfigValue());
|
|
|
}
|
|
|
+ return ResultUtil.ok(map);
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "机构查询接口")
|