From 5a88c6ba9108aef9bf7fdfbea34d5b86bbeffba1 Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期四, 09 十一月 2023 15:06:33 +0800
Subject: [PATCH] 完善行政区划代码
---
pipIrr-platform/pipIrr-global/src/main/resources/mapper/BaUserMapper.xml | 39 ++++++++++++++++++++++++++++-----------
1 files changed, 28 insertions(+), 11 deletions(-)
diff --git a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/BaUserMapper.xml b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/BaUserMapper.xml
index 20721d8..3eb39b3 100644
--- a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/BaUserMapper.xml
+++ b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/BaUserMapper.xml
@@ -3,24 +3,41 @@
<!--namespace瀵瑰簲mapper鎺ュ彛鎵�鍦ㄧ殑浣嶇疆-->
<mapper namespace="com.dy.pipIrrGlobal.daoBa.BaUserMapper">
+ <resultMap id="BaseResultMap" type="com.dy.pipIrrGlobal.pojoBa.BaUser">
+ <!--@mbg.generated-->
+ <!--@Table ba_user-->
+ <id property="id" column="id" />
+ <result property="name" column="name"/>
+ <result property="phone" column="phone"/>
+ <result property="password" column="password"/>
+ <result property="orgTag" column="orgTag"/>
+ <result property="supperAdmin" column="supperAdmin"/>
+ <result property="disabled" column="disabled" typeHandler="com.dy.common.mybatis.envm.EnumCodeTypeHandler" javaType="com.dy.common.mybatis.envm.Disabled"/>
+ <result property="deleted" column="deleted" typeHandler="com.dy.common.mybatis.envm.EnumCodeTypeHandler" javaType="com.dy.common.mybatis.envm.Deleted"/>
+ </resultMap>
+
<resultMap id="login" type="com.dy.pipIrrGlobal.pojoBa.BaUser">
<id property="id" column="id" />
<result property="name" column="name"/>
<result property="phone" column="phone"/>
<result property="orgTag" column="orgTag"/>
+ <result property="supperAdmin" column="supperAdmin"/>
</resultMap>
- <!--
- <select id="login" resultMap="login">
- select id, name, phone, orgTag
- from ba_user
- where disabled=0 and deleted=0 and phone=#{phone} and password=#{password}
- </select>
- <select id="login" resultType="com.dy.pipIrrGlobal.pojoBa.BaUser">
- select id, name, phone, orgTag
- -->
+
+ <sql id="Base_Column_List">
+ <!--@mbg.generated-->
+ id, name, phone, password, orgTag, supperAdmin, disabled, deleted
+ </sql>
+
+ <sql id="Login_Column_List">
+ <!--@mbg.generated-->
+ id, name, phone, orgTag, supperAdmin
+ </sql>
+
<select id="login" resultMap="login" >
- select *
- from ba_user r
+ select
+ <include refid="Login_Column_List" />
+ from ba_user
where disabled=0 and deleted=0 and phone=#{phone} and password=#{password}
</select>
--
Gitblit v1.8.0