@Test public void invalidMs() { redisMsService.invalidMs(tacMsDO.getCode()); TacMsDO ms = redisMsService.getMs(tacMsDO.getCode()); assertTrue(ms == null || ms.getStatus().equals(TacMsStatus.INVALID.code())); }
@Override public Boolean invalidMs(String msCode) { TacMsDO ms = this.getMs(msCode); if (ms == null) { return true; } ms.setStatus(TacMsStatus.INVALID.code()); return this.updateMs(msCode, ms); }
RedisMsService implements IMsService { @Override public Boolean invalidMs(String msCode) { TacMsDO ms = this.getMs(msCode); if (ms == null) { return true; } ms.setStatus(TacMsStatus.INVALID.code()); return this.updateMs(msCode, ms); } }
RedisMsService implements IMsService { @Override public Boolean invalidMs(String msCode) { TacMsDO ms = this.getMs(msCode); if (ms == null) { return true; } ms.setStatus(TacMsStatus.INVALID.code()); return this.updateMs(msCode, ms); }  }
RedisMsService implements IMsService { @Override public Boolean invalidMs(String msCode) { TacMsDO ms = this.getMs(msCode); if (ms == null) { return true; } ms.setStatus(TacMsStatus.INVALID.code()); return this.updateMs(msCode, ms); }  @Override TacMsDO createMs(TacMsDO tacMsDO); @Override Boolean removeMs(String msCode); @Override Boolean invalidMs(String msCode); @Override Boolean updateMs(String msCode, TacMsDO tacMsDO); @Override TacMsDO getMs(String msCode); @Override List<TacMsDO> getAllMs(); }
RedisMsService implements IMsService { @Override public Boolean invalidMs(String msCode) { TacMsDO ms = this.getMs(msCode); if (ms == null) { return true; } ms.setStatus(TacMsStatus.INVALID.code()); return this.updateMs(msCode, ms); }  @Override TacMsDO createMs(TacMsDO tacMsDO); @Override Boolean removeMs(String msCode); @Override Boolean invalidMs(String msCode); @Override Boolean updateMs(String msCode, TacMsDO tacMsDO); @Override TacMsDO getMs(String msCode); @Override List<TacMsDO> getAllMs();  }