diff --git a/ruoyi-admin/src/main/java/com/ruoyi/screen/domain/response/ZongzhiSafetyHazardResponse.java b/ruoyi-admin/src/main/java/com/ruoyi/screen/domain/response/ZongzhiSafetyHazardResponse.java index 7e6d5ba..a5858df 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/screen/domain/response/ZongzhiSafetyHazardResponse.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/screen/domain/response/ZongzhiSafetyHazardResponse.java @@ -16,8 +16,8 @@ public class ZongzhiSafetyHazardResponse { private Integer count; - @ApiModelProperty(value = "攻击源IP地址区域") - private String attackIpRegion; + @ApiModelProperty(value = "隐患类型1.敏感信息泄露漏洞 2.权限许可和访问控制 3.未加密登录请求 4.应用程序测试脚本漏洞 5.文件上传漏洞 6.其他") + private Integer type; } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/screen/domain/response/ZongzhiSentimenWordCloudResponse.java b/ruoyi-admin/src/main/java/com/ruoyi/screen/domain/response/ZongzhiSentimenWordCloudResponse.java index 3c83abf..c749335 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/screen/domain/response/ZongzhiSentimenWordCloudResponse.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/screen/domain/response/ZongzhiSentimenWordCloudResponse.java @@ -1,5 +1,6 @@ package com.ruoyi.screen.domain.response; +import com.ruoyi.common.annotation.Excel; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; @@ -17,4 +18,8 @@ public class ZongzhiSentimenWordCloudResponse { */ @ApiModelProperty(value = "词云类别1.开门红 2.城乡文明融合") private Integer type; + + + + } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/screen/domain/response/ZongzhiSentimentTypeResponse.java b/ruoyi-admin/src/main/java/com/ruoyi/screen/domain/response/ZongzhiSentimentTypeResponse.java index aae6d85..02e12b9 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/screen/domain/response/ZongzhiSentimentTypeResponse.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/screen/domain/response/ZongzhiSentimentTypeResponse.java @@ -1,9 +1,12 @@ package com.ruoyi.screen.domain.response; +import com.fasterxml.jackson.annotation.JsonFormat; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; +import java.util.Date; + /** * 舆情走势图响应类 */ @@ -28,4 +31,15 @@ public class ZongzhiSentimentTypeResponse { private Integer type; + + + /** + * 发布时间 + */ + @ApiModelProperty(value = "发布时间") + @JsonFormat(pattern = "yyyy-MM-dd") + private Date publishTime; + + + } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/zongzhi/domain/TcNetworkSentiment.java b/ruoyi-admin/src/main/java/com/ruoyi/zongzhi/domain/TcNetworkSentiment.java index 4511d4d..c2acb07 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/zongzhi/domain/TcNetworkSentiment.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/zongzhi/domain/TcNetworkSentiment.java @@ -125,6 +125,24 @@ public class TcNetworkSentiment extends BaseEntity { @ApiModelProperty(value = "文件地址") private String fileUrl; + + /** + * 是否提示 1是 2否 + */ + @Excel(name = "是否提示 1是 2否") + @ApiModelProperty(value = "是否提示 1是 2否") + private Long reminder; + + + /** + * 舆情报告类型1:专报 2:月报3:深度报告 + */ + @Excel(name = "舆情报告类型1:专报 2:月报3:深度报告") + @ApiModelProperty(value = "舆情报告类型1:专报 2:月报3:深度报告") + private String sentimentReportType; + + + /** * 创建人ID */ diff --git a/ruoyi-system/src/main/resources/mapper/screen/ZongzhiScreenManageMapper.xml b/ruoyi-system/src/main/resources/mapper/screen/ZongzhiScreenManageMapper.xml index 27f5af6..d35fbb7 100644 --- a/ruoyi-system/src/main/resources/mapper/screen/ZongzhiScreenManageMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/screen/ZongzhiScreenManageMapper.xml @@ -8,7 +8,7 @@ - select count(*) as count ,sentiment_type as type + select count(*) as count ,sentiment_type as type,publish_time as publishTime + from tc_network_sentiment where sentiment_type in ("1", "2") - GROUP BY sentiment_type + GROUP BY sentiment_type,publish_time and area_id = #{areaId} + and reminder = #{reminder} + and sentiment_report_type = #{sentimentReportType} and sentiment_name like concat('%', #{sentimentName}, '%') and sentiment_content = #{sentimentContent} and dep_name like concat('%', #{depName}, '%') @@ -64,7 +69,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" insert into tc_network_sentiment area_id, + sentiment_name, + reminder, + sentiment_report_type, sentiment_content, dep_name, publish_time, @@ -88,7 +96,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" #{areaId}, #{sentimentName}, + #{reminder}, #{sentimentContent}, + #{sentimentReportType}, #{depName}, #{publishTime}, #{sentimentState}, @@ -115,7 +125,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" area_id = #{areaId}, sentiment_name = #{sentimentName}, + reminder = #{reminder}, sentiment_content = #{sentimentContent}, + sentiment_report_type = #{sentimentReportType}, dep_name = #{depName}, publish_time = #{publishTime}, sentiment_state = #{sentimentState},