From d6c3f0d0c71ebe462afa4fa89c683b4f30a32dad Mon Sep 17 00:00:00 2001
From: wangxy <1356089412@qq.com>
Date: Thu, 25 Jul 2024 17:23:54 +0800
Subject: [PATCH] =?UTF-8?q?feat:=E8=BA=AB=E4=BB=BD=E8=B4=A6=E5=8F=B7?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../com/ruoyi/common/core/domain/entity/SysUser.java | 12 ++++++++++++
.../main/resources/mapper/system/SysUserMapper.xml | 4 ++++
2 files changed, 16 insertions(+)
diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysUser.java b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysUser.java
index e0dd740..b0f563e 100644
--- a/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysUser.java
+++ b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysUser.java
@@ -42,6 +42,9 @@ public class SysUser extends BaseEntity
@Excel(name = "登录账号")
private String loginName;
+ @Excel(name = "身份证号")
+ private String cerno;
+
/** 部门ID */
@Excel(name = "部门编号", type = Type.IMPORT)
private Long deptId;
@@ -586,6 +589,14 @@ public class SysUser extends BaseEntity
this.posts = posts;
}
+ public String getCerno() {
+ return cerno;
+ }
+
+ public void setCerno(String cerno) {
+ this.cerno = cerno;
+ }
+
@Override
public String toString() {
return "SysUser{" +
@@ -593,6 +604,7 @@ public class SysUser extends BaseEntity
", deptId=" + deptId +
", parentId=" + parentId +
", roleId=" + roleId +
+ ", cerno=" + cerno +
", loginName='" + loginName + '\'' +
", userName='" + userName + '\'' +
", userType='" + userType + '\'' +
diff --git a/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml
index cf49a1c..2eddd59 100644
--- a/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml
@@ -10,6 +10,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+
@@ -207,6 +208,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
dept_id = #{deptId},
login_name = #{loginName},
user_name = #{userName},
+ cerno = #{cerno},
user_type = #{userType},
email = #{email},
phonenumber = #{phonenumber},
@@ -244,6 +246,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
user_id,
dept_id,
login_name,
+ cerno,
user_name,
user_type,
email,
@@ -277,6 +280,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{userId},
#{deptId},
#{loginName},
+ #{cerno},
#{userName},
#{userType},
#{email},