<select id="getCollectByShop" parameterType="java.util.List" resultMap="shopCollectBuyMap">
SELECT
GI.GOODS_DBID,
GI.CS_DBID,
GI.GOODS_NAME,
GI.GOODS_MAT_CODE,
GI.GOODS_CONTRACT_PRICE,
GI.GOODS_CAN_BUY,
GI.GOODS_MIN_CAN_BUY,
GI.GOODS_MEASUER_UNIT
FROM GOODS_INFO AS GI
WHERE GI.GOODS_DBID IN
<foreach collection="goodsDbidList" item="item" index="" separator="," open="(" close=")">
#{item}
</foreach>
</select>
dao层:
List<GoodsInfoVO> getCollectByShop(@Param("goodsDbidList") List<String> goodsDbidList);