LideaLogDAO { public LideaLogResp scan(LideaLogReq req) { Scan scan = createScan(req); ResultsExtractor<List<LideaLogBO>> extractor = new LideaLogResultsExtractor(); List<LideaLogBO> list = hbaseTemplate.find(Const.LIDEA_LOG_TABLE, scan, extractor); LideaLogResp resp = new LideaLogResp(); resp.setData(list); resp.setAppName(req.getAppName()); resp.setServiceName(req.getServiceName()); resp.setMethodName(req.getMethodName()); return resp; }  void put(LideaLogBO bo); LideaLogResp scan(LideaLogReq req); LideaLogResp get(LideaLogReq req);  }
@Test public void testScan() { LideaLogReq req = new LideaLogReq(); req.setAppName("cabinet-base-server"); req.setServiceName("com.fcbox.edms.terminal.api.CabinetServiceFacade"); req.setMethodName("getCabinetInfo"); req.setFrom(TimeUtil.stringToLong("2019-07-20 00:00:00")); req.setTo(TimeUtil.stringToLong("2019-08-29 23:00:00")); LideaLogResp resp = lideaLogDAO.scan(req); System.out.println("=========================================================================================="); System.out.println(JSON.toJSONString(resp)); }