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