forked from free-lancers/electricity_bill_calc_service
feat(report):基本完成报表的初始化、基本索引信息获取和步骤信息获取。
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user