|
@@ -1299,7 +1299,7 @@ func (this *CalculateController) Refresh() {
|
|
|
errMsg = "GetEdbInfoById Err:" + err.Error()
|
|
|
break
|
|
|
}
|
|
|
- //startDate = edbInfo.StartDate
|
|
|
+ startDate = `` //只要填写日期,就会出现问题,还是把日期给去掉吧
|
|
|
endDate = time.Now().Format(utils.FormatDate)
|
|
|
formulaInt, _ := strconv.Atoi(edbInfo.CalculateFormula)
|
|
|
err = models.RefreshAllCalculateHbz(edbInfoId, source, fromEdbInfo, calculateTbz.EdbCode, startDate, endDate, formulaInt)
|
|
@@ -1318,7 +1318,7 @@ func (this *CalculateController) Refresh() {
|
|
|
errMsg = "GetEdbInfoById Err:" + err.Error()
|
|
|
break
|
|
|
}
|
|
|
- //startDate = edbInfo.StartDate
|
|
|
+ startDate = `` //只要填写日期,就会出现问题,还是把日期给去掉吧
|
|
|
endDate = time.Now().Format(utils.FormatDate)
|
|
|
formulaInt, _ := strconv.Atoi(edbInfo.CalculateFormula)
|
|
|
err = models.RefreshAllCalculateHcz(edbInfoId, source, fromEdbInfo, calculateTbz.EdbCode, startDate, endDate, formulaInt)
|
|
@@ -1356,6 +1356,7 @@ func (this *CalculateController) Refresh() {
|
|
|
break
|
|
|
}
|
|
|
//startDate = edbInfo.StartDate
|
|
|
+ startDate = `` //只要填写日期,就会出现问题,还是把日期给去掉吧
|
|
|
endDate = time.Now().Format(utils.FormatDate)
|
|
|
formulaInt, _ := strconv.Atoi(calculate.CalculateFormula)
|
|
|
err = models.RefreshAllCalculateTimeShift(edbInfoId, source, formulaInt, calculate.MoveType, fromEdbInfo, calculate.EdbCode, startDate, endDate, calculate.MoveFrequency)
|
|
@@ -1406,7 +1407,7 @@ func (this *CalculateController) Refresh() {
|
|
|
break
|
|
|
}
|
|
|
formulaInt, _ := strconv.Atoi(edbInfo.CalculateFormula)
|
|
|
- //startDate = edbInfo.StartDate
|
|
|
+ startDate = `` //只要填写日期,就会出现问题,还是把日期给去掉吧
|
|
|
err = models.RefreshAllCalculateCjjx(edbInfoId, edbInfo.Source, fromEdbInfo, calculateCjjx.EdbCode, startDate, "", formulaInt)
|
|
|
if err != nil && err.Error() != utils.ErrNoRow() {
|
|
|
errMsg = "RefreshAllCalculateCjjx Err:" + err.Error()
|