SecondhandImagesMapper.xml 1007 Bytes
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.yoho.product.dal.SecondhandImagesMapper">
  <resultMap id="BaseResultMap" type="com.yoho.product.model.SecondhandImages">
    <id column="id" jdbcType="INTEGER" property="id" />
    <result column="skup" jdbcType="INTEGER" property="skup" />
    <result column="type" jdbcType="INTEGER" property="type" />
    <result column="is_default" jdbcType="CHAR" property="isDefault" />
    <result column="image_url" jdbcType="VARCHAR" property="imageUrl" />
    <result column="code" jdbcType="INTEGER" property="code" />
  </resultMap>

  <select id="selectBySkups" resultMap="BaseResultMap">
    select id, skup, type, is_default, image_url, code
    from secondhand_images where skup in 
    <foreach collection="skupList" item="skup" open="(" close=")" separator=",">
        #{skup}
    </foreach>
    order by id ASC
  </select>
</mapper>