BartenderMapper.xml 1.4 KB

123456789101112131415161718192021222324252627282930
  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="org.springblade.modules.custom.mapper.BartenderMapper">
  4. <!-- 通用查询映射结果 -->
  5. <resultMap id="bartenderResultMap" type="org.springblade.modules.custom.entity.Bartender">
  6. <result column="id" property="id"/>
  7. <result column="is_delete" property="isDelete"/>
  8. <result column="create_user_id" property="createUserId"/>
  9. <result column="create_time" property="createTime"/>
  10. <result column="update_user_id" property="updateUserId"/>
  11. <result column="update_time" property="updateTime"/>
  12. <result column="title" property="title"/>
  13. <result column="describe" property="describe"/>
  14. <result column="image" property="image"/>
  15. <result column="name" property="name"/>
  16. <result column="sex" property="sex"/>
  17. <result column="phone" property="phone"/>
  18. <result column="address" property="address"/>
  19. <result column="unit" property="unit"/>
  20. <result column="sort" property="sort"/>
  21. <result column="status" property="status"/>
  22. </resultMap>
  23. <select id="selectBartenderPage" resultMap="bartenderResultMap">
  24. select * from biz_bartender where is_deleted = 0
  25. </select>
  26. </mapper>