select  @price=price from t_wh_billofdocument_detail where bs_product_id=@bs_product_id and 日期=(select top 1 日期 from t_wh_billofdocument_detail where bs_product_id=@bs_product_id order by 日期 desc )