|
@@ -1225,7 +1225,8 @@ func (this *CalculateController) Refresh() {
|
|
break
|
|
break
|
|
}
|
|
}
|
|
//startDate = edbInfo.StartDate
|
|
//startDate = edbInfo.StartDate
|
|
- endDate = time.Now().Format(utils.FormatDate)
|
|
|
|
|
|
+ //endDate = time.Now().Format(utils.FormatDate)
|
|
|
|
+ endDate = `` //只要填写日期,就会出现问题,还是把日期给去掉吧
|
|
startDate = `` //只要填写日期,就会出现问题,还是把日期给去掉吧
|
|
startDate = `` //只要填写日期,就会出现问题,还是把日期给去掉吧
|
|
err = models.RefreshAllCalculateLjzzy(edbInfoId, source, fromEdbInfo, calculateLjzzy.EdbCode, startDate, endDate)
|
|
err = models.RefreshAllCalculateLjzzy(edbInfoId, source, fromEdbInfo, calculateLjzzy.EdbCode, startDate, endDate)
|
|
if err != nil && err.Error() != utils.ErrNoRow() {
|
|
if err != nil && err.Error() != utils.ErrNoRow() {
|
|
@@ -1269,7 +1270,6 @@ func (this *CalculateController) Refresh() {
|
|
break
|
|
break
|
|
}
|
|
}
|
|
case utils.DATA_SOURCE_CALCULATE_NSZYDPJJS: //N数值移动平均计算
|
|
case utils.DATA_SOURCE_CALCULATE_NSZYDPJJS: //N数值移动平均计算
|
|
- startDate = `` //只要填写日期,就会出现问题,还是把日期给去掉吧
|
|
|
|
calculateNszydpjjs, err := models.GetEdbInfoCalculateMappingDetail(edbInfoId)
|
|
calculateNszydpjjs, err := models.GetEdbInfoCalculateMappingDetail(edbInfoId)
|
|
if err != nil {
|
|
if err != nil {
|
|
errMsg = "GetEdbInfoCalculateNszydpjjsDetail Err:" + err.Error()
|
|
errMsg = "GetEdbInfoCalculateNszydpjjsDetail Err:" + err.Error()
|
|
@@ -1282,6 +1282,7 @@ func (this *CalculateController) Refresh() {
|
|
}
|
|
}
|
|
formulaInt, _ := strconv.Atoi(edbInfo.CalculateFormula)
|
|
formulaInt, _ := strconv.Atoi(edbInfo.CalculateFormula)
|
|
//startDate = edbInfo.StartDate
|
|
//startDate = edbInfo.StartDate
|
|
|
|
+ startDate = `` //只要填写日期,就会出现问题,还是把日期给去掉吧
|
|
err = models.RefreshAllCalculateNszydpjjs(edbInfoId, edbInfo.Source, formulaInt, fromEdbInfo, calculateNszydpjjs.EdbCode, startDate)
|
|
err = models.RefreshAllCalculateNszydpjjs(edbInfoId, edbInfo.Source, formulaInt, fromEdbInfo, calculateNszydpjjs.EdbCode, startDate)
|
|
if err != nil && err.Error() != utils.ErrNoRow() {
|
|
if err != nil && err.Error() != utils.ErrNoRow() {
|
|
errMsg = "RefreshCalculateNszydpjjs Err:" + err.Error()
|
|
errMsg = "RefreshCalculateNszydpjjs Err:" + err.Error()
|