use of org.springframework.cache.annotation.CacheEvict in project fw-cloud-framework by liuweijw.
the class DictServiceImpl method delById.
@Override
@Transactional
@CacheEvict(allEntries = true)
public boolean delById(Integer id) {
if (null == id || id <= 0)
return Boolean.FALSE;
QDict qDict = QDict.dict;
long num = // 0 正常 1删除
this.queryFactory.update(qDict).set(qDict.statu, 1).where(qDict.id.eq(id.intValue())).execute();
return num > 0;
}
use of org.springframework.cache.annotation.CacheEvict in project fw-cloud-framework by liuweijw.
the class MenuServiceImpl method delById.
@Override
@Transactional
@CacheEvict(allEntries = true)
public boolean delById(Integer menuId) {
QMenu qMenu = QMenu.menu;
long num = this.queryFactory.delete(qMenu).where(qMenu.menuId.eq(menuId.intValue())).execute();
return num > 0;
}
use of org.springframework.cache.annotation.CacheEvict in project fw-cloud-framework by liuweijw.
the class RoleServiceImpl method delById.
@Override
@Transactional
@CacheEvict(allEntries = true)
public boolean delById(Integer roleId) {
if (null == roleId || roleId <= 0)
return Boolean.FALSE;
QRole qRole = QRole.role;
long num = this.queryFactory.update(qRole).set(qRole.statu, // 0 正常 1删除
1).where(qRole.roleId.eq(roleId.intValue())).execute();
return num > 0;
}
use of org.springframework.cache.annotation.CacheEvict in project fw-cloud-framework by liuweijw.
the class UserServiceImpl method delByUserId.
@Override
@Transactional
@CacheEvict(allEntries = true)
public Boolean delByUserId(Integer userId) {
if (null == userId || userId <= 0)
return Boolean.FALSE;
QUser qUser = QUser.user;
long num = // 0 正常 1删除
this.queryFactory.update(qUser).set(qUser.statu, 1).where(qUser.userId.eq(userId.intValue())).execute();
return num > 0;
}
Aggregations