WineBoxMapper.xml 1.3 KB

1234567891011121314151617181920212223242526272829
  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.WineBoxMapper">
  4. <!-- 通用查询映射结果 -->
  5. <resultMap id="wineBoxResultMap" type="org.springblade.modules.custom.entity.WineBox">
  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="name" property="name"/>
  13. <result column="image" property="image"/>
  14. <result column="length" property="length"/>
  15. <result column="width" property="width"/>
  16. <result column="high" property="high"/>
  17. <result column="price" property="price"/>
  18. <result column="unit" property="unit"/>
  19. <result column="sort" property="sort"/>
  20. <result column="status" property="status"/>
  21. </resultMap>
  22. <select id="selectWineBoxPage" resultMap="wineBoxResultMap">
  23. select * from biz_wine_box where is_deleted = 0
  24. </select>
  25. </mapper>