SysUserZgdMapper.xml 4.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper
  3. PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4. "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5. <mapper namespace="com.ydtech.modules.admin.dao.SysUserZgdMapper">
  6. <resultMap id="BaseResultMap" type="com.ydtech.modules.admin.model.po.SysUserZzbOrZgd">
  7. <id property="userId" column="user_id" jdbcType="BIGINT"/>
  8. <result property="deptId" column="dept_id" jdbcType="BIGINT"/>
  9. <result property="userName" column="user_name" jdbcType="VARCHAR"/>
  10. <result property="userType" column="user_type" jdbcType="CHAR"/>
  11. <result property="jobNumber" column="job_number" jdbcType="VARCHAR"/>
  12. <result property="dataScope" column="data_scope" jdbcType="TINYINT"/>
  13. <result property="nickName" column="nick_name" jdbcType="VARCHAR"/>
  14. <result property="email" column="email" jdbcType="VARCHAR"/>
  15. <result property="phoneNumber" column="phone_number" jdbcType="VARCHAR"/>
  16. <result property="sex" column="sex" jdbcType="CHAR"/>
  17. <result property="avatar" column="avatar" jdbcType="VARCHAR"/>
  18. <result property="password" column="password" jdbcType="VARCHAR"/>
  19. <result property="status" column="status" jdbcType="CHAR"/>
  20. <result property="loginIp" column="login_ip" jdbcType="VARCHAR"/>
  21. <result property="loginDate" column="login_date" jdbcType="TIMESTAMP"/>
  22. <result property="weUserId" column="we_user_id" jdbcType="VARCHAR"/>
  23. <result property="position" column="position" jdbcType="VARCHAR"/>
  24. <result property="thumbAvatar" column="thumb_avatar" jdbcType="VARCHAR"/>
  25. <result property="bizMail" column="biz_mail" jdbcType="VARCHAR"/>
  26. <result property="leader" column="leader" jdbcType="VARCHAR"/>
  27. <result property="telephone" column="telephone" jdbcType="VARCHAR"/>
  28. <result property="extAttr" column="ext_attr" jdbcType="VARCHAR"/>
  29. <result property="weUserStatus" column="we_user_status" jdbcType="CHAR"/>
  30. <result property="qrCode" column="qr_code" jdbcType="VARCHAR"/>
  31. <result property="externalProfile" column="external_profile" jdbcType="VARCHAR"/>
  32. <result property="externalPosition" column="external_position" jdbcType="VARCHAR"/>
  33. <result property="address" column="address" jdbcType="VARCHAR"/>
  34. <result property="openUserid" column="open_userid" jdbcType="VARCHAR"/>
  35. <result property="isAllocate" column="is_allocate" jdbcType="TINYINT"/>
  36. <result property="dimissionTime" column="dimission_time" jdbcType="TIMESTAMP"/>
  37. <result property="isUserLeave" column="is_user_leave" jdbcType="TINYINT"/>
  38. <result property="isOpenChat" column="is_open_chat" jdbcType="TINYINT"/>
  39. <result property="createBy" column="create_by" jdbcType="VARCHAR"/>
  40. <result property="createById" column="create_by_id" jdbcType="BIGINT"/>
  41. <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
  42. <result property="updateBy" column="update_by" jdbcType="VARCHAR"/>
  43. <result property="updateById" column="update_by_id" jdbcType="BIGINT"/>
  44. <result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
  45. <result property="remark" column="remark" jdbcType="VARCHAR"/>
  46. <result property="delFlag" column="del_flag" jdbcType="TINYINT"/>
  47. <result property="kfStatus" column="kf_status" jdbcType="TINYINT"/>
  48. </resultMap>
  49. <sql id="Base_Column_List">
  50. user_id,dept_id,user_name,
  51. user_type,job_number,data_scope,
  52. nick_name,email,phone_number,
  53. sex,avatar,password,
  54. status,login_ip,login_date,
  55. we_user_id,position,thumb_avatar,
  56. biz_mail,leader,telephone,
  57. ext_attr,we_user_status,qr_code,
  58. external_profile,external_position,address,
  59. open_userid,is_allocate,dimission_time,
  60. is_user_leave,is_open_chat,create_by,
  61. create_by_id,create_time,update_by,
  62. update_by_id,update_time,remark,
  63. del_flag,kf_status
  64. </sql>
  65. <select id="queryPage" resultType="com.ydtech.modules.admin.model.po.SysUserZzbOrZgd">
  66. select
  67. user_id as userId,
  68. user_id as id,
  69. user_name as userName,
  70. nick_name as nickName,
  71. phone_number as phoneNumber
  72. from
  73. sys_user
  74. <where>
  75. <if test="vo.userName != null and vo.userName != ''">
  76. AND user_name like CONCAT('%', #{vo.userName}, '%')
  77. </if>
  78. <if test="vo.mobile != null and vo.mobile != ''">
  79. AND phone_number = #{vo.mobile }
  80. </if>
  81. </where>
  82. </select>
  83. </mapper>