longyu 3 жил өмнө
parent
commit
b4d934dec8
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      models/chart.go

+ 1 - 1
models/chart.go

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