这两个参数都是Long型
mapper.xml
<select id="selectGoodsStockByshopIdandgoodId" parameterType="Long" resultMap="GoodsStockResult">
<include refid="selectGoodsStockVo"/>
where shop_id = #{shopId} and goods_id = #{goodsId}
</select>
dao接口 @Param(“shopId”) #{shopId} 相对应
public GoodsStock selectGoodsStockByshopIdandgoodId
(@Param("shopId")Long shopId, @Param("goodsId")Long goodsId);