Commit 73dff822 authored by tianbo's avatar tianbo

refactor(jg): 修改使用单位类型返回为空列表的逻辑

- 将 "use" 类型映射为 "使用单位"
parent 5a574e05
......@@ -828,11 +828,10 @@ public class CommonServiceImpl implements ICommonService {
public List<Map<String, Object>> getUnitListByType(String type, String business, Boolean needAuth) {
List<Map<String, Object>> unitList = new ArrayList<>(Collections.emptyList());
if (Objects.equals(type, "use")) {
// 该接口不暴露使用单位信息,返回空列表
return unitList;
}
switch (type) {
case "use":
type = "使用单位";
break;
case "maintenance":
type = "安装改造维修单位";
break;
......
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