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

+ 2 - 1
app/models/cash_balance.rb

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