查询实例总数
parent
a816dffe8c
commit
26f1174134
|
@ -35,10 +35,8 @@ public class CmpInternalService implements InitializingBean {
|
|||
|
||||
public GeneralResult<JSONObject> list(Map<String,Object> params) {
|
||||
String url = "/v1/vms";
|
||||
log.info("params:{}", JSON.toJSONString(params));
|
||||
RemoteService remoteService = serviceFactory.build(SERVICE, url, HttpMethod.GET, headers, params);
|
||||
GeneralResult<?> result = remoteService.invoke();
|
||||
log.info("result:{}",JSON.toJSONString(result));
|
||||
if (result.isFailed()) {
|
||||
return new GeneralResult<>(false, result.getMessage());
|
||||
}
|
||||
|
|
|
@ -493,7 +493,7 @@ public class ModuleServiceImpl implements ModuleService {
|
|||
Param param = new Param();
|
||||
param.setParam(MapTools.simpleMap("moduleId", model.getId()));
|
||||
boolean adminRole = instanceService.checkAdminRole(userId);
|
||||
int count = instanceRepository.count((List<Param>) param, table, valueTable, userId, adminRole);
|
||||
int count = instanceRepository.count(paramList, table, valueTable, userId, adminRole);
|
||||
total+=count;
|
||||
}
|
||||
resultMap.put(rootGroup.getCode(), total);
|
||||
|
|
Loading…
Reference in New Issue