xyxie пре 11 месеци
родитељ
комит
ed40d0de61
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      models/chart.go

+ 1 - 1
models/chart.go

@@ -157,7 +157,7 @@ func GetEdbDataList(source, subSource, endInfoId int, startDate, endDate string)
 		condition += ` AND data_time<=? `
 		pars = append(pars, endDate)
 	}
-	sql := `SELECT edb_data_id,edb_info_id,data_time,TRUNCATE(value,4) AS value,data_timestamp FROM %s WHERE edb_info_id=? `
+	sql := `SELECT edb_data_id,edb_info_id,data_time,value,data_timestamp FROM %s WHERE edb_info_id=? `
 	if condition != "" {
 		sql += condition
 	}