IndexImgMapper.xml 1.3 KB

123456789101112131415161718192021222324252627
  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.yami.shop.dao.IndexImgMapper">
  4. <resultMap id="BaseResultMap" type="com.yami.shop.bean.model.IndexImg">
  5. <!--
  6. WARNING - @mbg.generated
  7. -->
  8. <id column="img_id" jdbcType="BIGINT" property="imgId"/>
  9. <result column="img_url" jdbcType="VARCHAR" property="imgUrl"/>
  10. <result column="des" jdbcType="VARCHAR" property="des"/>
  11. <result column="title" jdbcType="VARCHAR" property="title"/>
  12. <result column="link" jdbcType="VARCHAR" property="link"/>
  13. <result column="status" jdbcType="BIT" property="status"/>
  14. <result column="seq" jdbcType="INTEGER" property="seq"/>
  15. <result column="upload_time" jdbcType="TIMESTAMP" property="uploadTime"/>
  16. <result column="relation" jdbcType="BIGINT" property="relation"/>
  17. <result column="type" jdbcType="INTEGER" property="type"/>
  18. </resultMap>
  19. <delete id="deleteIndexImgsByIds">
  20. delete from tz_index_img where shop_id = #{shopId} and img_id in
  21. <foreach collection="ids" item="id" open="(" close=")" separator=",">
  22. #{id}
  23. </foreach>
  24. </delete>
  25. </mapper>