|
@@ -0,0 +1,37 @@
|
|
|
+<?xml version="1.0" encoding="UTF-8"?>
|
|
|
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
+<mapper namespace="com.gxzc.zen.api.sys.mapper.SysUserMapper">
|
|
|
+
|
|
|
+ <!-- 通用查询映射结果 -->
|
|
|
+ <resultMap id="BaseResultMap" type="com.gxzc.zen.api.sys.model.SysUser">
|
|
|
+ <result column="id" property="id"/>
|
|
|
+ <result column="enable" property="enable"/>
|
|
|
+ <result column="remark" property="remark"/>
|
|
|
+ <result column="create_time" property="createTime"/>
|
|
|
+ <result column="create_by" property="createBy"/>
|
|
|
+ <result column="update_time" property="updateTime"/>
|
|
|
+ <result column="update_by" property="updateBy"/>
|
|
|
+ <result column="account" property="account"/>
|
|
|
+ <result column="username" property="username"/>
|
|
|
+ <result column="password" property="password"/>
|
|
|
+ <result column="salt" property="salt"/>
|
|
|
+ <result column="phone" property="phone"/>
|
|
|
+ <result column="email" property="email"/>
|
|
|
+ <result column="position" property="position"/>
|
|
|
+ <result column="address" property="address"/>
|
|
|
+ <result column="staff_no" property="staffNo"/>
|
|
|
+ <result column="ext1" property="ext1"/>
|
|
|
+ <result column="ext2" property="ext2"/>
|
|
|
+ <result column="ext3" property="ext3"/>
|
|
|
+ <result column="ext4" property="ext4"/>
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+ <select id="selectByAccount" resultMap="BaseResultMap">
|
|
|
+ SELECT *
|
|
|
+ FROM sys_user
|
|
|
+ WHERE
|
|
|
+ account = #{account}
|
|
|
+ LIMIT 1
|
|
|
+ </select>
|
|
|
+
|
|
|
+</mapper>
|