Browse Source

Merge pull request '#852 修改加入月份,如果不足1月,则使用1月' (#853) from zouap_static into V20211115

Reviewed-on: https://git.openi.org.cn/OpenI/aiforge/pulls/853
Reviewed-by: lewis <747342561@qq.com>
pull/864/head
lewis 3 years ago
parent
commit
62523c02a4
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      models/user_business_analysis.go

+ 3
- 0
models/user_business_analysis.go View File

@@ -674,5 +674,8 @@ func subMonth(t1, t2 time.Time) (month int) {
}
monthInterval %= 12
month = yearInterval*12 + monthInterval
if month == 0 {
month = 1
}
return month
}

Loading…
Cancel
Save