大屏安全监管检测对象接口修改

dongdingding
董丁丁 2 years ago
parent 1482347015
commit 72ceb070a8

@ -19,7 +19,6 @@ public class ZongzhiSentimentCountResponse {
private Integer count; private Integer count;
/** /**
* 1. 2. 3. * 1. 2. 3.
* 4. 5. * 4. 5.
@ -27,5 +26,9 @@ public class ZongzhiSentimentCountResponse {
@ApiModelProperty(value = "舆情类型1.敏感 2.非敏感 3.本地相关信息 4.推送预警信息 5.聚焦本地媒体信息") @ApiModelProperty(value = "舆情类型1.敏感 2.非敏感 3.本地相关信息 4.推送预警信息 5.聚焦本地媒体信息")
private Integer type; private Integer type;
/**
*
*/
@ApiModelProperty(value = "百分比")
private double pt;
} }

@ -4,6 +4,8 @@ import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import java.util.List;
/** /**
* *
*/ */
@ -16,13 +18,13 @@ public class ZongzhiSuperviseResponse {
* *
*/ */
@ApiModelProperty(value = "等保系统响应类") @ApiModelProperty(value = "等保系统响应类")
private ZongzhiDengbaoSystemResponse zongzhiDengbaoSystemResponse; private List<ZongzhiDengbaoSystemResponse> zongzhiDengbaoSystemResponse;
/** /**
* *
*/ */
@ApiModelProperty(value = "等保单位响应类") @ApiModelProperty(value = "等保单位响应类")
private ZongzhiDengbaoUnitResponse zongzhiDengbaoUnitResponse; private List<ZongzhiDengbaoUnitResponse> zongzhiDengbaoUnitResponse;
@ -30,7 +32,7 @@ public class ZongzhiSuperviseResponse {
* *
*/ */
@ApiModelProperty(value = "政府网站响应类") @ApiModelProperty(value = "政府网站响应类")
private ZongzhiZhengfuResponse zongzhiZhengfuResponse; private List<ZongzhiZhengfuResponse> zongzhiZhengfuResponse;
@ -38,5 +40,5 @@ public class ZongzhiSuperviseResponse {
* IDC * IDC
*/ */
@ApiModelProperty(value = "IDC响应类") @ApiModelProperty(value = "IDC响应类")
private ZongzhiIdcResponse zongzhiIdcResponse; private List<ZongzhiIdcResponse> zongzhiIdcResponse;
} }

@ -32,24 +32,24 @@ public interface ZongzhiScreenSaftyMapper {
/** /**
* *
*/ */
public ZongzhiDengbaoSystemResponse getDengbaoSystem(); public List<ZongzhiDengbaoSystemResponse> getDengbaoSystem();
/** /**
* *
*/ */
public ZongzhiDengbaoUnitResponse getDengbaoUnit(); public List<ZongzhiDengbaoUnitResponse> getDengbaoUnit();
/** /**
* *
*/ */
public ZongzhiZhengfuResponse getZhengfu(); public List<ZongzhiZhengfuResponse> getZhengfu();
/** /**
* idc * idc
*/ */
public ZongzhiIdcResponse getIdc(); public List<ZongzhiIdcResponse> getIdc();
/** /**
* *

@ -30,7 +30,7 @@ public interface ZongzhiScreenSaftyService {
/** /**
* *
*/ */
public ZongzhiSuperviseResponse getsupervise(); public List<ZongzhiSuperviseResponse> getsupervise();
/** /**

@ -6,6 +6,7 @@ import com.ruoyi.screen.service.ZongzhiScreenSaftyService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.List; import java.util.List;
/** /**
@ -32,21 +33,21 @@ public class ZongzhiScreenSaftyServiceImpl implements ZongzhiScreenSaftyService
} }
@Override @Override
public ZongzhiSuperviseResponse getsupervise() { public List<ZongzhiSuperviseResponse> getsupervise() {
ZongzhiSuperviseResponse zongzhiSuperviseResponse = new ZongzhiSuperviseResponse(); List list = new ArrayList<>();
//等保系统 //等保系统
ZongzhiDengbaoSystemResponse zongzhiDengbaoSystemResponse = zongzhiScreenSaftyMapper.getDengbaoSystem(); List<ZongzhiDengbaoSystemResponse> zongzhiDengbaoSystemResponse = zongzhiScreenSaftyMapper.getDengbaoSystem();
//等保单位 //等保单位
ZongzhiDengbaoUnitResponse zongzhiDengbaoUnitResponse=zongzhiScreenSaftyMapper.getDengbaoUnit(); List<ZongzhiDengbaoUnitResponse> zongzhiDengbaoUnitResponse = zongzhiScreenSaftyMapper.getDengbaoUnit();
//政府网站 //政府网站
ZongzhiZhengfuResponse zongzhiZhengfuResponse=zongzhiScreenSaftyMapper.getZhengfu(); List<ZongzhiZhengfuResponse> zongzhiZhengfuResponse = zongzhiScreenSaftyMapper.getZhengfu();
//idc单位 //idc单位
ZongzhiIdcResponse zongzhiIdcResponse=zongzhiScreenSaftyMapper.getIdc(); List<ZongzhiIdcResponse> zongzhiIdcResponse = zongzhiScreenSaftyMapper.getIdc();
zongzhiSuperviseResponse.setZongzhiDengbaoSystemResponse(zongzhiDengbaoSystemResponse); list.addAll(zongzhiDengbaoSystemResponse);
zongzhiSuperviseResponse.setZongzhiDengbaoUnitResponse(zongzhiDengbaoUnitResponse); list.addAll(zongzhiDengbaoUnitResponse);
zongzhiSuperviseResponse.setZongzhiZhengfuResponse(zongzhiZhengfuResponse); list.addAll(zongzhiZhengfuResponse);
zongzhiSuperviseResponse.setZongzhiIdcResponse(zongzhiIdcResponse); list.addAll(zongzhiIdcResponse);
return zongzhiSuperviseResponse; return list;
} }
@Override @Override

@ -43,7 +43,7 @@
</select> </select>
<select id="getSentimentReportbyReportType" <select id="getSentimentReportbyReportType"
resultType="com.ruoyi.screen.domain.response.ZongzhiReportResponse"> resultType="com.ruoyi.screen.domain.response.ZongzhiReportResponse">
select count(sentiment_report_type) as sentimentReportType, sentiment_report_type select count(sentiment_report_type) as count, sentiment_report_type as sentimentReportType
from tc_network_sentiment from tc_network_sentiment
GROUP BY sentiment_report_type GROUP BY sentiment_report_type
</select> </select>

Loading…
Cancel
Save