mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-10-31 18:28:43 +08:00 
			
		
		
		
	增加 Spring Cache 框架
This commit is contained in:
		| @@ -1 +0,0 @@ | ||||
| package cn.iocoder.yudao.module.system.dal.dataobject; | ||||
| @@ -15,12 +15,14 @@ import java.util.List; | ||||
| public interface DeptMapper extends BaseMapperX<DeptDO> { | ||||
|  | ||||
|     default List<DeptDO> selectList(DeptListReqVO reqVO) { | ||||
|         return selectList(new LambdaQueryWrapperX<DeptDO>().likeIfPresent(DeptDO::getName, reqVO.getName()) | ||||
|         return selectList(new LambdaQueryWrapperX<DeptDO>() | ||||
|                 .likeIfPresent(DeptDO::getName, reqVO.getName()) | ||||
|                 .eqIfPresent(DeptDO::getStatus, reqVO.getStatus())); | ||||
|     } | ||||
|  | ||||
|     default DeptDO selectByParentIdAndName(Long parentId, String name) { | ||||
|         return selectOne(new LambdaQueryWrapper<DeptDO>().eq(DeptDO::getParentId, parentId) | ||||
|         return selectOne(new LambdaQueryWrapper<DeptDO>() | ||||
|                 .eq(DeptDO::getParentId, parentId) | ||||
|                 .eq(DeptDO::getName, name)); | ||||
|     } | ||||
|  | ||||
|   | ||||
| @@ -41,7 +41,7 @@ public class LoginUserRedisDAO { | ||||
|     } | ||||
|  | ||||
|     private static String formatKey(String sessionId) { | ||||
|         return String.format(LOGIN_USER.getKeyTemplate(), sessionId); | ||||
|         return LOGIN_USER.formatKey(sessionId); | ||||
|     } | ||||
|  | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 YunaiV
					YunaiV