Commit 259dc624 authored by tianbo's avatar tianbo

actorref(amos-boot-module-jg): 优化使用单位信息获取逻辑

- 在 getUnitListByType 方法中增加对 "use" 类型的特殊处理 - 当 type 为 "use" 时,直接返回空列表,不暴露使用单位信息 - 调整代码结构,提高可读性和维护性
parent 873ce1a3
......@@ -827,10 +827,12 @@ public class CommonServiceImpl implements ICommonService {
@Override
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;
......@@ -844,7 +846,6 @@ public class CommonServiceImpl implements ICommonService {
type = "all";
break;
}
List<Map<String, Object>> unitList = new ArrayList<>(Collections.emptyList());
// 检验检测机构 追加车用气瓶
if ("检验检测机构".equals(type) && "gasCylindersForCars".equals(business)) {
List<DictionarieValueModel> result = Systemctl.dictionarieClient.dictValues("OLD_INSPECTION_TESTING_UNIT").getResult();
......
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