@Test public void testMysql_getLogquery() { log.debug("start to test query from mysql"); SqlSessionFactory sqlSessionFactory = (SqlSessionFactory) applicationContext.getBean("sqlSessionFactory"); SqlSession sqlSession = SqlSessionUtils.getSqlSession(sqlSessionFactory); LogQuery logQuey = mysqlService.queryLogQuery(1); log.debug(String.format("porter.create time:%s, LogQuery:%s", logQuey.getCreateTime(), logQuey.toString())); assertThat(logQuey).isNotNull(); }
public LogQuery queryLogQuery(int id) { return logQueryMapper.getById(id); }
MysqlService { public LogQuery queryLogQuery(int id) { return logQueryMapper.getById(id); } }
MysqlService { public LogQuery queryLogQuery(int id) { return logQueryMapper.getById(id); }  }
MysqlService { public LogQuery queryLogQuery(int id) { return logQueryMapper.getById(id); }  void trunkSave(Trunk trunk); List<Trunk> list(); void batchDelete(List<String> trunks); Notice getNotice(); int insertPorter(Porter porter); Porter queryPorter(int id); List<Porter> queryPorters(); void deletePorter(int id); LogQuery queryLogQuery(int id); List<LogQuery> queryLogQuery(); int insertLogQuery(LogQuery query); void updateLogQuery(LogQuery query); void deleteLogQuery(LogQuery query); void deleteLogQuery(int id); List<Integer> queryLogQueryIdsByNonSuccessStatus(); List<Integer> queryLogQueryIdsBySuccessStatus(); List<SlotNotice> querySlotNotice(); Map<Long, Integer> selectStaticCount(Long startTime, Long endTime, Integer test); List<SlotNotice> filterSlotNoticeByExpireAndDecision(Long expire, String decision); List<StrategyCust> queryStrategyCust(); StrategyCust queryStrategyCust(int id); List<String> selectStrategyCustNameByTags(List<String> tags); List<SlotNotice> querySlotNoticeAtAggregate(SlotNoticeService.Criteria criteria, int offset, Integer rowCount); List<SlotNotice> querySlotNoticeAtNonAggregate(SlotNoticeService.Criteria criteria, int offset, Integer rowCount); int selectSlotNoticeCountAtAggregate(SlotNoticeService.Criteria criteria); int selectSlotNoticeCountAtNonAggregate(SlotNoticeService.Criteria criteria); List<Long> SelectSlotNoticeIdByExpireAndDecision(); void addSlotNotice(final List<SlotNotice> notices); void addSlotNotice(final SlotNotice notice); void deleteNotice(final String key, final Long fromtime, final Long endtime); }
MysqlService { public LogQuery queryLogQuery(int id) { return logQueryMapper.getById(id); }  void trunkSave(Trunk trunk); List<Trunk> list(); void batchDelete(List<String> trunks); Notice getNotice(); int insertPorter(Porter porter); Porter queryPorter(int id); List<Porter> queryPorters(); void deletePorter(int id); LogQuery queryLogQuery(int id); List<LogQuery> queryLogQuery(); int insertLogQuery(LogQuery query); void updateLogQuery(LogQuery query); void deleteLogQuery(LogQuery query); void deleteLogQuery(int id); List<Integer> queryLogQueryIdsByNonSuccessStatus(); List<Integer> queryLogQueryIdsBySuccessStatus(); List<SlotNotice> querySlotNotice(); Map<Long, Integer> selectStaticCount(Long startTime, Long endTime, Integer test); List<SlotNotice> filterSlotNoticeByExpireAndDecision(Long expire, String decision); List<StrategyCust> queryStrategyCust(); StrategyCust queryStrategyCust(int id); List<String> selectStrategyCustNameByTags(List<String> tags); List<SlotNotice> querySlotNoticeAtAggregate(SlotNoticeService.Criteria criteria, int offset, Integer rowCount); List<SlotNotice> querySlotNoticeAtNonAggregate(SlotNoticeService.Criteria criteria, int offset, Integer rowCount); int selectSlotNoticeCountAtAggregate(SlotNoticeService.Criteria criteria); int selectSlotNoticeCountAtNonAggregate(SlotNoticeService.Criteria criteria); List<Long> SelectSlotNoticeIdByExpireAndDecision(); void addSlotNotice(final List<SlotNotice> notices); void addSlotNotice(final SlotNotice notice); void deleteNotice(final String key, final Long fromtime, final Long endtime);  }