@Test public void testHadSync() { Assert.assertFalse(this.syncBaseService.hadSync("syncType", UUID.randomUUID().toString())); SyncBase syncBase = createInstance(null); String syncId = UUID.randomUUID().toString(); syncBase.setSyncCode(syncId); Assert.assertNull(syncBase.getId()); this.syncBaseService.save(syncBase); Assert.assertNotNull(syncBase.getId()); Assert.assertTrue(this.syncBaseService.hadSync("syncType", syncId)); }
public boolean hadSync(String syncType, String syncCode) { return this.syncBaseDao.hadSync(syncType, syncCode); }
SyncBaseServiceImpl extends DefaultCrudService<SyncBase> implements
  SyncBaseService { public boolean hadSync(String syncType, String syncCode) { return this.syncBaseDao.hadSync(syncType, syncCode); } }
SyncBaseServiceImpl extends DefaultCrudService<SyncBase> implements
  SyncBaseService { public boolean hadSync(String syncType, String syncCode) { return this.syncBaseDao.hadSync(syncType, syncCode); }  }
SyncBaseServiceImpl extends DefaultCrudService<SyncBase> implements
  SyncBaseService { public boolean hadSync(String syncType, String syncCode) { return this.syncBaseDao.hadSync(syncType, syncCode); }  SyncBaseDao getSyncBaseDao(); void setSyncBaseDao(SyncBaseDao syncBaseDao); boolean hadSync(String syncType, String syncCode); SyncBase load(String syncType, String syncCode); boolean hadGenerate(String syncTo, Long id); int updateStatus(Long id, int toStatus); int updateStatus(Long[] ids, int toStatus); int updateStatus2New(String syncType, List<String> syncCodes); int updateNewStatus2Done4ExcludeCode(String syncType,
                                              List<String> excludeSyncCodes); }
SyncBaseServiceImpl extends DefaultCrudService<SyncBase> implements
  SyncBaseService { public boolean hadSync(String syncType, String syncCode) { return this.syncBaseDao.hadSync(syncType, syncCode); }  SyncBaseDao getSyncBaseDao(); void setSyncBaseDao(SyncBaseDao syncBaseDao); boolean hadSync(String syncType, String syncCode); SyncBase load(String syncType, String syncCode); boolean hadGenerate(String syncTo, Long id); int updateStatus(Long id, int toStatus); int updateStatus(Long[] ids, int toStatus); int updateStatus2New(String syncType, List<String> syncCodes); int updateNewStatus2Done4ExcludeCode(String syncType,
                                              List<String> excludeSyncCodes);  }