From 0702c48c75bb909df85af96d162828b6b982bb10 Mon Sep 17 00:00:00 2001
From: jinpengyong <jpy123456>
Date: Mon, 26 Apr 2021 17:26:47 +0800
Subject: [PATCH] 验证码类常量

---
 screen-api/src/main/resources/mapper/UserMapper.xml |   22 +++++++---------------
 1 files changed, 7 insertions(+), 15 deletions(-)

diff --git a/screen-api/src/main/resources/mapper/UserMapper.xml b/screen-api/src/main/resources/mapper/UserMapper.xml
index c0a28ef..0dc1aca 100644
--- a/screen-api/src/main/resources/mapper/UserMapper.xml
+++ b/screen-api/src/main/resources/mapper/UserMapper.xml
@@ -19,25 +19,26 @@
         <result column="is_delete" property="isDelete"/>
     </resultMap>
 
-    <resultMap id="userInfoMap" type="com.moral.api.pojo.UserBo" extends="BaseResultMap">
+    <resultMap id="userInfoMap" type="com.moral.api.pojo.bo.UserBO" extends="BaseResultMap">
         <!--������������-->
         <association property="organization" javaType="com.moral.api.entity.Organization">
             <result column="id" property="id" jdbcType="INTEGER"/>
             <result column="name" property="name" jdbcType="VARCHAR"/>
-            <result column="location_level" property="locationLevel"/>
+            <result column="location_level_code" property="locationLevelCode"/>
+            <result column="org_expire_time" property="expireTime"/>
         </association>
         <!--���������-->
         <collection property="groups" ofType="com.moral.api.entity.Group" javaType="java.util.ArrayList">
-            <id column="groupId" property="id" jdbcType="INTEGER"/>
+            <id column="group_id" property="id" jdbcType="INTEGER"/>
             <result column="group_name" property="groupName" jdbcType="VARCHAR"/>
         </collection>
     </resultMap>
 
     <!--������������������������������������������-->
     <select id="selectUserInfo" resultMap="userInfoMap">
-		SELECT u.id, u.account, u.password, u.user_name, u.organization_id, u.expire_time, u.is_delete,u.is_Admin,
-		o.name, o.location_level,
-		a.id groupId , a.group_name
+		SELECT u.id, u.account, u.password, u.user_name, u.email, u.mobile, u.wechat ,u.organization_id, u.expire_time, u.is_delete,u.is_Admin,
+		o.name, o.location_level_code, o.expire_time org_expire_time,
+		a.id group_id , a.group_name
 		FROM `user` u
 		LEFT JOIN
             (SELECT ug.user_id,g.id,g.group_name FROM `user_group` ug ,`group` g WHERE ug.group_id=g.id   AND g.is_delete = 0
@@ -47,13 +48,4 @@
 		WHERE u.account = #{account}
     </select>
 
-    <select id="selectUsers" resultType="java.util.Map">
-        SELECT id,account,user_name userName,email,mobile,wechat FROM `user` WHERE
-        <if test="orgId!=null">
-            organization_id = #{orgId}
-        </if>
-        <if test="userId!=null">
-            id = #{userId}
-        </if>
-    </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.8.0