@@ -44,9 +44,7 @@ class CashBalance < ActiveRecord::Base
@total=0
@list=[]
def get_happen_total
- unless @list.include?(self.id)
- @list.append(self.id)
- end
+ @list.append(self.id)
total = CashBalance.where(id: @list).sum("count")