KKSU
2025-01-23 12b8ccc96996918b4e910791f1a3ff10c3d59aa2
src/main/resources/mapper/modules/CouponGoodsMapper.xml
@@ -21,4 +21,13 @@
        and coupon_id = #{couponId}
    </select>
    <select id="selectByGoodIdList" resultType="java.lang.Long">
        select a.coupon_id
        from coupon_goods a
        where goods_id IN
        <foreach collection = "list" item = "item"  separator=","  open = "(" close = ")" >
            #{item}
        </foreach >
    </select>
</mapper>