update sys_stock set amount = #{stock.amount} ,state=#{stock.state} where stock_id=#{stock.stockId}