From 43b31edb757fdbc002a2ab32e976ac9d179cf20d Mon Sep 17 00:00:00 2001 From: konbai <1527468660@qq.com> Date: 星期二, 20 十二月 2022 00:03:01 +0800 Subject: [PATCH] add 增加 RedisUtils 检查缓存对象是否存在方法 --- ruoyi-system/src/main/java/com/ruoyi/system/domain/SysRoleDept.java | 10 +++------- 1 files changed, 3 insertions(+), 7 deletions(-) diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/SysRoleDept.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/SysRoleDept.java index 8c93bad..38e7048 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/domain/SysRoleDept.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/SysRoleDept.java @@ -1,10 +1,9 @@ package com.ruoyi.system.domain; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import lombok.Data; -import lombok.experimental.Accessors; /** * 瑙掕壊鍜岄儴闂ㄥ叧鑱� sys_role_dept @@ -13,21 +12,18 @@ */ @Data -@Accessors(chain = true) @TableName("sys_role_dept") -@ApiModel("瑙掕壊鍜岄儴闂ㄥ叧鑱�") public class SysRoleDept { /** * 瑙掕壊ID */ - @ApiModelProperty(value = "瑙掕壊ID") + @TableId(type = IdType.INPUT) private Long roleId; /** * 閮ㄩ棬ID */ - @ApiModelProperty(value = "閮ㄩ棬ID") private Long deptId; } -- Gitblit v1.9.3