| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- <?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.ydtech.modules.admin.dao.SysUserZgdMapper">
- <resultMap id="BaseResultMap" type="com.ydtech.modules.admin.model.po.SysUserZzbOrZgd">
- <id property="userId" column="user_id" jdbcType="BIGINT"/>
- <result property="deptId" column="dept_id" jdbcType="BIGINT"/>
- <result property="userName" column="user_name" jdbcType="VARCHAR"/>
- <result property="userType" column="user_type" jdbcType="CHAR"/>
- <result property="jobNumber" column="job_number" jdbcType="VARCHAR"/>
- <result property="dataScope" column="data_scope" jdbcType="TINYINT"/>
- <result property="nickName" column="nick_name" jdbcType="VARCHAR"/>
- <result property="email" column="email" jdbcType="VARCHAR"/>
- <result property="phoneNumber" column="phone_number" jdbcType="VARCHAR"/>
- <result property="sex" column="sex" jdbcType="CHAR"/>
- <result property="avatar" column="avatar" jdbcType="VARCHAR"/>
- <result property="password" column="password" jdbcType="VARCHAR"/>
- <result property="status" column="status" jdbcType="CHAR"/>
- <result property="loginIp" column="login_ip" jdbcType="VARCHAR"/>
- <result property="loginDate" column="login_date" jdbcType="TIMESTAMP"/>
- <result property="weUserId" column="we_user_id" jdbcType="VARCHAR"/>
- <result property="position" column="position" jdbcType="VARCHAR"/>
- <result property="thumbAvatar" column="thumb_avatar" jdbcType="VARCHAR"/>
- <result property="bizMail" column="biz_mail" jdbcType="VARCHAR"/>
- <result property="leader" column="leader" jdbcType="VARCHAR"/>
- <result property="telephone" column="telephone" jdbcType="VARCHAR"/>
- <result property="extAttr" column="ext_attr" jdbcType="VARCHAR"/>
- <result property="weUserStatus" column="we_user_status" jdbcType="CHAR"/>
- <result property="qrCode" column="qr_code" jdbcType="VARCHAR"/>
- <result property="externalProfile" column="external_profile" jdbcType="VARCHAR"/>
- <result property="externalPosition" column="external_position" jdbcType="VARCHAR"/>
- <result property="address" column="address" jdbcType="VARCHAR"/>
- <result property="openUserid" column="open_userid" jdbcType="VARCHAR"/>
- <result property="isAllocate" column="is_allocate" jdbcType="TINYINT"/>
- <result property="dimissionTime" column="dimission_time" jdbcType="TIMESTAMP"/>
- <result property="isUserLeave" column="is_user_leave" jdbcType="TINYINT"/>
- <result property="isOpenChat" column="is_open_chat" jdbcType="TINYINT"/>
- <result property="createBy" column="create_by" jdbcType="VARCHAR"/>
- <result property="createById" column="create_by_id" jdbcType="BIGINT"/>
- <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
- <result property="updateBy" column="update_by" jdbcType="VARCHAR"/>
- <result property="updateById" column="update_by_id" jdbcType="BIGINT"/>
- <result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
- <result property="remark" column="remark" jdbcType="VARCHAR"/>
- <result property="delFlag" column="del_flag" jdbcType="TINYINT"/>
- <result property="kfStatus" column="kf_status" jdbcType="TINYINT"/>
- </resultMap>
- <sql id="Base_Column_List">
- user_id,dept_id,user_name,
- user_type,job_number,data_scope,
- nick_name,email,phone_number,
- sex,avatar,password,
- status,login_ip,login_date,
- we_user_id,position,thumb_avatar,
- biz_mail,leader,telephone,
- ext_attr,we_user_status,qr_code,
- external_profile,external_position,address,
- open_userid,is_allocate,dimission_time,
- is_user_leave,is_open_chat,create_by,
- create_by_id,create_time,update_by,
- update_by_id,update_time,remark,
- del_flag,kf_status
- </sql>
- <select id="queryPage" resultType="com.ydtech.modules.admin.model.po.SysUserZzbOrZgd">
- select
- user_id as userId,
- user_id as id,
- user_name as userName,
- nick_name as nickName,
- phone_number as phoneNumber
- from
- sys_user
- <where>
- <if test="vo.userName != null and vo.userName != ''">
- AND user_name like CONCAT('%', #{vo.userName}, '%')
- </if>
- <if test="vo.mobile != null and vo.mobile != ''">
- AND phone_number = #{vo.mobile }
- </if>
- </where>
- </select>
- </mapper>
|