未验证 提交 4e6265df 编写于 作者: K Kerwin 提交者: GitHub

fix Property or field 'all' cannot be found (#7246)

上级 6a144d69
...@@ -771,4 +771,7 @@ public final class Constants { ...@@ -771,4 +771,7 @@ public final class Constants {
*/ */
public static final int DRY_RUN_FLAG_NO = 0; public static final int DRY_RUN_FLAG_NO = 0;
public static final int DRY_RUN_FLAG_YES = 1; public static final int DRY_RUN_FLAG_YES = 1;
public static final String CACHE_KEY_VALUE_ALL = "'all'";
} }
...@@ -17,6 +17,8 @@ ...@@ -17,6 +17,8 @@
package org.apache.dolphinscheduler.dao.mapper; package org.apache.dolphinscheduler.dao.mapper;
import static org.apache.dolphinscheduler.common.Constants.CACHE_KEY_VALUE_ALL;
import org.apache.dolphinscheduler.dao.entity.WorkerGroup; import org.apache.dolphinscheduler.dao.entity.WorkerGroup;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
...@@ -40,16 +42,16 @@ public interface WorkerGroupMapper extends BaseMapper<WorkerGroup> { ...@@ -40,16 +42,16 @@ public interface WorkerGroupMapper extends BaseMapper<WorkerGroup> {
* *
* @return worker group list * @return worker group list
*/ */
@Cacheable(sync = true, key = "all") @Cacheable(sync = true, key = CACHE_KEY_VALUE_ALL)
List<WorkerGroup> queryAllWorkerGroup(); List<WorkerGroup> queryAllWorkerGroup();
@CacheEvict(key = "all") @CacheEvict(key = CACHE_KEY_VALUE_ALL)
int deleteById(Integer id); int deleteById(Integer id);
@CacheEvict(key = "all") @CacheEvict(key = CACHE_KEY_VALUE_ALL)
int insert(WorkerGroup entity); int insert(WorkerGroup entity);
@CacheEvict(key = "all") @CacheEvict(key = CACHE_KEY_VALUE_ALL)
int updateById(@Param("et") WorkerGroup entity); int updateById(@Param("et") WorkerGroup entity);
/** /**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册