SysUserMapper.xml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3. <mapper namespace="com.gxzc.zen.api.sys.mapper.SysUserMapper">
  4. <!-- 通用查询映射结果 -->
  5. <resultMap id="BaseResultMap" type="com.gxzc.zen.api.sys.model.SysUser">
  6. <result column="id" property="id"/>
  7. <result column="enable" property="enable"/>
  8. <result column="remark" property="remark"/>
  9. <result column="create_time" property="createTime"/>
  10. <result column="create_by" property="createBy"/>
  11. <result column="update_time" property="updateTime"/>
  12. <result column="update_by" property="updateBy"/>
  13. <result column="account" property="account"/>
  14. <result column="username" property="username"/>
  15. <result column="password" property="password"/>
  16. <result column="salt" property="salt"/>
  17. <result column="phone" property="phone"/>
  18. <result column="email" property="email"/>
  19. <result column="position" property="position"/>
  20. <result column="address" property="address"/>
  21. <result column="staff_no" property="staffNo"/>
  22. <result column="ext1" property="ext1"/>
  23. <result column="ext2" property="ext2"/>
  24. <result column="ext3" property="ext3"/>
  25. <result column="ext4" property="ext4"/>
  26. </resultMap>
  27. <select id="selectByAccount" resultMap="BaseResultMap">
  28. SELECT *
  29. FROM sys_user
  30. WHERE
  31. account = #{account}
  32. LIMIT 1
  33. </select>
  34. </mapper>