终端设置更新缓存

pull/9/head
RuoYi 5 years ago
parent 394bde5e8e
commit e76d087b21

@ -49,12 +49,4 @@ public interface ISysClientDetailsService
* @return
*/
public int deleteSysClientDetailsByIds(String[] clientIds);
/**
*
*
* @param clientId ID
* @return
*/
public int deleteSysClientDetailsById(String clientId);
}

@ -2,9 +2,11 @@ package com.ruoyi.system.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysClientDetailsMapper;
import com.ruoyi.common.core.constant.CacheConstants;
import com.ruoyi.system.domain.SysClientDetails;
import com.ruoyi.system.mapper.SysClientDetailsMapper;
import com.ruoyi.system.service.ISysClientDetailsService;
/**
@ -61,6 +63,7 @@ public class SysClientDetailsServiceImpl implements ISysClientDetailsService
* @return
*/
@Override
@CacheEvict(value = CacheConstants.CLIENT_DETAILS_KEY, key = "#sysClientDetails.clientId")
public int updateSysClientDetails(SysClientDetails sysClientDetails)
{
return sysClientDetailsMapper.updateSysClientDetails(sysClientDetails);
@ -73,20 +76,9 @@ public class SysClientDetailsServiceImpl implements ISysClientDetailsService
* @return
*/
@Override
@CacheEvict(value = CacheConstants.CLIENT_DETAILS_KEY, allEntries = true)
public int deleteSysClientDetailsByIds(String[] clientIds)
{
return sysClientDetailsMapper.deleteSysClientDetailsByIds(clientIds);
}
/**
*
*
* @param clientId ID
* @return
*/
@Override
public int deleteSysClientDetailsById(String clientId)
{
return sysClientDetailsMapper.deleteSysClientDetailsById(clientId);
}
}

Loading…
Cancel
Save