ifms_go/test/plan_test.go

27 lines
518 B
Go
Raw Normal View History

2025-06-10 17:50:46 +08:00
package test
import (
"context"
"fmt"
"ifms/internal/mods/trace/dal"
"ifms/internal/wirex"
"ifms/pkg/util"
"testing"
)
func TestPlanStatus(t *testing.T) {
db, _, err := wirex.InitDB(context.Background())
if err != nil {
fmt.Println(err)
return
}
plan := &dal.DailyTask{DB: db}
data, err := plan.GetDailyTasksStatus(context.Background(), "123", "")
if err != nil {
fmt.Println(err)
}
format, err := util.MarshalWithTimeFormat(data, "2006-01-02 15:04:05")
fmt.Println(format)
fmt.Println(data)
}