Skip to content

Commit

Permalink
fix cache key
Browse files Browse the repository at this point in the history
  • Loading branch information
caishunfeng committed Dec 9, 2021
1 parent 44ab8d6 commit 83a9f8f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public interface ProcessTaskRelationMapper extends BaseMapper<ProcessTaskRelatio
* @param processCode processCode
* @return ProcessTaskRelation list
*/
@Cacheable(sync = true)
@Cacheable(unless = "#result == null || #result.size() == 0")
List<ProcessTaskRelation> queryByProcessCode(@Param("projectCode") long projectCode,
@Param("processCode") long processCode);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public interface UserMapper extends BaseMapper<User> {
/**
* update
*/
@CacheEvict("#p0.id")
@CacheEvict(key = "#p0.id")
int updateById(@Param("et") User user);

/**
Expand Down

0 comments on commit 83a9f8f

Please sign in to comment.