pg_cooperation_company_statistics_service_test.go 404 字节
package domain_service

import (
	"fmt"
	"log"
	"testing"
	"time"
)

func Test_histogramStatisticsByMonth(t *testing.T) {
	input := time.Date(2021, 1, 1, 0, 0, 0, 0, time.Local)

	for i := 0; i < 12; i++ {
		y, x := histogramStatisticsByMonth(input)
		log.Println(fmt.Sprintf("月份:%d", input.Month()), x)
		log.Println(fmt.Sprintf("月份:%d", input.Month()), y)
		input = input.AddDate(0, 1, 0)
	}
}