test_class.declarator: logService
test_class.modifier: @Autowired
      private
test_class.original_string: @Autowired
      private LogService logService;
test_class.type: LogService
test_class.var_name: logService
test_class.file: myth-admin/src/test/java/org/dromara/myth/admin/service/log/RedisLogServiceImplTest.java
test_class.identifier: RedisLogServiceImplTest
test_case.body: @Test
      public void listByPage() {
  
          ConditionQuery query = new ConditionQuery();
  
          query.setApplicationName("alipay-service");
  
          PageParameter pageParameter = new PageParameter(1, 1);
  
          query.setPageParameter(pageParameter);
  
          query.setRetry(2);
  
          query.setTransId("2075304338");
  
          final CommonPager<LogVO> voCommonPager = logService.listByPage(query);
  
  
      }
test_case.class_method_signature: RedisLogServiceImplTest.listByPage()
test_case.full_signature: @Test public void listByPage()
test_case.identifier: listByPage
test_case.invocations: setApplicationName setPageParameter setRetry setTransId listByPage
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void listByPage()
focal_class.declarator: jedisClient
focal_class.modifier: private final
focal_class.original_string: private final JedisClient jedisClient;
focal_class.type: JedisClient
focal_class.var_name: jedisClient
focal_class.declarator: objectSerializer
focal_class.modifier: private final
focal_class.original_string: private final ObjectSerializer objectSerializer;
focal_class.type: ObjectSerializer
focal_class.var_name: objectSerializer
focal_class.file: myth-admin/src/main/java/org/dromara/myth/admin/service/log/RedisLogServiceImpl.java
focal_class.identifier: RedisLogServiceImpl
focal_class.interfaces: implements LogService
focal_class.class_method_signature: RedisLogServiceImpl.listByPage(final ConditionQuery query)
focal_class.full_signature: @Override public CommonPager<LogVO> listByPage(final ConditionQuery query)
focal_class.identifier: listByPage
focal_class.modifiers: @Override public
focal_class.parameters: (final ConditionQuery query)
focal_class.return: CommonPager<LogVO>
focal_class.signature: CommonPager<LogVO> listByPage(final ConditionQuery query)
focal_class.class_method_signature: RedisLogServiceImpl.batchRemove(final List<String> ids, final String appName)
focal_class.full_signature: @Override public Boolean batchRemove(final List<String> ids, final String appName)
focal_class.identifier: batchRemove
focal_class.modifiers: @Override public
focal_class.parameters: (final List<String> ids, final String appName)
focal_class.return: Boolean
focal_class.signature: Boolean batchRemove(final List<String> ids, final String appName)
focal_class.class_method_signature: RedisLogServiceImpl.updateRetry(final String id, final Integer retry, final String appName)
focal_class.full_signature: @Override public Boolean updateRetry(final String id, final Integer retry, final String appName)
focal_class.identifier: updateRetry
focal_class.modifiers: @Override public
focal_class.parameters: (final String id, final Integer retry, final String appName)
focal_class.return: Boolean
focal_class.signature: Boolean updateRetry(final String id, final Integer retry, final String appName)
focal_class.class_method_signature: RedisLogServiceImpl.findAll(final Set<byte[]> keys)
focal_class.full_signature: private List<LogVO> findAll(final Set<byte[]> keys)
focal_class.identifier: findAll
focal_class.modifiers: private
focal_class.parameters: (final Set<byte[]> keys)
focal_class.return: List<LogVO>
focal_class.signature: List<LogVO> findAll(final Set<byte[]> keys)
focal_class.class_method_signature: RedisLogServiceImpl.findByPage(final Set<byte[]> keys, final int start, final int pageSize)
focal_class.full_signature: private List<LogVO> findByPage(final Set<byte[]> keys, final int start, final int pageSize)
focal_class.identifier: findByPage
focal_class.modifiers: private
focal_class.parameters: (final Set<byte[]> keys, final int start, final int pageSize)
focal_class.return: List<LogVO>
focal_class.signature: List<LogVO> findByPage(final Set<byte[]> keys, final int start, final int pageSize)
focal_class.class_method_signature: RedisLogServiceImpl.buildVOByKey(final byte[] key)
focal_class.full_signature: private LogVO buildVOByKey(final byte[] key)
focal_class.identifier: buildVOByKey
focal_class.modifiers: private
focal_class.parameters: (final byte[] key)
focal_class.return: LogVO
focal_class.signature: LogVO buildVOByKey(final byte[] key)
focal_method.body: @Override
      public CommonPager<LogVO> listByPage(final ConditionQuery query) {
          CommonPager<LogVO> commonPager = new CommonPager<>();
          final String redisKeyPrefix =
                  RepositoryPathUtils.buildRedisKeyPrefix(query.getApplicationName());
          final int currentPage = query.getPageParameter().getCurrentPage();
          final int pageSize = query.getPageParameter().getPageSize();
          int start = (currentPage - 1) * pageSize;
          //获取所有的key
          Set<byte[]> keys;
          List<LogVO> voList;
          int totalCount;
          //如果只查 重试条件的
          if (StringUtils.isBlank(query.getTransId())) {
              keys = jedisClient.keys((redisKeyPrefix + "*").getBytes());
              if (keys.size() <= 0 || keys.size() < start) {
                  return commonPager;
              }
              totalCount = keys.size();
              voList = findByPage(keys, start, pageSize);
          } else {
              keys = Sets.newHashSet(String.join(":", redisKeyPrefix, query.getTransId()).getBytes());
              totalCount = keys.size();
              voList = findAll(keys);
          }
          if (keys.size() <= 0 || keys.size() < start) {
              return commonPager;
          }
          commonPager.setPage(PageHelper.buildPage(query.getPageParameter(), totalCount));
          commonPager.setDataList(voList);
          return commonPager;
      }
focal_method.class_method_signature: RedisLogServiceImpl.listByPage(final ConditionQuery query)
focal_method.full_signature: @Override public CommonPager<LogVO> listByPage(final ConditionQuery query)
focal_method.identifier: listByPage
focal_method.invocations: buildRedisKeyPrefix getApplicationName getCurrentPage getPageParameter getPageSize getPageParameter isBlank getTransId keys getBytes size size size findByPage newHashSet getBytes join getTransId size findAll size size setPage buildPage getPageParameter setDataList
focal_method.modifiers: @Override public
focal_method.parameters: (final ConditionQuery query)
focal_method.return: CommonPager<LogVO>
focal_method.signature: CommonPager<LogVO> listByPage(final ConditionQuery query)