服务指令bug

This commit is contained in:
1378012178@qq.com 2025-08-07 16:03:05 +08:00
parent a0ae7e07b8
commit 38aa454a51
1 changed files with 14 additions and 0 deletions

View File

@ -41,6 +41,20 @@ public class SysBaseInfoApi {
return Result.ok(result); return Result.ok(result);
} }
/**
* 根据机构编码获取机构协议域名
*
* @return
*/
@GetMapping("/getOrgUrlByOrgCode")
public Result<?> getOrgUrlByOrgCode(@RequestParam("orgCode") String orgCode) {
JSONObject deptInfo = sysBaseAPI.getOrgInfo(orgCode);
Map<String, Object> result = Maps.newHashMap();
String url = deptInfo.getString("url");
result.put("url", url.endsWith("/") ? url.substring(0, url.length() - 1) : url);
return Result.ok(result);
}
/** /**
* 根据机构编码获取机构api接口前缀 * 根据机构编码获取机构api接口前缀
* *