/** 获取仪表属性列表 */ @ResourceMapping(value = "getMeteruseattributes") public JsonResult getMeteruseattributes(@RequestParam("meterId") String meterId) { JsonResult result = new JsonResult(); Set<Meteruseattribute> attrs = meteruseinfoService.getMeteruseattributeByMeterId(meterId); result.setData(new ArrayList<Meteruseattribute>(attrs)); return result; }
/** 返回所有支路信息 */ @SuppressWarnings("rawtypes") @ResourceMapping(value = "getCircuitinfos") public JsonResult getCircuitinfos(@RequestParam("buildId") String buildId) { JsonResult result = new JsonResult(); List list = new ArrayList(); if (StringUtils.hasLength(buildId)) { list = circuitinfoService.getCircuitComboTree(buildId); } else { list = circuitinfoService.getCircuitComboTree(""); } result.setData(list); return result; }