提交 a9486bf9 authored 作者: ww1xhqc's avatar ww1xhqc

[数据模型] 去缓存

上级 dbbbf9cc
...@@ -31,7 +31,7 @@ public interface ModelService { ...@@ -31,7 +31,7 @@ public interface ModelService {
* @return * @return
* @throws SQLException * @throws SQLException
*/ */
@Cacheable(cacheNames = "tableInfos",sync = true) // @Cacheable(cacheNames = "tableInfos",sync = true)
Page<TableInfo> listAllEntities(SearchTableInfoVo searchTableInfoVo) throws SQLException; Page<TableInfo> listAllEntities(SearchTableInfoVo searchTableInfoVo) throws SQLException;
...@@ -49,7 +49,7 @@ public interface ModelService { ...@@ -49,7 +49,7 @@ public interface ModelService {
* @param searchColumnInfoVo * @param searchColumnInfoVo
* @return * @return
*/ */
@Cacheable(cacheNames = "tableInfos") // @Cacheable(cacheNames = "tableInfos")
List<ColumnInfo> showModelFields(SearchColumnInfoVo searchColumnInfoVo); List<ColumnInfo> showModelFields(SearchColumnInfoVo searchColumnInfoVo);
...@@ -59,8 +59,8 @@ public interface ModelService { ...@@ -59,8 +59,8 @@ public interface ModelService {
* @param tableVO * @param tableVO
* @return * @return
*/ */
@CachePut(cacheNames = "tableInfos") // @CachePut(cacheNames = "tableInfos")
@CacheEvict(cacheNames = "tableInfos",allEntries = true) // @CacheEvict(cacheNames = "tableInfos",allEntries = true)
TableInfo newTable(TableVO tableVO); TableInfo newTable(TableVO tableVO);
/** /**
...@@ -99,8 +99,8 @@ public interface ModelService { ...@@ -99,8 +99,8 @@ public interface ModelService {
* @param updateTableInfoVO * @param updateTableInfoVO
* @return * @return
*/ */
@CachePut(cacheNames = "tableInfos") // @CachePut(cacheNames = "tableInfos")
@CacheEvict(cacheNames = "tableInfos",allEntries = true) // @CacheEvict(cacheNames = "tableInfos",allEntries = true)
int updateTable(UpdateTableInfoVO updateTableInfoVO); int updateTable(UpdateTableInfoVO updateTableInfoVO);
...@@ -110,7 +110,7 @@ public interface ModelService { ...@@ -110,7 +110,7 @@ public interface ModelService {
* @param delTableVO * @param delTableVO
* @return * @return
*/ */
@CacheEvict(cacheNames = "tableInfos",allEntries = true) // @CacheEvict(cacheNames = "tableInfos",allEntries = true)
int delTable(DelTableVO delTableVO); int delTable(DelTableVO delTableVO);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论