...
|
...
|
@@ -45,4 +45,12 @@ |
|
|
select id, product_id, color_name, goods_name
|
|
|
from goods where product_id = #{productId,jdbcType=INTEGER}
|
|
|
</select>
|
|
|
<select id="selectByProductIds" resultType="com.yohoufo.dal.product.model.Goods">
|
|
|
select id, product_id, color_image
|
|
|
from goods where product_id IN
|
|
|
<foreach item="item" index="index" collection="list"
|
|
|
open="(" separator="," close=")">
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
</select>
|
|
|
</mapper> |
|
|
\ No newline at end of file |
...
|
...
|
|