...
|
...
|
@@ -423,6 +423,7 @@ public class MObjectInfoCtrl { |
|
|
|
|
|
/**
|
|
|
* 获取所有java app服务
|
|
|
*
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(value = "/javaapi")
|
...
|
...
|
@@ -445,18 +446,13 @@ public class MObjectInfoCtrl { |
|
|
if (null == allTypeInfo) {
|
|
|
return response;
|
|
|
}
|
|
|
String ids="";
|
|
|
for(TypeInfo type:allTypeInfo){
|
|
|
if(ids.equals(""))
|
|
|
ids+=type.getTypeId();
|
|
|
else
|
|
|
ids+=","+type.getTypeId();
|
|
|
ArrayList<Integer> ids = new ArrayList<>();
|
|
|
for (TypeInfo type : allTypeInfo) {
|
|
|
ids.add(type.getTypeId());
|
|
|
}
|
|
|
|
|
|
MObjectInfoReq req=new MObjectInfoReq();
|
|
|
req.setIsType(1);
|
|
|
req.setTypeIds(ids);
|
|
|
return queryMObjectByType(req);
|
|
|
List<MObjectInfo> javaApps = mobjectService.queryMObjectsInfoByTypes(ids);
|
|
|
response.setData(javaApps);
|
|
|
|
|
|
} catch (Exception e) {
|
|
|
DEBUG.error("Failed to query all typeInfo, error: {}", e);
|
...
|
...
|
|