influxDB测试
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
package com.njcn.common.utils;
|
||||
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
|
||||
import javax.validation.Valid;
|
||||
import javax.validation.constraints.Max;
|
||||
@@ -16,7 +16,6 @@ import java.util.List;
|
||||
* @version 1.0.0
|
||||
* @createTime 2023/5/5 15:11
|
||||
*/
|
||||
@Validated
|
||||
public class HarmonicTimesUtil {
|
||||
|
||||
/***
|
||||
@@ -27,7 +26,7 @@ public class HarmonicTimesUtil {
|
||||
* @param interval 间隔
|
||||
* @return List<Object>
|
||||
*/
|
||||
public static List<Object> harmonicTimesList(@Min(value = 1) @Max(value = 100) Integer start, @Min(value = 1) @Max(value = 100) Integer end, Integer interval) {
|
||||
public static List<Object> harmonicTimesList(@Min(value = 1) @Max(value = 100) Integer start, @Min(value = 1) @Max(value = 100) Integer end, @Min(value = 1) Integer interval) {
|
||||
List<Object> timesList = new ArrayList<>();
|
||||
for (int i = start; i <= end;i = i+interval) {
|
||||
timesList.add(i);
|
||||
|
||||
Reference in New Issue
Block a user