feat(report):基本完成报表的初始化、基本索引信息获取和步骤信息获取。

This commit is contained in:
徐涛
2022-08-20 15:59:07 +08:00
parent 52a83bd34e
commit b2126a534b
6 changed files with 263 additions and 3 deletions

View File

@@ -19,6 +19,6 @@ func DifferenceInMonth(t1, t2 time.Time) int {
return differYear*12 + differMonth
}
func IsNextMonth(t1, t2 time.Time) bool {
return DifferenceInMonth(t1, t2) == -1
func IsNextMonth(origin, t time.Time) bool {
return DifferenceInMonth(t, origin) == 1
}