|
|
@@ -24,6 +24,7 @@ import org.dromara.backstage.consumption.domain.bo.XfTermBo;
|
|
|
import org.dromara.backstage.consumption.domain.vo.XfTermVo;
|
|
|
import org.dromara.backstage.consumption.mapper.XfTermMapper;
|
|
|
import org.dromara.backstage.consumption.service.IXfTermService;
|
|
|
+import org.springframework.cache.annotation.CacheEvict;
|
|
|
import org.springframework.cache.annotation.Cacheable;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
@@ -187,6 +188,7 @@ public class XfTermServiceImpl implements IXfTermService {
|
|
|
* @param bo 消费设备
|
|
|
* @return 是否修改成功
|
|
|
*/
|
|
|
+ @CacheEvict(cacheNames = CacheNames.PT_PARAMETER, allEntries = true)
|
|
|
@Override
|
|
|
public Boolean updateByBo(XfTermBo bo) {
|
|
|
XfTerm update = MapstructUtils.convert(bo, XfTerm.class);
|
|
|
@@ -194,6 +196,7 @@ public class XfTermServiceImpl implements IXfTermService {
|
|
|
return baseMapper.updateById(update) > 0;
|
|
|
}
|
|
|
|
|
|
+ @CacheEvict(cacheNames = CacheNames.PT_PARAMETER, allEntries = true)
|
|
|
public Boolean updateParamByBo(XfTermParamBo bo){
|
|
|
XfTerm update = MapstructUtils.convert(bo, XfTerm.class);
|
|
|
return baseMapper.updateById(update) > 0;
|
|
|
@@ -228,6 +231,7 @@ public class XfTermServiceImpl implements IXfTermService {
|
|
|
* @return 是否删除成功
|
|
|
*/
|
|
|
@Override
|
|
|
+ @CacheEvict(cacheNames = CacheNames.PT_PARAMETER, allEntries = true)
|
|
|
public Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid) {
|
|
|
if(isValid){
|
|
|
//可以删除
|