test_class.declarator: lideaLogService
test_class.modifier: @Resource
      private
test_class.original_string: @Resource
      private LideaLogService lideaLogService;
test_class.type: LideaLogService
test_class.var_name: lideaLogService
test_class.file: mmc-lidea-web/src/test/java/com/mmc/flink/lidea/service/LideaLogServiceTest.java
test_class.identifier: LideaLogServiceTest
test_case.body: @Test
      public void testList1() {
  
          LideaLogReq req = new LideaLogReq();
          req.setAppName("cabinet-base-server");
          req.setServiceName("com.fcbox.edms.terminal.api.CabinetServiceFacade");
          req.setMethodName("getCabinetInfo");
          req.setFrom(1565057370000L);
          req.setTo(1565057370000L);
          req.setSize(100);
  
          LideaLogErrorDetailResp resp = lideaLogService.listError(req);
  
          System.out.println("==========================================================================================");
          System.out.println(JSON.toJSONString(resp));
      }
test_case.class_method_signature: LideaLogServiceTest.testList1()
test_case.full_signature: @Test public void testList1()
test_case.identifier: testList1
test_case.invocations: setAppName setServiceName setMethodName setFrom setTo setSize listError println println toJSONString
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testList1()
focal_class.declarator: lideaLogDAO
focal_class.modifier: @Resource
      private
focal_class.original_string: @Resource
      private LideaLogDAO lideaLogDAO;
focal_class.type: LideaLogDAO
focal_class.var_name: lideaLogDAO
focal_class.declarator: lideaLogErrorDAO
focal_class.modifier: @Resource
      private
focal_class.original_string: @Resource
      private LideaLogErrorDAO lideaLogErrorDAO;
focal_class.type: LideaLogErrorDAO
focal_class.var_name: lideaLogErrorDAO
focal_class.declarator: lideaAppDAO
focal_class.modifier: @Resource
      private
focal_class.original_string: @Resource
      private LideaAppDAO lideaAppDAO;
focal_class.type: LideaAppDAO
focal_class.var_name: lideaAppDAO
focal_class.declarator: lideaMethodDAO
focal_class.modifier: @Resource
      private
focal_class.original_string: @Resource
      private LideaMethodDAO lideaMethodDAO;
focal_class.type: LideaMethodDAO
focal_class.var_name: lideaMethodDAO
focal_class.declarator: lideaServiceDAO
focal_class.modifier: @Resource
      private
focal_class.original_string: @Resource
      private LideaServiceDAO lideaServiceDAO;
focal_class.type: LideaServiceDAO
focal_class.var_name: lideaServiceDAO
focal_class.file: mmc-lidea-web/src/main/java/com/mmc/flink/lidea/service/LideaLogService.java
focal_class.identifier: LideaLogService
focal_class.class_method_signature: LideaLogService.listError(LideaLogReq req)
focal_class.full_signature: public LideaLogErrorDetailResp listError(LideaLogReq req)
focal_class.identifier: listError
focal_class.modifiers: public
focal_class.parameters: (LideaLogReq req)
focal_class.return: LideaLogErrorDetailResp
focal_class.signature: LideaLogErrorDetailResp listError(LideaLogReq req)
focal_class.class_method_signature: LideaLogService.listApps()
focal_class.full_signature: public LideaAppResp listApps()
focal_class.identifier: listApps
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: LideaAppResp
focal_class.signature: LideaAppResp listApps()
focal_class.class_method_signature: LideaLogService.listServices(LideaServiceReq req)
focal_class.full_signature: public LideaServiceResp listServices(LideaServiceReq req)
focal_class.identifier: listServices
focal_class.modifiers: public
focal_class.parameters: (LideaServiceReq req)
focal_class.return: LideaServiceResp
focal_class.signature: LideaServiceResp listServices(LideaServiceReq req)
focal_class.class_method_signature: LideaLogService.listMethods(LideaMethodReq req)
focal_class.full_signature: public LideaMethodResp listMethods(LideaMethodReq req)
focal_class.identifier: listMethods
focal_class.modifiers: public
focal_class.parameters: (LideaMethodReq req)
focal_class.return: LideaMethodResp
focal_class.signature: LideaMethodResp listMethods(LideaMethodReq req)
focal_class.class_method_signature: LideaLogService.listAccess(LideaLogReq req)
focal_class.full_signature: public LideaLogResp listAccess(LideaLogReq req)
focal_class.identifier: listAccess
focal_class.modifiers: public
focal_class.parameters: (LideaLogReq req)
focal_class.return: LideaLogResp
focal_class.signature: LideaLogResp listAccess(LideaLogReq req)
focal_method.body: public LideaLogErrorDetailResp listError(LideaLogReq req) {
  
          // 获取traceId列表
          LideaLogResp traceResp = null;
          if (req.getFrom() == req.getTo()) {
  
              traceResp = lideaLogDAO.get(req);
  
          } else {
  
              traceResp = lideaLogDAO.scan(req);
          }
  
          // 获取trace详情
          List<String> traceIds = traceResp.getData().stream().flatMap(m -> Arrays.stream(m.getTraceIds().split(","))).collect(Collectors.toList());
  
          List<LideaLogErrorDetailBO> datas = lideaLogErrorDAO.list(traceIds);
  
          LideaLogErrorDetailResp resp = new LideaLogErrorDetailResp();
          resp.setAppName(req.getAppName());
          resp.setServiceName(req.getServiceName());
          resp.setMethodName(req.getMethodName());
  
          resp.setData(datas);
  
          return resp;
      }
focal_method.class_method_signature: LideaLogService.listError(LideaLogReq req)
focal_method.full_signature: public LideaLogErrorDetailResp listError(LideaLogReq req)
focal_method.identifier: listError
focal_method.invocations: getFrom getTo get scan collect flatMap stream getData stream split getTraceIds toList list setAppName getAppName setServiceName getServiceName setMethodName getMethodName setData
focal_method.modifiers: public
focal_method.parameters: (LideaLogReq req)
focal_method.return: LideaLogErrorDetailResp
focal_method.signature: LideaLogErrorDetailResp listError(LideaLogReq req)