Authored by zhaojun2

add sql

... ... @@ -13,4 +13,6 @@ public interface BrandSeriesMapper {
List<BrandSeries> selectAll();
int updateByPrimaryKey(BrandSeries record);
List<BrandSeries> selectByIds(List<Integer> ids);
}
\ No newline at end of file
... ...
... ... @@ -15,4 +15,6 @@ public interface GoodsMapper {
int updateByPrimaryKey(Goods record);
List<Goods> selectByProductId(Integer productId);
List<Goods> selectByProductIds(List<Integer> productIds);
}
\ No newline at end of file
... ...
... ... @@ -13,4 +13,6 @@ public interface ProductMapper {
List<Product> selectAll();
int updateByPrimaryKey(Product record);
List<Product> selectByIds(List<Integer> ids);
}
\ No newline at end of file
... ...
... ... @@ -41,4 +41,13 @@
select id, series_name, series_search, status, create_time, update_time, brand_id
from brand_series
</select>
<select id="selectByIds" resultMap="BaseResultMap">
select id, series_name
from brand_series
where status = 1 and id IN
<foreach item="item" index="index" collection="list"
open="(" separator="," close=")">
#{item}
</foreach>
</select>
</mapper>
\ No newline at end of file
... ...
... ... @@ -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
... ...
... ... @@ -77,4 +77,11 @@
storage, key_words, del_status
from product
</select>
<select id="selectByIds" resultMap="BaseResultMap">
select id, series_id from product where id in
<foreach item="item" index="index" collection="list"
open="(" separator="," close=")">
#{item}
</foreach>
</select>
</mapper>
\ No newline at end of file
... ...