|
@@ -3,6 +3,7 @@ package com.persagy.proxy.adm.controller;
|
|
|
import cn.hutool.core.collection.CollUtil;
|
|
|
import com.persagy.proxy.adm.constant.AdmCommonConstant;
|
|
|
import com.persagy.proxy.adm.constant.AdmDictConstant;
|
|
|
+import com.persagy.proxy.adm.constant.enums.AdmDictCategoryEnum;
|
|
|
import com.persagy.proxy.adm.model.*;
|
|
|
import com.persagy.proxy.adm.request.AdmCreateRequest;
|
|
|
import com.persagy.proxy.adm.request.AdmQueryCriteria;
|
|
@@ -159,7 +160,7 @@ public class AdmDictController {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 查询项目下已有的设备类型带系统(废弃:数据中心无此接口)
|
|
|
+ * 查询项目下已有的设备类型带系统
|
|
|
* @param projectId
|
|
|
* @param request
|
|
|
* @return
|
|
@@ -168,10 +169,11 @@ public class AdmDictController {
|
|
|
@PostMapping("/system/equip/category")
|
|
|
@Deprecated
|
|
|
public AdmResponse querySystemEquipCategory(@QueryParam("projectId") String projectId,
|
|
|
- @RequestBody AdmDictQueryCriteria request) throws Exception {
|
|
|
+ @RequestBody AdmDict request) throws Exception {
|
|
|
// 组装上下文条件
|
|
|
InstanceUrlParam context = new InstanceUrlParam(groupCode, null, projectId, AdmCommonConstant.APP_ID);
|
|
|
- return AdmResponse.success(new ArrayList<>());
|
|
|
+ request.setType(AdmDictCategoryEnum.SYSTEM_EQUIP.getValue());
|
|
|
+ return service.queryCategory(context,request,AdmObjectType.class);
|
|
|
}
|
|
|
|
|
|
/**
|