@Override @CacheEvict(value = CACHE_KEY, key = "'id:'+#id") public void disable(String id) { getMapper().update((UpdateParam) UpdateMapParam.build().set("enabled", false).where("id", id)); deleteJob(id); }
@Override @CacheEvict(value = CACHE_KEY, key = "'id:'+#id") public void enable(String id) { getMapper().update((UpdateParam) UpdateMapParam.build().set("enabled", true).where("id", id)); startJob(getMapper().selectByPk(id)); }