- List<EmsData> list;
- try {
- list = handler.getAll();
- } catch (ExtsysException error) {
- LOGGER.error("query all ems failed.errorMsg:" + error.getErrorMsg());
- return RestResponseUtil.getErrorResponse(error);
- }
- if (list == null || list.size() <= 0) {
- LOGGER.info("query all ems end.no match condition record");
- return RestResponseUtil.getSuccessResponse(new ArrayList<EmsRestData>());
- } else {
- LOGGER.info("query all ems end.size:" + list.size());
- ArrayList<EmsRestData> restList = new ArrayList<EmsRestData>();
- for (int i = 0; i < list.size(); i++) {
-// restList.add(new EmsRestData(list.get(i)));
- //TODO
- }
- return RestResponseUtil.getSuccessResponse(restList);
- }
-