服务器时区查询接口
This commit is contained in:
@ -25,16 +25,11 @@ import io.swagger.annotations.ApiOperation;
|
||||
import jodd.util.StringUtil;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Calendar;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.*;
|
||||
|
||||
|
||||
/**
|
||||
@ -59,6 +54,12 @@ public class AutoDeviceCurveController {
|
||||
@Autowired
|
||||
DeviceTypeColService deviceTypeColService;
|
||||
|
||||
@GetMapping("/time")
|
||||
@TokenIgnore
|
||||
public String checkTime() {
|
||||
return "时区:" + TimeZone.getDefault().getID() +
|
||||
" | 时间:" + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss Z").format(new Date());
|
||||
}
|
||||
|
||||
@PostMapping("queryCurve")
|
||||
@ApiOperation(value = "查询两个曲线的差值/查询单条曲线")
|
||||
|
||||
Reference in New Issue
Block a user