|
@@ -291,6 +291,10 @@ func refreshAllCalculateCjjx(to orm.TxOrmer, edbInfoId, source, subSource int, f
|
|
|
lastDataDay, _ = time.ParseInLocation(utils.FormatDate, dataList[0].DataTime, time.Local)
|
|
|
}
|
|
|
for _, av := range dateArr {
|
|
|
+ // 如果遇到闰二月,如2.29,去掉该天数据
|
|
|
+ if strings.Contains(av, "02-29") {
|
|
|
+ continue
|
|
|
+ }
|
|
|
currentDate, tmpErr := time.ParseInLocation(utils.FormatDate, av, time.Local)
|
|
|
if tmpErr != nil {
|
|
|
err = tmpErr
|