From 99d5c7a7b215afcaa9113218cc48f19241a4e9c4 Mon Sep 17 00:00:00 2001 From: lijianlin Date: Thu, 21 Aug 2025 10:50:20 +0800 Subject: [PATCH] =?UTF-8?q?8-21=20=E8=A7=92=E8=89=B2=E4=BC=98=E5=85=88?= =?UTF-8?q?=E7=BA=A7=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/example/demo/domain/entity/Role.java | 2 +- src/main/resources/mapper/RoleMapper.xml | 10 ++++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/example/demo/domain/entity/Role.java b/src/main/java/com/example/demo/domain/entity/Role.java index 2d9d42d..affc418 100644 --- a/src/main/java/com/example/demo/domain/entity/Role.java +++ b/src/main/java/com/example/demo/domain/entity/Role.java @@ -17,7 +17,7 @@ public class Role implements Serializable { private Integer id; // 角色id private String roleName; // 角色名 private String roleKey; // 角色标识符 - private Integer priority;//优先级 + // private Integer priority;//优先级 @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai") private Date createTime; // 创建时间 diff --git a/src/main/resources/mapper/RoleMapper.xml b/src/main/resources/mapper/RoleMapper.xml index e8a7096..ec1ddda 100644 --- a/src/main/resources/mapper/RoleMapper.xml +++ b/src/main/resources/mapper/RoleMapper.xml @@ -7,9 +7,7 @@ role_name = #{roleName}, - - priority = #{priority}, - + father_id = #{fatherId}, @@ -46,18 +44,18 @@ INSERT INTO role (role_name,father_id, market) - VALUES (#{roleName}, #{priority}, #{fatherId}, #{market}) + VALUES (#{roleName}, #{fatherId}, #{market})