| 123456789101112131415161718192021222324252627282930313233343536 |
- <?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.cyksj.mapper.GoodsDonSkuMapper">
- <select id="selectAIMonthSkuIds" resultType="java.lang.Long">
- select id from goods_don_sku where goods_id in
- <foreach collection="list" item="item" open="(" separator="," close=")">
- #{item}
- </foreach>
- and `months` = 1
- </select>
- <select id="getSpecificSkuIdsByGoodsIds" resultType="java.lang.Long">
- select id from goods_don_sku where goods_id in
- <foreach collection="list" item="item" open="(" separator="," close=")">
- #{item}
- </foreach>
- and `months` = #{months}
- </select>
- <select id="getSpecificSkuIdsByGoodsId" resultType="java.lang.Long">
- select id
- from goods_don_sku
- where goods_id = #{goodsId}
- and num = #{num}
- and `months` = #{months}
- </select>
- <select id="selectSkuShops" resultType="com.cyksj.model.entity.YhShopGoodsSku">
- select id as skuId,goods_id,price from goods_don_sku where goods_id in
- <foreach collection="list" item="item" open="(" separator="," close=")">
- #{item}
- </foreach>
- and status = true
- </select>
- </mapper>
|