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