From f73334995d3eea57dac061d768ecf448384bd5bf Mon Sep 17 00:00:00 2001 From: zch Date: Fri, 6 Jun 2025 15:17:02 +0800 Subject: [PATCH] =?UTF-8?q?feat(user):=20=E7=94=A8=E6=88=B7=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E6=A0=87=E8=AE=B0=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 SysDeptMapper、SysRoleMapper 和 SysUserMapper 中添加 del_flag 字段 - 设置新记录的 del_flag 默认值为 0 - 用于标记用户是否被删除,0 表示未删除,1 表示已删除 --- .../src/main/resources/mapper/system/SysDeptMapper.xml | 6 ++++-- .../src/main/resources/mapper/system/SysRoleMapper.xml | 6 ++++-- .../src/main/resources/mapper/system/SysUserMapper.xml | 2 ++ 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/os-system/src/main/resources/mapper/system/SysDeptMapper.xml b/os-system/src/main/resources/mapper/system/SysDeptMapper.xml index 76bc298..4726cb1 100644 --- a/os-system/src/main/resources/mapper/system/SysDeptMapper.xml +++ b/os-system/src/main/resources/mapper/system/SysDeptMapper.xml @@ -102,7 +102,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" email, status, create_by, - create_time + create_time, + del_flag )values( #{deptId}, #{parentId}, @@ -114,7 +115,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" #{email}, #{status}, #{createBy}, - now() + now(), + '0' ) diff --git a/os-system/src/main/resources/mapper/system/SysRoleMapper.xml b/os-system/src/main/resources/mapper/system/SysRoleMapper.xml index b1815d1..15d5d08 100644 --- a/os-system/src/main/resources/mapper/system/SysRoleMapper.xml +++ b/os-system/src/main/resources/mapper/system/SysRoleMapper.xml @@ -119,7 +119,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" status, remark, create_by, - create_time + create_time, + del_flag )values( #{roleId}, #{roleName}, @@ -131,7 +132,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" #{status}, #{remark}, #{createBy}, - now() + now(), + '0' ) diff --git a/os-system/src/main/resources/mapper/system/SysUserMapper.xml b/os-system/src/main/resources/mapper/system/SysUserMapper.xml index ec80c2a..c767e7b 100644 --- a/os-system/src/main/resources/mapper/system/SysUserMapper.xml +++ b/os-system/src/main/resources/mapper/system/SysUserMapper.xml @@ -161,6 +161,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" status, create_by, remark, + del_flag, create_time )values( #{userId}, @@ -175,6 +176,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" #{status}, #{createBy}, #{remark}, + '0', now() )