From e07e4546eb630a7ae6a9216c55a0d997d4a644f3 Mon Sep 17 00:00:00 2001 From: huanghongfa <huanghongfa123456> Date: 星期四, 10 六月 2021 15:55:57 +0800 Subject: [PATCH] 修改bug以及高龄老人报表基础类 --- springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/dtos/grid/CommonEventAddDTO.java | 16 +++++++++++++--- 1 files changed, 13 insertions(+), 3 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/dtos/grid/CommonEventAddDTO.java b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/dtos/grid/CommonEventAddDTO.java index 6da1191..640264b 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/dtos/grid/CommonEventAddDTO.java +++ b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/dtos/grid/CommonEventAddDTO.java @@ -43,13 +43,17 @@ @ApiModelProperty(value = "发生地点-位置备注", hidden = false, example = "") private String happentAddress; - //位置备注 + @Length(max=255) + @ApiModelProperty(value = "事件发生地点", hidden = false, example = "", required = true) + private String happenAddress; + @Max(9223372036854775807L) @ApiModelProperty(value = "发生区域-网格ID", hidden = false, example = "1", required = true) @NotNull(message = "发生区域-网格ID不能为空") private Long gridId; - @Length(max=255) + + @Length(max=500, message = "事件描述长度不能超过500") @ApiModelProperty(value = "事件描述", hidden = false, example = "", required = true) @NotNull(message = "事件描述不能为空") private String eventDes; @@ -60,7 +64,7 @@ private String eventClazz; @Max(127) - @ApiModelProperty(value = "危险级别:1(特别重大)、2(重大)、3(较大)、4(一般)", hidden = false, example = "1", required = true) + @ApiModelProperty(value = "危险级别:0 (无) 1(特别重大)、2(重大)、3(较大)、4(一般)", hidden = false, example = "1", required = true) @NotNull(message = "危险级别不能为空") private Integer dangerLevel; @@ -85,9 +89,15 @@ @ApiModelProperty(value = "音频(限1个)", hidden = false, example = "http://image.panzhihua.nhys.cdnhxx.com/idcard/8f77d43e8bce47d38b63e2a8ceb0a7c6.mp3") private String audio; + @ApiModelProperty(value = "音频时长(单位:秒)", hidden = false, example = "10") + private Integer audioTime; + @ApiModelProperty(value = "视频(限1个)", hidden = false, example = "http://image.panzhihua.nhys.cdnhxx.com/idcard/8f77d43e8bce47d38b63e2a8ceb0a7c6.mp4") private String video; + @ApiModelProperty(value = "视频时长(单位:秒)", hidden = false, example = "10") + private Integer videoTime; + @ApiModelProperty(value = "图片,逗号隔开(限9张)", hidden = false, example = "http://image.panzhihua.nhys.cdnhxx.com/idcard/8f77d43e8bce47d38b63e2a8ceb0a7c6.jpg,http://image.panzhihua.nhys.cdnhxx.com/idcard/8f77d43e8bce47d38b63e2a8ceb0a7c6.jpg") private String pics; -- Gitblit v1.7.1