7 changed files with 133 additions and 45 deletions
@ -1,21 +0,0 @@ |
|||
package com.kms.yxgh.common.controller; |
|||
|
|||
import io.swagger.annotations.Api; |
|||
import lombok.AllArgsConstructor; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
/** |
|||
* @ClassName: WarningDataController |
|||
* @Description: TODO |
|||
* @Date: 2024/3/24 下午9:27 |
|||
* * |
|||
* @author: hxh |
|||
* @version: 1.0 |
|||
*/ |
|||
@RestController |
|||
@AllArgsConstructor |
|||
@RequestMapping("/run/api/indicator") |
|||
@Api(tags = "运行管理运行指标相关") |
|||
public class WarningDataController { |
|||
} |
@ -0,0 +1,84 @@ |
|||
package com.kms.yxgh.common.dto; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* @ClassName: IndicatorDto |
|||
* @Description: TODO |
|||
* @Date: 2024/3/25 上午9:55 |
|||
* * |
|||
* @author: hxh |
|||
* @version: 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel("监测数据表") |
|||
public class IndicatorDto { |
|||
|
|||
@ApiModelProperty("id") |
|||
private String name; |
|||
@ApiModelProperty("编码") |
|||
private String code; |
|||
@ApiModelProperty("类型:1堤防,2水闸") |
|||
private String type; |
|||
|
|||
@ApiModelProperty("测站编码") |
|||
private String stcd; |
|||
// 上游水位
|
|||
@ApiModelProperty("上游水位") |
|||
private Float upstreamLevel; |
|||
// 下游水位
|
|||
@ApiModelProperty("下游水位") |
|||
private Float downstreamLevel; |
|||
// 开度
|
|||
@ApiModelProperty("开度") |
|||
private Float opening; |
|||
// 过闸流量
|
|||
@ApiModelProperty("过闸流量") |
|||
private Float gateFlow; |
|||
|
|||
// 雨量
|
|||
@ApiModelProperty("雨量") |
|||
private Float rainFall; |
|||
// 绕渗透压
|
|||
@ApiModelProperty("绕渗透压") |
|||
private Float bypassOsmoticPressure; |
|||
// 渗透压计高程
|
|||
@ApiModelProperty("渗透压计高程") |
|||
private Float osmoticPressureGaugeElevation; |
|||
// 闸机扬压力
|
|||
@ApiModelProperty("闸机扬压力") |
|||
private Float boostPressure; |
|||
// 水闸接缝
|
|||
@ApiModelProperty("水闸接缝") |
|||
private Float seam; |
|||
// 裂缝开合度
|
|||
@ApiModelProperty("裂缝开合度") |
|||
private Float crackOpeningDegree; |
|||
// 闸墩变形x
|
|||
@ApiModelProperty("闸墩变形x") |
|||
private Float deformationX; |
|||
// 闸墩变形y
|
|||
@ApiModelProperty("闸墩变形y") |
|||
private Float deformationY; |
|||
// 闸机油温
|
|||
@ApiModelProperty("闸机油温") |
|||
private Float oilTemperature; |
|||
// 采集时间
|
|||
@ApiModelProperty("采集时间") |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
|||
private Date collectionTime; |
|||
|
|||
@ApiModelProperty("年") |
|||
private Integer year; |
|||
@ApiModelProperty("月") |
|||
private Integer month; |
|||
@ApiModelProperty("日") |
|||
private Integer day; |
|||
@ApiModelProperty("时") |
|||
private Integer hour; |
|||
} |
@ -0,0 +1,16 @@ |
|||
package com.kms.yxgh.common.service; |
|||
|
|||
import org.springframework.stereotype.Service; |
|||
|
|||
/** |
|||
* @ClassName: WarningDataService |
|||
* @Description: TODO |
|||
* @Date: 2024/3/25 上午9:42 |
|||
* * |
|||
* @author: hxh |
|||
* @version: 1.0 |
|||
*/ |
|||
|
|||
@Service |
|||
public class IndicatorService { |
|||
} |
Loading…
Reference in new issue