41 lines
2.2 KiB
XML
41 lines
2.2 KiB
XML
<?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.yupi.springbootinit.mapper.SystemUsersMapper">
|
|
<resultMap id="BaseResultMap" type="com.yupi.springbootinit.model.entity.SystemUsers">
|
|
<!--@mbg.generated-->
|
|
<!--@Table system_users-->
|
|
<id column="id" jdbcType="BIGINT" property="id" />
|
|
<result column="username" jdbcType="VARCHAR" property="username" />
|
|
<result column="password" jdbcType="VARCHAR" property="password" />
|
|
<result column="nickname" jdbcType="VARCHAR" property="nickname" />
|
|
<result column="remark" jdbcType="VARCHAR" property="remark" />
|
|
<result column="dept_id" jdbcType="BIGINT" property="deptId" />
|
|
<result column="post_ids" jdbcType="VARCHAR" property="postIds" />
|
|
<result column="email" jdbcType="VARCHAR" property="email" />
|
|
<result column="mobile" jdbcType="VARCHAR" property="mobile" />
|
|
<result column="sex" jdbcType="TINYINT" property="sex" />
|
|
<result column="avatar" jdbcType="VARCHAR" property="avatar" />
|
|
<result column="status" jdbcType="TINYINT" property="status" />
|
|
<result column="login_ip" jdbcType="VARCHAR" property="loginIp" />
|
|
<result column="login_date" jdbcType="TIMESTAMP" property="loginDate" />
|
|
<result column="creator" jdbcType="VARCHAR" property="creator" />
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
<result column="updater" jdbcType="VARCHAR" property="updater" />
|
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
|
<result column="deleted" jdbcType="BIT" property="deleted" />
|
|
<result column="tenant_id" jdbcType="BIGINT" property="tenantId" />
|
|
</resultMap>
|
|
<sql id="Base_Column_List">
|
|
<!--@mbg.generated-->
|
|
id, username, `password`, nickname, remark, dept_id, post_ids, email, mobile, sex,
|
|
avatar, `status`, login_ip, login_date, creator, create_time, updater, update_time,
|
|
deleted, tenant_id
|
|
</sql>
|
|
|
|
<select id="selectUsername" resultType="int">
|
|
select
|
|
<include refid="Base_Column_List">
|
|
</include>
|
|
from system_users where username = #{userName,jdbcType=VARCHAR}
|
|
</select>
|
|
</mapper> |