[账单]显示账单、手动生成账单

This commit is contained in:
刘祥超
2020-12-11 21:39:10 +08:00
parent 9eaa493e2a
commit cb993259a7
13 changed files with 429 additions and 14 deletions

View File

@@ -0,0 +1,18 @@
package models
import (
_ "github.com/go-sql-driver/mysql"
"github.com/iwind/TeaGo/dbs"
timeutil "github.com/iwind/TeaGo/utils/time"
"testing"
)
func TestUserBillDAO_GenerateBills(t *testing.T) {
dbs.NotifyReady()
err := SharedUserBillDAO.GenerateBills(timeutil.Format("Ym"))
if err != nil {
t.Fatal(err)
}
t.Log("ok")
}