Explorar o código

fix: 预测指标日期格式

hsun hai 7 meses
pai
achega
1a4c95a77e
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      models/edb_info.go

+ 1 - 0
models/edb_info.go

@@ -910,6 +910,7 @@ func UnifiedModifyPredictEdbInfoMaxAndMinInfo(edbInfo *EdbInfo, latestDateStr st
 	maxAndMinItem.EndValue = maxAndMinItem.LatestValue
 
 	if maxAndMinItem != nil {
+		latestDateStr = utils.GormDateStrToDateStr(latestDateStr)
 		maxAndMinItem.LatestDate = latestDateStr
 		maxAndMinItem.LatestValue = latestValue
 		err = ModifyPredictEdbInfoMaxAndMinInfo(edbInfo.EdbInfoId, maxAndMinItem)