|
@@ -334,7 +334,7 @@ func RefreshAllCalculateBp(edbInfoId, source, subSource int, fromEdbInfo *EdbInf
|
|
|
}()
|
|
|
|
|
|
// 计算数据
|
|
|
- err = refreshAllCalculateBp(to, edbInfoId, source, subSource, fromEdbInfo, edbCode, startDate, endDate, 1, emptyType)
|
|
|
+ err = refreshAllCalculateBp(to, edbInfoId, source, subSource, fromEdbInfo, edbCode, startDate, endDate, 0, emptyType)
|
|
|
|
|
|
return
|
|
|
}
|
|
@@ -413,7 +413,7 @@ func refreshAllCalculateBp(to orm.TxOrmer, edbInfoId, source, subSource int, fro
|
|
|
preDate = currentDate
|
|
|
} else {
|
|
|
day = int(time.Now().Sub(currentDate).Hours() / float64(24))
|
|
|
- preDate = time.Now()
|
|
|
+ preDate = time.Date(time.Now().Year(), time.Now().Month(), time.Now().Day(), 0, 0, 0, 0, time.Local)
|
|
|
}
|
|
|
} else {
|
|
|
j := i - 1
|