@Test public void exists1() { DailyVO dailyVO = new DailyVO(); dailyVO.setDate(new Date(System.currentTimeMillis())); dailyService.exists(getUser().getId(), "", dailyVO.getDate()); }
@Override @LogMethod("检测日程记录是否存在") public boolean exists(String dailyId) { return dailyDAO.existsById(dailyId); }
DailyServiceImpl implements DailyService { @Override @LogMethod("检测日程记录是否存在") public boolean exists(String dailyId) { return dailyDAO.existsById(dailyId); } }
DailyServiceImpl implements DailyService { @Override @LogMethod("检测日程记录是否存在") public boolean exists(String dailyId) { return dailyDAO.existsById(dailyId); } @Autowired  DailyServiceImpl(DailyDAO dailyDAO, MongoTemplate mongoTemplate); }
DailyServiceImpl implements DailyService { @Override @LogMethod("检测日程记录是否存在") public boolean exists(String dailyId) { return dailyDAO.existsById(dailyId); } @Autowired  DailyServiceImpl(DailyDAO dailyDAO, MongoTemplate mongoTemplate); @Override @LogMethod("检测日程记录是否存在") boolean exists(String dailyId); @Override @LogMethod("查找日程记录") Daily getDaily(String userId, Date date); @Override @LogMethod("列出日程记录") List<Daily> listDaily(String userId, Date startDate, Date endDate); @Override @LogMethod("删除日程记录") void remove(String dailyId); @Override @LogMethod("添加日程记录") Daily saveDaily(String userId, DailyVO dailyVO); @Override @LogMethod("检测日程记录是否存在") boolean exists(String userId, String dailyId, Date date); @Override @LogMethod("更新日程记录") Daily updateDaily(String userId, String dailyId, DailyVO dailyVO); }
DailyServiceImpl implements DailyService { @Override @LogMethod("检测日程记录是否存在") public boolean exists(String dailyId) { return dailyDAO.existsById(dailyId); } @Autowired  DailyServiceImpl(DailyDAO dailyDAO, MongoTemplate mongoTemplate); @Override @LogMethod("检测日程记录是否存在") boolean exists(String dailyId); @Override @LogMethod("查找日程记录") Daily getDaily(String userId, Date date); @Override @LogMethod("列出日程记录") List<Daily> listDaily(String userId, Date startDate, Date endDate); @Override @LogMethod("删除日程记录") void remove(String dailyId); @Override @LogMethod("添加日程记录") Daily saveDaily(String userId, DailyVO dailyVO); @Override @LogMethod("检测日程记录是否存在") boolean exists(String userId, String dailyId, Date date); @Override @LogMethod("更新日程记录") Daily updateDaily(String userId, String dailyId, DailyVO dailyVO);  }