| 1234567891011121314151617181920212223 |
- <?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.ym.mec.biz.dal.mapper.GoodsSubMapper">
- <insert id="saveBatch" parameterType="com.ym.mec.biz.dal.entity.GoodsSub">
- insert into goods_sub(goods_id_, mall_goods_id_, sku_, goods_status_, goods_price_) values
- <foreach collection="goodsSubs" item="item" separator=",">
- (#{item.goodsId},#{item.mallGoodsId},#{item.sku},#{item.goodsStatus},#{item.goodsPrice})
- </foreach>
- </insert>
- <update id="updateStatus">
- update goods_sub set goods_status_ = #{status}
- where id_ in
- <foreach collection="goodsSubIdList" separator="," open="(" close=")" item="item">
- #{item}
- </foreach>
- </update>
- <select id="queryChildGoods" resultType="com.ym.mec.biz.dal.dto.ComplementGoodsDto">
- select sku_ skuStockId,goods_id_ goodsId,goods_price_ organCostPrice,
- from goods_sub where goods_id_ = #{goodsId}
- </select>
- </mapper>
|