有個需求是,對一個集合算出所有的數據中,兩個欄位的時間相減,取全部平均花費時間。 狀況如下 # == Schema Information # # Table name: orders # ... # notify_at :datetime # released_at :datetime # ... 我們希望可以拿…
有個需求是,對一個集合算出所有的數據中,兩個欄位的時間相減,取全部平均花費時間。 狀況如下 # == Schema Information # # Table name: orders # ... # notify_at :datetime # released_at :datetime # ... 我們希望可以拿…
讨论
登录后参与讨论
还没有评论,来说第一句吧。