mirror of https://github.com/elunez/eladmin
add job CacheKey
parent
e7deb482d1
commit
f49680ad9b
|
@ -47,6 +47,10 @@ public interface CacheKey {
|
|||
* 部门
|
||||
*/
|
||||
String DEPT_ID = "dept::id:";
|
||||
/**
|
||||
* 岗位
|
||||
*/
|
||||
String JOB_ID = "job::id:";
|
||||
/**
|
||||
* 数据字典
|
||||
*/
|
||||
|
|
|
@ -100,7 +100,7 @@ public class JobServiceImpl implements JobService {
|
|||
public void delete(Set<Long> ids) {
|
||||
jobRepository.deleteAllByIdIn(ids);
|
||||
// 删除缓存
|
||||
redisUtils.delByKeys("job::id:", ids);
|
||||
redisUtils.delByKeys(CacheKey.JOB_ID, ids);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue