abiao 4 년 전
부모
커밋
1222fd6746
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      app/models/cash_balance.rb

+ 1 - 3
app/models/cash_balance.rb

@@ -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")