25 changed files with 663 additions and 94 deletions
@ -0,0 +1,38 @@ |
|||
package com.kms.yg.cz.controller; |
|||
|
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.kms.yg.cz.dto.AlarmInfoDto; |
|||
import com.kms.yg.cz.dto.MonitorQueDto; |
|||
import com.kms.yg.cz.service.AlarmService; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import lombok.AllArgsConstructor; |
|||
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; |
|||
|
|||
|
|||
/** |
|||
* 监测信息Controller |
|||
* |
|||
* @author kms |
|||
* @date 2024-04-24 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("/cz/alarm") |
|||
@AllArgsConstructor |
|||
@Api(tags = "监测告警信息") |
|||
public class AlarmController { |
|||
|
|||
private final AlarmService alarmService; |
|||
|
|||
|
|||
@PostMapping("/page") |
|||
@ApiOperation("分页查询监测信息") |
|||
public IPage<AlarmInfoDto> page(@RequestBody MonitorQueDto sp) { |
|||
return alarmService.pageQuery(sp); |
|||
} |
|||
|
|||
|
|||
} |
@ -0,0 +1,37 @@ |
|||
package com.kms.yg.cz.dto; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
@Data |
|||
@ApiModel("告警信息") |
|||
public class AlarmInfoDto { |
|||
|
|||
@ApiModelProperty(value = "测站名称") |
|||
private String stnm; |
|||
|
|||
@ApiModelProperty(value = "测站编码") |
|||
private String stcd; |
|||
|
|||
@ApiModelProperty(value = "测站类型") |
|||
private String sttp; |
|||
|
|||
@ApiModelProperty(value = "预警类型") |
|||
private String alarmType; |
|||
|
|||
@ApiModelProperty(value = "监测数据") |
|||
private String monitorData; |
|||
|
|||
@ApiModelProperty(value = "预警值") |
|||
private String alarmValue; |
|||
|
|||
@ApiModelProperty(value = "预警时间") |
|||
private String alarmTime; |
|||
|
|||
@ApiModelProperty(value = "预警状态") |
|||
private String alarmStatus; |
|||
|
|||
@ApiModelProperty(value = "告警处置") |
|||
private String alarmDisposal; |
|||
} |
@ -0,0 +1,34 @@ |
|||
package com.kms.yg.cz.dto; |
|||
|
|||
import com.alibaba.fastjson.annotation.JSONField; |
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import com.kms.yg.cz.enmu.MonitorComposeEnum; |
|||
import com.kms.yg.cz.enmu.MonitorSourceEnum; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotNull; |
|||
import java.util.Date; |
|||
|
|||
@Data |
|||
@ApiModel("监测告警请求参数") |
|||
public class AlarmQueDto { |
|||
|
|||
@JSONField(name = "START_TIME", format = "yyyy-MM-dd HH:mm:ss") |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
|||
@NotNull(message = "开始时间不能为空") |
|||
@ApiModelProperty(value = "开始时间", required = true) |
|||
private Date startTime; |
|||
|
|||
@JSONField(name = "END_TIME", format = "yyyy-MM-dd HH:mm:ss") |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
|||
@NotNull(message = "结束时间不能为空") |
|||
@ApiModelProperty(value = "结束时间", required = true) |
|||
private Date endTime; |
|||
|
|||
@ApiModelProperty(value = "页码") |
|||
private Integer pageSize = 10; |
|||
@ApiModelProperty(value = "每页条数") |
|||
private Integer pageNum = 1; |
|||
} |
@ -0,0 +1,18 @@ |
|||
package com.kms.yg.cz.dto; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
|
|||
@ApiModel("测点查询Dto") |
|||
@Data |
|||
public class AttMpQueDto { |
|||
|
|||
@ApiModelProperty("水库编码") |
|||
private String resCode; |
|||
|
|||
@ApiModelProperty("测点类型") |
|||
private String mpType; |
|||
|
|||
} |
@ -0,0 +1,54 @@ |
|||
package com.kms.yg.cz.dto; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.util.List; |
|||
|
|||
@ApiModel("图表信息") |
|||
@Data |
|||
public class CharInfoDto { |
|||
@ApiModelProperty(value = "x轴") |
|||
private List<String> xAxis; |
|||
|
|||
@ApiModelProperty(value = "y轴") |
|||
private List<YAxis> yAxis; |
|||
|
|||
@ApiModelProperty(value = "标线") |
|||
private List<MarkLine> markLine; |
|||
|
|||
@Data |
|||
@ApiModel("y轴") |
|||
public static class YAxis { |
|||
@ApiModelProperty(value = "名称") |
|||
private String name; |
|||
|
|||
@ApiModelProperty(value = "单位") |
|||
private String unit; |
|||
|
|||
@ApiModelProperty(value = "数据") |
|||
private List<Series> series; |
|||
} |
|||
|
|||
@ApiModel("y轴数据") |
|||
@Data |
|||
public static class Series { |
|||
|
|||
@ApiModelProperty(value = "名称") |
|||
private String name; |
|||
|
|||
@ApiModelProperty(value = "数据") |
|||
private List<String> data; |
|||
} |
|||
|
|||
@ApiModel("标线") |
|||
@Data |
|||
public static class MarkLine { |
|||
@ApiModelProperty(value = "名称") |
|||
private String name; |
|||
|
|||
@ApiModelProperty(value = "值") |
|||
private String value; |
|||
} |
|||
} |
@ -0,0 +1,49 @@ |
|||
package com.kms.yg.cz.dto; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
@Data |
|||
@ApiModel("当前水情监测信息") |
|||
public class CurrentWaterMonitorDto { |
|||
|
|||
@ApiModelProperty(value = "当前库水位") |
|||
private String currentRz; |
|||
|
|||
@ApiModelProperty(value = "当前蓄水量") |
|||
private String currentW; |
|||
|
|||
@ApiModelProperty(value = "最大库水位") |
|||
private String maxRz; |
|||
|
|||
@ApiModelProperty(value = "最小库水位") |
|||
private String minRz; |
|||
|
|||
@ApiModelProperty(value = "平均库水位") |
|||
private String avgRz; |
|||
|
|||
@ApiModelProperty(value = "最大库水位时间") |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
|||
private String maxRzTime; |
|||
|
|||
@ApiModelProperty(value = "最小库水位时间") |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
|||
private String minRzTime; |
|||
|
|||
@ApiModelProperty(value = "日降雨量") |
|||
private String dyp; |
|||
|
|||
@ApiModelProperty(value = "平均降雨量") |
|||
private String avgDyp; |
|||
|
|||
@ApiModelProperty(value = "最大降雨量") |
|||
private String maxDyp; |
|||
|
|||
@ApiModelProperty(value = "最大降雨量时间") |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
|||
private String maxDypTime; |
|||
|
|||
|
|||
} |
@ -0,0 +1,59 @@ |
|||
package com.kms.yg.cz.enmu; |
|||
|
|||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import com.kms.yg.cz.dto.CharInfoDto; |
|||
import com.kms.yg.sk.mapper.AttResRfkwlvMapper; |
|||
import com.kms.yg.sk.mapper.AttResRsppMapper; |
|||
import com.shuili.common.utils.SpringUtils; |
|||
import com.shuili.common.utils.StringUtils; |
|||
import lombok.Getter; |
|||
|
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
@Getter |
|||
public enum MarkTypeEnum { |
|||
|
|||
FSLTDZ_LIMIT("汛限水位", "m", Constants.DEFAULT_KEY_FIELD, "fsltdz", AttResRfkwlvMapper.class), |
|||
CHFLLV("校准洪核水位", "m", Constants.DEFAULT_KEY_FIELD, "chfllv", AttResRsppMapper.class), |
|||
; |
|||
|
|||
private final String zhName; |
|||
private final String unit; |
|||
private final String keyField; |
|||
private final String valueField; |
|||
private final Class<? extends BaseMapper> clazz; |
|||
|
|||
MarkTypeEnum(String zhName, String unit, String keyField, String valueField, Class<? extends BaseMapper> clazz) { |
|||
this.zhName = zhName; |
|||
this.unit = unit; |
|||
this.keyField = keyField; |
|||
this.valueField = valueField; |
|||
this.clazz = clazz; |
|||
} |
|||
|
|||
|
|||
public CharInfoDto.MarkLine toMarkLine(String code) { |
|||
CharInfoDto.MarkLine markLine = new CharInfoDto.MarkLine(); |
|||
markLine.setName(zhName + "(" + unit + ")"); |
|||
markLine.setValue("0"); |
|||
if (StringUtils.isEmpty(code)) { |
|||
return markLine; |
|||
} |
|||
BaseMapper mapper = SpringUtils.getBean(clazz); |
|||
List<Map<String, Object>> results = mapper.selectMaps(new QueryWrapper<>().select(valueField).eq(keyField, code)); |
|||
if (!results.isEmpty()) { |
|||
Map<String, Object> result = results.get(0); |
|||
String value = result.get(valueField).toString(); |
|||
if (StringUtils.isNotBlank(value)) { |
|||
markLine.setValue(value); |
|||
} |
|||
} |
|||
return markLine; |
|||
} |
|||
|
|||
public final static class Constants { |
|||
public static final String DEFAULT_KEY_FIELD = "ID"; |
|||
} |
|||
} |
@ -0,0 +1,41 @@ |
|||
package com.kms.yg.cz.enmu; |
|||
|
|||
import lombok.Getter; |
|||
|
|||
import java.util.Arrays; |
|||
import java.util.List; |
|||
import java.util.function.Supplier; |
|||
import java.util.stream.Collectors; |
|||
|
|||
|
|||
@Getter |
|||
public enum MonitorComposeEnum { |
|||
|
|||
// WATER_LEVEL(Arrays.asList(MonitorTypeEnum.WATER_LEVEL, MonitorTypeEnum.RAINFALL)),
|
|||
// ENV(Arrays.asList(MonitorTypeEnum.AIR_TEMPE, MonitorTypeEnum.WATER_TEMPE)),
|
|||
; |
|||
|
|||
|
|||
private final List<MonitorTypeEnum> leftElements; |
|||
private final List<MonitorTypeEnum> rightElements; |
|||
private final Supplier<String> leftName; |
|||
private final Supplier<String> leftUnit; |
|||
private final Supplier<String> rightName; |
|||
private final Supplier<String> rightUnit; |
|||
|
|||
|
|||
MonitorComposeEnum(List<MonitorTypeEnum> leftElements, List<MonitorTypeEnum> rightElements) { |
|||
this.leftElements = leftElements; |
|||
this.rightElements = rightElements; |
|||
this.leftName = () -> leftElements.stream().map(MonitorTypeEnum::getZhName).collect(Collectors.joining("/")); |
|||
this.leftUnit = () -> leftElements.stream().map(MonitorTypeEnum::getUnit).distinct().collect(Collectors.joining("/")); |
|||
this.rightName = () -> rightElements.stream().map(MonitorTypeEnum::getZhName).collect(Collectors.joining("/")); |
|||
this.rightUnit = () -> rightElements.stream().map(MonitorTypeEnum::getUnit).distinct().collect(Collectors.joining("/")); |
|||
} |
|||
|
|||
// public List<MonitorSourceEnum> getSource() {
|
|||
// return elements.stream().map(MonitorTypeEnum::getSource).distinct().collect(Collectors.toList());
|
|||
// }
|
|||
|
|||
|
|||
} |
@ -0,0 +1,37 @@ |
|||
package com.kms.yg.cz.enmu; |
|||
|
|||
import lombok.Getter; |
|||
|
|||
@Getter |
|||
public enum MonitorTypeEnum { |
|||
WATER_LEVEL("水位", MonitorSourceEnum.MS_HDM_RSVR, "rz", "collTime", "m", MarkTypeEnum.FSLTDZ_LIMIT), |
|||
RAINFALL("降雨量", MonitorSourceEnum.MS_HDM_OBP, "drp", "collTime", "mm", MarkTypeEnum.CHFLLV), |
|||
AIR_TEMPE("气温", MonitorSourceEnum.MS_DSM_ENV, "aitp", "tm", "℃"), |
|||
WATER_TEMPE("水温", MonitorSourceEnum.MS_DSM_ENV, "ctp", "tm", "℃"), |
|||
UPLIFTED_PRESSURE("扬压力", MonitorSourceEnum.MS_DSM_PTMP, "upliftedPressure", "mstm", "MPa"), |
|||
PERMEABILITY_PRESSURE("渗透压力", MonitorSourceEnum.MS_DSM_SPPR, "spprwl", "mstm", "MPa"), |
|||
|
|||
; |
|||
|
|||
private final String zhName; |
|||
private final MonitorSourceEnum source; |
|||
private final String valueField; |
|||
private final String timeField; |
|||
private final String unit; |
|||
private final MarkTypeEnum markType; |
|||
|
|||
MonitorTypeEnum(String zhName, MonitorSourceEnum source, String valueField, String timeField, String unit) { |
|||
this(zhName, source, valueField, timeField, unit, null); |
|||
} |
|||
|
|||
MonitorTypeEnum(String zhName, MonitorSourceEnum source, String valueField, String timeField, String unit, MarkTypeEnum markType) { |
|||
this.zhName = zhName; |
|||
this.source = source; |
|||
this.valueField = valueField; |
|||
this.unit = unit; |
|||
this.markType = markType; |
|||
this.timeField = timeField; |
|||
} |
|||
|
|||
|
|||
} |
@ -0,0 +1,19 @@ |
|||
package com.kms.yg.cz.service; |
|||
|
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|||
import com.kms.yg.cz.dto.AlarmInfoDto; |
|||
import com.kms.yg.cz.dto.MonitorQueDto; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
|
|||
@Service |
|||
@Slf4j |
|||
public class AlarmService { |
|||
|
|||
|
|||
public IPage<AlarmInfoDto> pageQuery(MonitorQueDto sp) { |
|||
return new Page<>(); |
|||
} |
|||
} |
@ -0,0 +1,23 @@ |
|||
package com.kms.yg.sk.domain; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableField; |
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
import com.shuili.common.core.domain.BaseEntity; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
@TableName("att_res_code") |
|||
@Data |
|||
@ApiModel("水库编码信息") |
|||
public class AttResCode extends BaseEntity { |
|||
|
|||
@ApiModelProperty("水库编码") |
|||
private String resCode; |
|||
|
|||
@ApiModelProperty("主测站编码") |
|||
private String stcd; |
|||
|
|||
@TableField(exist = false) |
|||
private String remark; |
|||
} |
@ -0,0 +1,41 @@ |
|||
package com.kms.yg.sk.domain; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableField; |
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
import com.shuili.common.core.domain.BaseEntity; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
@TableName("att_res_rfkwlv") |
|||
@Data |
|||
public class AttResRfkwlv extends BaseEntity { |
|||
|
|||
@ApiModelProperty("水库代码") |
|||
private String resCode; |
|||
|
|||
@ApiModelProperty("开启年份") |
|||
private String actyr; |
|||
|
|||
@ApiModelProperty("开启日期") |
|||
private String bgmd; |
|||
|
|||
@ApiModelProperty("汛限水位") |
|||
private String rsltdz; |
|||
|
|||
@ApiModelProperty("结束日期") |
|||
private String edmd; |
|||
|
|||
@ApiModelProperty("汛限库容") |
|||
private String flstdw; |
|||
|
|||
@ApiModelProperty("启用标识") |
|||
private String enableFlag; |
|||
|
|||
@ApiModelProperty("备注") |
|||
private String note; |
|||
|
|||
@TableField(exist = false) |
|||
private String remark; |
|||
|
|||
|
|||
} |
@ -0,0 +1,17 @@ |
|||
package com.kms.yg.sk.mapper; |
|||
|
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import com.kms.yg.sk.domain.AttResCode; |
|||
import org.springframework.stereotype.Repository; |
|||
|
|||
|
|||
/** |
|||
* 【请填写功能名称】Mapper接口 |
|||
* |
|||
* @author kms |
|||
* @date 2024-04-24 |
|||
*/ |
|||
@Repository |
|||
public interface AttResCodeMapper extends BaseMapper<AttResCode> { |
|||
|
|||
} |
@ -0,0 +1,17 @@ |
|||
package com.kms.yg.sk.mapper; |
|||
|
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import com.kms.yg.sk.domain.AttResRfkwlv; |
|||
import org.springframework.stereotype.Repository; |
|||
|
|||
|
|||
/** |
|||
* 【请填写功能名称】Mapper接口 |
|||
* |
|||
* @author kms |
|||
* @date 2024-04-24 |
|||
*/ |
|||
@Repository |
|||
public interface AttResRfkwlvMapper extends BaseMapper<AttResRfkwlv> { |
|||
|
|||
} |
@ -0,0 +1,19 @@ |
|||
package com.kms.yg.sk.service; |
|||
|
|||
import com.kms.yg.sk.domain.AttResBase; |
|||
import com.kms.yg.sk.domain.AttResCode; |
|||
import com.kms.yg.sk.mapper.AttResBaseMapper; |
|||
import com.kms.yg.sk.mapper.AttResCodeMapper; |
|||
import com.shuili.common.core.service.BaseService; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
/** |
|||
* 【请填写功能名称】Service接口 |
|||
* |
|||
* @author kms |
|||
* @date 2024-04-24 |
|||
*/ |
|||
@Service |
|||
public class AttResCodeService extends BaseService<AttResCodeMapper, AttResCode>{ |
|||
|
|||
} |
@ -1,115 +1,72 @@ |
|||
package com.kms.yxgh.base.domain.monitor; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableField; |
|||
import com.alibaba.fastjson.annotation.JSONField; |
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import com.kms.yxgh.base.SyBaseEntity; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.math.BigDecimal; |
|||
import java.util.Date; |
|||
|
|||
@TableName("ms_dsm_sppr") |
|||
@Data |
|||
@ApiModel("渗流压力水位监测表") |
|||
public class MsHdmSppr extends SyBaseEntity { |
|||
public class MsDsmSppr { |
|||
|
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 水利工程测站代码 |
|||
*/ |
|||
@ApiModelProperty("水利工程测站代码") |
|||
@TableField("PRJ_STCD") |
|||
@JSONField(name = "PRJ_STCD") |
|||
private String prjStcd; |
|||
|
|||
/** |
|||
* 测点编号 |
|||
*/ |
|||
@ApiModelProperty("测点编号") |
|||
@TableField("MPCD") |
|||
@JSONField(name = "MPCD") |
|||
private String mpcd; |
|||
|
|||
/** |
|||
* 测量时间 |
|||
*/ |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|||
@ApiModelProperty("测量时间") |
|||
@TableField("MSTM") |
|||
@JSONField(name = "MSTM", format = "yyyy-MM-dd HH:mm:ss") |
|||
private Date mstm; |
|||
|
|||
/** |
|||
* 温度(℃) |
|||
*/ |
|||
@ApiModelProperty("温度(℃)") |
|||
@TableField("TMP") |
|||
private BigDecimal tmp; |
|||
/** |
|||
* 渗流压力水位(m) |
|||
*/ |
|||
@JSONField(name = "TMP") |
|||
private String tmp; |
|||
|
|||
@ApiModelProperty("渗流压力水位(m)") |
|||
@TableField("SPPRWL") |
|||
private BigDecimal spprwl; |
|||
@JSONField(name = "SPPRWL") |
|||
private String spprwl; |
|||
|
|||
/** |
|||
* 采集方式 |
|||
*/ |
|||
@ApiModelProperty("采集方式") |
|||
@TableField("COLMT") |
|||
@JSONField(name = "COLMT") |
|||
private String colmt; |
|||
|
|||
/** |
|||
* 机构代码 |
|||
*/ |
|||
@ApiModelProperty("机构代码") |
|||
@TableField("GDWR_OGID") |
|||
@JSONField(name = "GDWR_OGID") |
|||
private String gdwrOgid; |
|||
|
|||
/** |
|||
* 级联时间 |
|||
*/ |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|||
@ApiModelProperty("级联时间") |
|||
@TableField("CONN_TIME") |
|||
@JSONField(name = "CONN_TIME", format = "yyyy-MM-dd HH:mm:ss") |
|||
private Date connTime; |
|||
|
|||
/** |
|||
* 采集时间 |
|||
*/ |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|||
@ApiModelProperty("采集时间") |
|||
@TableField("COLL_TIME") |
|||
@JSONField(name = "COLL_TIME", format = "yyyy-MM-dd HH:mm:ss") |
|||
private Date collTime; |
|||
|
|||
/** |
|||
* 数据来源 |
|||
*/ |
|||
@ApiModelProperty("数据来源") |
|||
@TableField("GDWR_DASC") |
|||
@JSONField(name = "GDWR_DASC") |
|||
private String gdwrDasc; |
|||
|
|||
/** |
|||
* 置信度 |
|||
*/ |
|||
@ApiModelProperty("置信度") |
|||
@TableField("RELIABILITY") |
|||
@JSONField(name = "RELIABILITY") |
|||
private String reliability; |
|||
|
|||
/** |
|||
* 指令ID |
|||
*/ |
|||
@ApiModelProperty("指令ID") |
|||
@TableField("COMMAND_ID") |
|||
@JSONField(name = "COMMAND_ID") |
|||
private String commandId; |
|||
|
|||
/** |
|||
* 入库时间 |
|||
*/ |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|||
@ApiModelProperty("入库时间") |
|||
@TableField("CREATE_TIME") |
|||
@JSONField(name = "CREATE_TIME", format = "yyyy-MM-dd HH:mm:ss") |
|||
private Date createTime; |
|||
} |
@ -0,0 +1,12 @@ |
|||
SET NAMES utf8mb4; |
|||
|
|||
CREATE TABLE `bs_sgc_st_mon` ( |
|||
`STCD` VARCHAR(18) COLLATE utf8mb4_general_ci COMMENT '测站编码', |
|||
`MON_PROJ` VARCHAR(50) COLLATE utf8mb4_general_ci COMMENT '测站监测要素', |
|||
`CREATE_UID` varchar(32) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '创建人', |
|||
`CREATE_TIME` datetime DEFAULT NULL COMMENT '创建时间', |
|||
`UPDATE_UID` varchar(32) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '最近修改人', |
|||
`UPDATE_TIME` datetime DEFAULT NULL COMMENT '最近修改时间' |
|||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='水文水工程监测站基础信息'; |
|||
|
|||
CREATE INDEX bs_sgc_st_mon_STCD_IDX USING BTREE ON bs_sgc_st_mon (STCD); |
Loading…
Reference in new issue