From 269031cf8e6d1e4643e1be2b822bbfebcf87ea4b Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Fri, 16 Jul 2021 22:39:49 +0800
Subject: [PATCH] 考试成绩计算接口新增

---
 src/main/java/org/springblade/modules/system/mapper/UserMapper.xml |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/src/main/java/org/springblade/modules/system/mapper/UserMapper.xml b/src/main/java/org/springblade/modules/system/mapper/UserMapper.xml
index 4357963..b29e034 100644
--- a/src/main/java/org/springblade/modules/system/mapper/UserMapper.xml
+++ b/src/main/java/org/springblade/modules/system/mapper/UserMapper.xml
@@ -37,6 +37,8 @@
         <result column="registered" property="registered"/>
         <result column="rtime" property="rtime"/>
         <result column="hold" property="hold"/>
+        <result column="jurisdiction" property="jurisdiction"/>
+        <result column="securitynumber" property="securitynumber"/>
     </resultMap>
 
     <select id="selectUserPage" resultMap="userResultMap">
@@ -75,6 +77,9 @@
         <if test="user.userType!=null and user.userType != ''">
             and bu.user_type = #{user.userType}
         </if>
+          <if test="user.securitynumber!=null and user.securitynumber != ''">
+            and bu.securitynumber = #{user.securitynumber}
+        </if>
         <if test="deptIdList!=null and deptIdList.size>0">
             and bu.id in (
                 SELECT
@@ -104,4 +109,12 @@
         SELECT id, tenant_id, user_type, account, name, real_name, email, phone, birthday, role_id, dept_id, post_id FROM blade_user ${ew.customSqlSegment}
     </select>
 
+    <!--通过 身份证号查询用户信息-->
+    <select id="getUserInfoByIdCardNo" resultType="org.springblade.modules.system.entity.User">
+        SELECT id, name, real_name RealName
+            FROM
+        blade_user
+        where cardid = #{param1}
+    </select>
+
 </mapper>

--
Gitblit v1.9.3