大屏网络安全页面接口,控制类权限删除

dongdingding
董丁丁 2 years ago
parent b5af576c31
commit 07295dbf37

@ -1,29 +0,0 @@
package com.ruoyi.screen.controller;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.screen.domain.ZongzhiSourceResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
*
*/
@RestController
@RequestMapping("/zongzhi/screen")
@Api(tags = " 太仓综治大屏接口")
public class ZongzhiScreenController {
/**
*
*/
@ApiOperation(value = "数据来源", response = ZongzhiSourceResponse.class)
@GetMapping("/source")
private AjaxResult getSource(){
return AjaxResult.success();
}
}

@ -0,0 +1,107 @@
package com.ruoyi.screen.controller;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.screen.domain.response.*;
import com.ruoyi.screen.service.ZongzhiScreenSaftyService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
/**
*
*/
@RestController
@RequestMapping("/zongzhi/saftyscreen")
@Api(tags = " 太仓综治网络安全大屏接口")
public class ZongzhiScreenSaftyController {
@Autowired
private ZongzhiScreenSaftyService zongzhiScreenSaftyService;
/**
*
*/
@ApiOperation(value = "数据来源", response = ZongzhiSourceResponse.class)
@GetMapping("/source")
private AjaxResult getSource() {
return AjaxResult.success(zongzhiScreenSaftyService.getSource());
}
/**
*
*/
@ApiOperation(value = "安全检测数据统计", response = ZongzhiSafetyCountResponse.class)
@GetMapping("/safety")
private AjaxResult getSafety() {
ZongzhiSafetyCountResponse zongzhiSafetyCountResponse = new ZongzhiSafetyCountResponse();
List<ZongzhiSafetyResponse> getSafetyList = zongzhiScreenSaftyService.getsafety();
//求和
int sum = getSafetyList.stream().mapToInt(ZongzhiSafetyResponse::getCount).sum();
zongzhiSafetyCountResponse.setList(getSafetyList);
zongzhiSafetyCountResponse.setSum(sum);
return AjaxResult.success(zongzhiSafetyCountResponse);
}
/**
*
*/
@ApiOperation(value = "安全检测数据列表", response = ZongzhiSafetyListResponse.class)
@GetMapping("/safetylist")
private AjaxResult getSafetyList() {
return AjaxResult.success(zongzhiScreenSaftyService.getSafetyList());
}
/**
*
*/
@ApiOperation(value = "安全检测监管对象", response = ZongzhiSuperviseResponse.class)
@GetMapping("/supervise")
private AjaxResult getSupervise() {
return AjaxResult.success(zongzhiScreenSaftyService.getsupervise());
}
/**
*
*/
@ApiOperation(value = "各地区攻击次数", response = ZongzhiAttackResponse.class)
@GetMapping("/attack")
private AjaxResult getAttack() {
return AjaxResult.success(zongzhiScreenSaftyService.getAttack());
}
/**
* Top5
*/
@ApiOperation(value = "受攻击情况Top5及分布情况", response = ZongzhiUnAttackResponse.class)
@GetMapping("/unattack")
private AjaxResult getUnAttackTop() {
return AjaxResult.success(zongzhiScreenSaftyService.getUnAttackTop());
}
/**
*
*/
@ApiOperation(value = "安全隐患", response = ZongzhiSafetyHazardResponse.class)
@GetMapping("/safetyhazard")
private AjaxResult getSafetyHazard() {
return AjaxResult.success(zongzhiScreenSaftyService.getSafetyHazard());
}
}

@ -1,12 +0,0 @@
package com.ruoyi.screen.domain;
import io.swagger.annotations.ApiModel;
import lombok.Data;
/**
*
*/
@Data
@ApiModel("大屏数据来源响应类")
public class ZongzhiSourceResponse {
}

@ -0,0 +1,23 @@
package com.ruoyi.screen.domain.response;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
*
*/
@Data
@ApiModel("大屏数据各地区攻击次数响应类")
public class ZongzhiAttackResponse {
@ApiModelProperty(value = "数量")
private Integer count;
@ApiModelProperty(value = "攻击源IP地址区域")
private String attackIpRegion;
}

@ -0,0 +1,23 @@
package com.ruoyi.screen.domain.response;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.List;
/**
*
*/
@Data
@ApiModel("大屏数据安全监测数据响应类")
public class ZongzhiSafetyCountResponse {
@ApiModelProperty(value = "总数")
private int sum;
@ApiModelProperty(value = "大屏数据安全监测响应类")
private List<ZongzhiSafetyResponse> list ;
}

@ -0,0 +1,23 @@
package com.ruoyi.screen.domain.response;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
*
*/
@Data
@ApiModel("安全隐患响应类")
public class ZongzhiSafetyHazardResponse {
@ApiModelProperty(value = "数量")
private Integer count;
@ApiModelProperty(value = "攻击源IP地址区域")
private String attackIpRegion;
}

@ -0,0 +1,38 @@
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 org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
/**
*
*/
@Data
@ApiModel("大屏数据安全监测响应类")
public class ZongzhiSafetyListResponse {
/**
* ip
*/
@ApiModelProperty(value = "攻击源ip")
private String source_ip;
/**
* 1. 2. 3 4 5
*/
@ApiModelProperty(value = "攻击类型 1.入侵攻击 2.恶意扫描 3僵木蠕病毒 4挖矿 5网络爬虫")
private int attackType;
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd ")
@ApiModelProperty(value = "攻击时间")
private LocalDateTime attackTime;
}

@ -0,0 +1,21 @@
package com.ruoyi.screen.domain.response;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
*
*/
@Data
@ApiModel("大屏数据安全监测响应类")
public class ZongzhiSafetyResponse {
@ApiModelProperty(value = "数量")
private Integer count;
@ApiModelProperty(value = "攻击类型 1.入侵攻击 2.恶意扫描 3僵木蠕病毒 4挖矿 5网络爬虫")
private int attackType;
}

@ -0,0 +1,26 @@
package com.ruoyi.screen.domain.response;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
*
*/
@Data
@ApiModel("大屏网络数据来源响应类")
public class ZongzhiSourceResponse {
/**
*
*/
@ApiModelProperty(value = "数量")
private int count;
/**
* 1. 2APTM 3. 4. 5.
*/
@ApiModelProperty(value = "类型 1.云断监管 2APTM 3.硬探针 4.软探针 5.系统检测")
private int type;
}

@ -0,0 +1,65 @@
package com.ruoyi.screen.domain.response;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
*
*/
@Data
@ApiModel("安全检测监管对象响应类")
public class ZongzhiSuperviseResponse {
/**
*
*/
@ApiModelProperty(value = "等保系统名称")
private String name;
/**
*
*/
@ApiModelProperty(value = "等保系统数量")
private int count;
/**
*
*/
@ApiModelProperty(value = "等保单位名称")
private String name1;
/**
*
*/
@ApiModelProperty(value = "等保单位数量")
private int count1;
/**
*
*/
@ApiModelProperty(value = "政府网站名称")
private String name2;
/**
*
*/
@ApiModelProperty(value = "政府网站数量")
private int count2;
/**
* IDC
*/
@ApiModelProperty(value = "IDC单位名称")
private String name3;
/**
* IDC
*/
@ApiModelProperty(value = "IDC单位数量")
private int count3;
}

@ -0,0 +1,30 @@
package com.ruoyi.screen.domain.response;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
* Top5
*/
@Data
@ApiModel("受攻击情况Top5及分布情况响应类")
public class ZongzhiUnAttackResponse {
@ApiModelProperty(value = "数量")
private Integer count;
@ApiModelProperty(value = "百分比")
private Integer pt;
@ApiModelProperty(value = "攻击源IP地址区域")
private String attackIpRegion;
@ApiModelProperty(value = "攻击源IP")
private String attackedIp;
}

@ -0,0 +1,55 @@
package com.ruoyi.screen.mapper;
import com.ruoyi.screen.domain.response.*;
import java.util.List;
/**
*
*/
public interface ZongzhiScreenSaftyMapper {
/**
*
*
* @return ZongzhiSourceResponse
*/
public List<ZongzhiSourceResponse> getSource();
/**
*
*/
public List<ZongzhiSafetyResponse> getsafety();
/**
*
*/
public List<ZongzhiSafetyListResponse> getSafetyList();
/**
*
*/
public ZongzhiSuperviseResponse getsupervise();
/**
*
*/
public List<ZongzhiAttackResponse> getAttack();
/**
* Top5
*/
public List<ZongzhiUnAttackResponse> getUnAttackTop();
/**
*
*/
public List<ZongzhiSafetyHazardResponse> getSafetyHazard();
}

@ -0,0 +1,55 @@
package com.ruoyi.screen.service;
import com.ruoyi.screen.domain.response.*;
import java.util.List;
/**
*
*/
public interface ZongzhiScreenSaftyService {
/**
*
*/
public List<ZongzhiSourceResponse> getSource();
/**
*
*/
public List<ZongzhiSafetyResponse> getsafety();
/**
*
*/
public List<ZongzhiSafetyListResponse> getSafetyList();
/**
*
*/
public ZongzhiSuperviseResponse getsupervise();
/**
*
*/
public List<ZongzhiAttackResponse> getAttack();
/**
* Top5
*/
public List<ZongzhiUnAttackResponse> getUnAttackTop();
/**
*
*/
public List<ZongzhiSafetyHazardResponse> getSafetyHazard();
}

@ -0,0 +1,52 @@
package com.ruoyi.screen.service.impl;
import com.ruoyi.screen.domain.response.*;
import com.ruoyi.screen.mapper.ZongzhiScreenSaftyMapper;
import com.ruoyi.screen.service.ZongzhiScreenSaftyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
*
*/
@Service
public class ZongzhiScreenSaftyServiceImpl implements ZongzhiScreenSaftyService {
@Autowired
private ZongzhiScreenSaftyMapper zongzhiScreenSaftyMapper;
@Override
public List<ZongzhiSourceResponse> getSource() {
return zongzhiScreenSaftyMapper.getSource();
}
@Override
public List<ZongzhiSafetyResponse> getsafety() {
return zongzhiScreenSaftyMapper.getsafety();
}
@Override
public List<ZongzhiSafetyListResponse> getSafetyList() {
return zongzhiScreenSaftyMapper.getSafetyList();
}
@Override
public ZongzhiSuperviseResponse getsupervise() {
return zongzhiScreenSaftyMapper.getsupervise();
}
@Override
public List<ZongzhiAttackResponse> getAttack() {
return zongzhiScreenSaftyMapper.getAttack();
}
@Override
public List<ZongzhiUnAttackResponse> getUnAttackTop() {
return zongzhiScreenSaftyMapper.getUnAttackTop();
}
@Override
public List<ZongzhiSafetyHazardResponse> getSafetyHazard() {
return zongzhiScreenSaftyMapper.getSafetyHazard();
}
}

@ -52,7 +52,7 @@ public class TcDataSourceController extends BaseController
*
*/
@Log(title = "数据来源", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, TcDataSource tcDataSource)
{

@ -39,7 +39,7 @@ public class TcDengbaoSystemController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:system:list')")
@GetMapping("/list")
public TableDataInfo list(TcDengbaoSystem tcDengbaoSystem)
{
@ -51,8 +51,7 @@ public class TcDengbaoSystemController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:system:export')")
@Log(title = "等保系统", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, TcDengbaoSystem tcDengbaoSystem)
{
@ -64,7 +63,7 @@ public class TcDengbaoSystemController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:system:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
@ -74,8 +73,7 @@ public class TcDengbaoSystemController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:system:add')")
@Log(title = "等保系统", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody TcDengbaoSystem tcDengbaoSystem)
{
@ -85,8 +83,7 @@ public class TcDengbaoSystemController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:system:edit')")
@Log(title = "等保系统", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody TcDengbaoSystem tcDengbaoSystem)
{
@ -96,8 +93,7 @@ public class TcDengbaoSystemController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:system:remove')")
@Log(title = "等保系统", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{

@ -38,7 +38,7 @@ public class TcDengbaoUnitController extends BaseController {
@Autowired
private ITcDengbaoUnitService tcDengbaoUnitService;
/**
/**·
*
*/
@GetMapping("/list")

@ -40,7 +40,7 @@ public class TcExtworkSafetyadminController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:safetyadmin:list')")
@GetMapping("/list")
public TableDataInfo list(TcExtworkSafetyadmin tcExtworkSafetyadmin)
{
@ -52,8 +52,7 @@ public class TcExtworkSafetyadminController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:safetyadmin:export')")
@Log(title = "网络安全官", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, TcExtworkSafetyadmin tcExtworkSafetyadmin)
{
@ -65,7 +64,7 @@ public class TcExtworkSafetyadminController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:safetyadmin:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
@ -75,8 +74,7 @@ public class TcExtworkSafetyadminController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:safetyadmin:add')")
@Log(title = "网络安全官", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody TcExtworkSafetyadmin tcExtworkSafetyadmin)
{
@ -86,8 +84,7 @@ public class TcExtworkSafetyadminController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:safetyadmin:edit')")
@Log(title = "网络安全官", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody TcExtworkSafetyadmin tcExtworkSafetyadmin)
{
@ -97,8 +94,7 @@ public class TcExtworkSafetyadminController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:safetyadmin:remove')")
@Log(title = "网络安全官", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{

@ -39,7 +39,6 @@ public class TcGovernmentWebController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:web:list')")
@GetMapping("/list")
public TableDataInfo list(TcGovernmentWeb tcGovernmentWeb)
{
@ -51,8 +50,7 @@ public class TcGovernmentWebController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:web:export')")
@Log(title = "政府网站", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, TcGovernmentWeb tcGovernmentWeb)
{
@ -64,7 +62,7 @@ public class TcGovernmentWebController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:web:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
@ -74,8 +72,7 @@ public class TcGovernmentWebController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:web:add')")
@Log(title = "政府网站", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody TcGovernmentWeb tcGovernmentWeb)
{
@ -85,8 +82,7 @@ public class TcGovernmentWebController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:web:edit')")
@Log(title = "政府网站", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody TcGovernmentWeb tcGovernmentWeb)
{
@ -96,8 +92,7 @@ public class TcGovernmentWebController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:web:remove')")
@Log(title = "政府网站", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{

@ -39,7 +39,7 @@ public class TcIdcUnitController extends BaseController
/**
* IDC
*/
@PreAuthorize("@ss.hasPermi('zongzhi:unit:list')")
@GetMapping("/list")
public TableDataInfo list(TcIdcUnit tcIdcUnit)
{
@ -51,8 +51,7 @@ public class TcIdcUnitController extends BaseController
/**
* IDC
*/
@PreAuthorize("@ss.hasPermi('zongzhi:unit:export')")
@Log(title = "IDC单位", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, TcIdcUnit tcIdcUnit)
{
@ -64,7 +63,7 @@ public class TcIdcUnitController extends BaseController
/**
* IDC
*/
@PreAuthorize("@ss.hasPermi('zongzhi:unit:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
@ -74,8 +73,7 @@ public class TcIdcUnitController extends BaseController
/**
* IDC
*/
@PreAuthorize("@ss.hasPermi('zongzhi:unit:add')")
@Log(title = "IDC单位", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody TcIdcUnit tcIdcUnit)
{
@ -85,8 +83,7 @@ public class TcIdcUnitController extends BaseController
/**
* IDC
*/
@PreAuthorize("@ss.hasPermi('zongzhi:unit:edit')")
@Log(title = "IDC单位", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody TcIdcUnit tcIdcUnit)
{
@ -96,8 +93,7 @@ public class TcIdcUnitController extends BaseController
/**
* IDC
*/
@PreAuthorize("@ss.hasPermi('zongzhi:unit:remove')")
@Log(title = "IDC单位", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{

@ -39,7 +39,7 @@ public class TcNetworkArticleController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:article:list')")
@GetMapping("/list")
public TableDataInfo list(TcNetworkArticle tcNetworkArticle)
{
@ -51,8 +51,7 @@ public class TcNetworkArticleController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:article:export')")
@Log(title = "网络文章", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, TcNetworkArticle tcNetworkArticle)
{
@ -64,7 +63,7 @@ public class TcNetworkArticleController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:article:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
@ -74,8 +73,7 @@ public class TcNetworkArticleController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:article:add')")
@Log(title = "网络文章", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody TcNetworkArticle tcNetworkArticle)
{
@ -85,8 +83,7 @@ public class TcNetworkArticleController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:article:edit')")
@Log(title = "网络文章", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody TcNetworkArticle tcNetworkArticle)
{
@ -96,8 +93,7 @@ public class TcNetworkArticleController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:article:remove')")
@Log(title = "网络文章", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{

@ -39,7 +39,7 @@ public class TcNetworkEvaluateController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:evaluate:list')")
@GetMapping("/list")
public TableDataInfo list(TcNetworkEvaluate tcNetworkEvaluate)
{
@ -51,8 +51,7 @@ public class TcNetworkEvaluateController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:evaluate:export')")
@Log(title = "网评", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, TcNetworkEvaluate tcNetworkEvaluate)
{
@ -64,7 +63,7 @@ public class TcNetworkEvaluateController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:evaluate:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
@ -74,8 +73,7 @@ public class TcNetworkEvaluateController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:evaluate:add')")
@Log(title = "网评", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody TcNetworkEvaluate tcNetworkEvaluate)
{
@ -85,8 +83,8 @@ public class TcNetworkEvaluateController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:evaluate:edit')")
@Log(title = "网评", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody TcNetworkEvaluate tcNetworkEvaluate)
{
@ -96,8 +94,7 @@ public class TcNetworkEvaluateController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:evaluate:remove')")
@Log(title = "网评", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{

@ -39,7 +39,7 @@ public class TcNetworkMqPrincipalController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:principal:list')")
@GetMapping("/list")
public TableDataInfo list(TcNetworkMqPrincipal tcNetworkMqPrincipal)
{
@ -51,8 +51,7 @@ public class TcNetworkMqPrincipalController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:principal:export')")
@Log(title = "网络民情责任人", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, TcNetworkMqPrincipal tcNetworkMqPrincipal)
{
@ -64,7 +63,7 @@ public class TcNetworkMqPrincipalController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:principal:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
@ -74,8 +73,7 @@ public class TcNetworkMqPrincipalController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:principal:add')")
@Log(title = "网络民情责任人", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody TcNetworkMqPrincipal tcNetworkMqPrincipal)
{
@ -85,8 +83,7 @@ public class TcNetworkMqPrincipalController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:principal:edit')")
@Log(title = "网络民情责任人", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody TcNetworkMqPrincipal tcNetworkMqPrincipal)
{
@ -96,8 +93,7 @@ public class TcNetworkMqPrincipalController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:principal:remove')")
@Log(title = "网络民情责任人", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{

@ -39,7 +39,7 @@ public class TcNetworkPingtaiController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:pingtai:list')")
@GetMapping("/list")
public TableDataInfo list(TcNetworkPingtai tcNetworkPingtai)
{
@ -51,8 +51,7 @@ public class TcNetworkPingtaiController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:pingtai:export')")
@Log(title = "网络平台", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, TcNetworkPingtai tcNetworkPingtai)
{
@ -64,7 +63,7 @@ public class TcNetworkPingtaiController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:pingtai:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
@ -74,8 +73,7 @@ public class TcNetworkPingtaiController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:pingtai:add')")
@Log(title = "网络平台", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody TcNetworkPingtai tcNetworkPingtai)
{
@ -85,8 +83,7 @@ public class TcNetworkPingtaiController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:pingtai:edit')")
@Log(title = "网络平台", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody TcNetworkPingtai tcNetworkPingtai)
{
@ -96,8 +93,7 @@ public class TcNetworkPingtaiController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:pingtai:remove')")
@Log(title = "网络平台", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{

@ -51,8 +51,7 @@ public class TcNetworkReportController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:report:export')")
@Log(title = "网络举报", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, TcNetworkReport tcNetworkReport)
{
@ -64,7 +63,7 @@ public class TcNetworkReportController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:report:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
@ -74,8 +73,6 @@ public class TcNetworkReportController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:report:add')")
@Log(title = "网络举报", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody TcNetworkReport tcNetworkReport)
{
@ -85,8 +82,7 @@ public class TcNetworkReportController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:report:edit')")
@Log(title = "网络举报", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody TcNetworkReport tcNetworkReport)
{
@ -96,8 +92,7 @@ public class TcNetworkReportController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:report:remove')")
@Log(title = "网络举报", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{

@ -39,7 +39,7 @@ public class TcNetworkSentimentController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:sentiment:list')")
@GetMapping("/list")
public TableDataInfo list(TcNetworkSentiment tcNetworkSentiment)
{
@ -51,8 +51,7 @@ public class TcNetworkSentimentController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:sentiment:export')")
@Log(title = "网络舆情", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, TcNetworkSentiment tcNetworkSentiment)
{
@ -64,7 +63,7 @@ public class TcNetworkSentimentController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:sentiment:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
@ -74,8 +73,7 @@ public class TcNetworkSentimentController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:sentiment:add')")
@Log(title = "网络舆情", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody TcNetworkSentiment tcNetworkSentiment)
{
@ -85,8 +83,7 @@ public class TcNetworkSentimentController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:sentiment:edit')")
@Log(title = "网络舆情", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody TcNetworkSentiment tcNetworkSentiment)
{
@ -96,8 +93,7 @@ public class TcNetworkSentimentController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:sentiment:remove')")
@Log(title = "网络舆情", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{

@ -39,7 +39,7 @@ public class TcNetworkSupportUnitController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:unit:list')")
@GetMapping("/list")
public TableDataInfo list(TcNetworkSupportUnit tcNetworkSupportUnit)
{
@ -51,8 +51,8 @@ public class TcNetworkSupportUnitController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:unit:export')")
@Log(title = "网络安全支持单位", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, TcNetworkSupportUnit tcNetworkSupportUnit)
{
@ -64,7 +64,7 @@ public class TcNetworkSupportUnitController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:unit:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
@ -74,8 +74,7 @@ public class TcNetworkSupportUnitController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:unit:add')")
@Log(title = "网络安全支持单位", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody TcNetworkSupportUnit tcNetworkSupportUnit)
{
@ -85,8 +84,7 @@ public class TcNetworkSupportUnitController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:unit:edit')")
@Log(title = "网络安全支持单位", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody TcNetworkSupportUnit tcNetworkSupportUnit)
{
@ -96,8 +94,7 @@ public class TcNetworkSupportUnitController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:unit:remove')")
@Log(title = "网络安全支持单位", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{

@ -39,7 +39,7 @@ public class TcNetworkVolunteerController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:volunteer:list')")
@GetMapping("/list")
public TableDataInfo list(TcNetworkVolunteer tcNetworkVolunteer)
{
@ -51,8 +51,7 @@ public class TcNetworkVolunteerController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:volunteer:export')")
@Log(title = "网络文明自愿者", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, TcNetworkVolunteer tcNetworkVolunteer)
{
@ -64,7 +63,7 @@ public class TcNetworkVolunteerController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:volunteer:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
@ -74,8 +73,8 @@ public class TcNetworkVolunteerController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:volunteer:add')")
@Log(title = "网络文明自愿者", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody TcNetworkVolunteer tcNetworkVolunteer)
{
@ -85,8 +84,7 @@ public class TcNetworkVolunteerController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:volunteer:edit')")
@Log(title = "网络文明自愿者", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody TcNetworkVolunteer tcNetworkVolunteer)
{
@ -96,8 +94,7 @@ public class TcNetworkVolunteerController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:volunteer:remove')")
@Log(title = "网络文明自愿者", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{

@ -39,7 +39,7 @@ public class TcQinglangZhuanxiangController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:zhuanxiang:list')")
@GetMapping("/list")
public TableDataInfo list(TcQinglangZhuanxiang tcQinglangZhuanxiang)
{
@ -51,8 +51,7 @@ public class TcQinglangZhuanxiangController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:zhuanxiang:export')")
@Log(title = "清朗专项", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, TcQinglangZhuanxiang tcQinglangZhuanxiang)
{
@ -64,7 +63,7 @@ public class TcQinglangZhuanxiangController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:zhuanxiang:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
@ -74,8 +73,7 @@ public class TcQinglangZhuanxiangController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:zhuanxiang:add')")
@Log(title = "清朗专项", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody TcQinglangZhuanxiang tcQinglangZhuanxiang)
{
@ -85,8 +83,7 @@ public class TcQinglangZhuanxiangController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:zhuanxiang:edit')")
@Log(title = "清朗专项", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody TcQinglangZhuanxiang tcQinglangZhuanxiang)
{
@ -96,8 +93,7 @@ public class TcQinglangZhuanxiangController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:zhuanxiang:remove')")
@Log(title = "清朗专项", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{

@ -39,7 +39,7 @@ public class TcSafetyDangerController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:danger:list')")
@GetMapping("/list")
public TableDataInfo list(TcSafetyDanger tcSafetyDanger)
{
@ -51,8 +51,7 @@ public class TcSafetyDangerController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:danger:export')")
@Log(title = "监管单位", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, TcSafetyDanger tcSafetyDanger)
{
@ -64,7 +63,7 @@ public class TcSafetyDangerController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:danger:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
@ -74,8 +73,7 @@ public class TcSafetyDangerController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:danger:add')")
@Log(title = "监管单位", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody TcSafetyDanger tcSafetyDanger)
{
@ -85,8 +83,7 @@ public class TcSafetyDangerController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:danger:edit')")
@Log(title = "监管单位", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody TcSafetyDanger tcSafetyDanger)
{
@ -96,8 +93,7 @@ public class TcSafetyDangerController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:danger:remove')")
@Log(title = "监管单位", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{

@ -40,7 +40,7 @@ public class TcSafetyDetectionController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:detection:list')")
@GetMapping("/list")
public TableDataInfo list(TcSafetyDetection tcSafetyDetection)
{
@ -52,8 +52,8 @@ public class TcSafetyDetectionController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:detection:export')")
@Log(title = "安全检测", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, TcSafetyDetection tcSafetyDetection)
{
@ -65,7 +65,7 @@ public class TcSafetyDetectionController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:detection:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
@ -75,8 +75,7 @@ public class TcSafetyDetectionController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:detection:add')")
@Log(title = "安全检测", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody TcSafetyDetection tcSafetyDetection)
{
@ -86,8 +85,7 @@ public class TcSafetyDetectionController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:detection:edit')")
@Log(title = "安全检测", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody TcSafetyDetection tcSafetyDetection)
{
@ -97,8 +95,7 @@ public class TcSafetyDetectionController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:detection:remove')")
@Log(title = "安全检测", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{

@ -40,7 +40,7 @@ public class TcWorkDongtaiController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:dongtai:list')")
@GetMapping("/list")
public TableDataInfo list(TcWorkDongtai tcWorkDongtai)
{
@ -52,8 +52,7 @@ public class TcWorkDongtaiController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:dongtai:export')")
@Log(title = "工作动态", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, TcWorkDongtai tcWorkDongtai)
{
@ -65,7 +64,7 @@ public class TcWorkDongtaiController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:dongtai:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
@ -75,8 +74,7 @@ public class TcWorkDongtaiController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:dongtai:add')")
@Log(title = "工作动态", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody TcWorkDongtai tcWorkDongtai)
{
@ -86,8 +84,7 @@ public class TcWorkDongtaiController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:dongtai:edit')")
@Log(title = "工作动态", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody TcWorkDongtai tcWorkDongtai)
{
@ -97,8 +94,7 @@ public class TcWorkDongtaiController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:dongtai:remove')")
@Log(title = "工作动态", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{

@ -40,7 +40,7 @@ public class TcZhongdianDomainController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:domain:list')")
@GetMapping("/list")
public TableDataInfo list(TcZhongdianDomain tcZhongdianDomain)
{
@ -52,8 +52,7 @@ public class TcZhongdianDomainController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:domain:export')")
@Log(title = "重点领域监管", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, TcZhongdianDomain tcZhongdianDomain)
{
@ -65,7 +64,7 @@ public class TcZhongdianDomainController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:domain:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
@ -75,8 +74,7 @@ public class TcZhongdianDomainController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:domain:add')")
@Log(title = "重点领域监管", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody TcZhongdianDomain tcZhongdianDomain)
{
@ -86,8 +84,7 @@ public class TcZhongdianDomainController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:domain:edit')")
@Log(title = "重点领域监管", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody TcZhongdianDomain tcZhongdianDomain)
{
@ -97,8 +94,7 @@ public class TcZhongdianDomainController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:domain:remove')")
@Log(title = "重点领域监管", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{

@ -40,7 +40,7 @@ public class TcZhongdianEnterpriseController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:enterprise:list')")
@GetMapping("/list")
public TableDataInfo list(TcZhongdianEnterprise tcZhongdianEnterprise)
{
@ -52,8 +52,8 @@ public class TcZhongdianEnterpriseController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:enterprise:export')")
@Log(title = "重点企业名录", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, TcZhongdianEnterprise tcZhongdianEnterprise)
{
@ -65,7 +65,7 @@ public class TcZhongdianEnterpriseController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:enterprise:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
@ -75,8 +75,7 @@ public class TcZhongdianEnterpriseController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:enterprise:add')")
@Log(title = "重点企业名录", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody TcZhongdianEnterprise tcZhongdianEnterprise)
{
@ -86,8 +85,7 @@ public class TcZhongdianEnterpriseController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:enterprise:edit')")
@Log(title = "重点企业名录", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody TcZhongdianEnterprise tcZhongdianEnterprise)
{
@ -97,8 +95,7 @@ public class TcZhongdianEnterpriseController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:enterprise:remove')")
@Log(title = "重点企业名录", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{

@ -40,7 +40,7 @@ public class TcZhongdianWorkController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:work:list')")
@GetMapping("/list")
public TableDataInfo list(TcZhongdianWork tcZhongdianWork)
{
@ -52,8 +52,7 @@ public class TcZhongdianWorkController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:work:export')")
@Log(title = "重点工作项目", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, TcZhongdianWork tcZhongdianWork)
{
@ -65,7 +64,7 @@ public class TcZhongdianWorkController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:work:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
@ -75,8 +74,8 @@ public class TcZhongdianWorkController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:work:add')")
@Log(title = "重点工作项目", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody TcZhongdianWork tcZhongdianWork)
{
@ -86,8 +85,7 @@ public class TcZhongdianWorkController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:work:edit')")
@Log(title = "重点工作项目", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody TcZhongdianWork tcZhongdianWork)
{
@ -97,8 +95,7 @@ public class TcZhongdianWorkController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:work:remove')")
@Log(title = "重点工作项目", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{

@ -0,0 +1,51 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.screen.mapper.ZongzhiScreenSaftyMapper">
<select id="getSource" resultType="com.ruoyi.screen.domain.response.ZongzhiSourceResponse">
select count(*) as count ,type
from tc_data_source
GROUP BY type
</select>
<select id="getsafety" resultType="com.ruoyi.screen.domain.response.ZongzhiSafetyResponse">
select count(*) as count ,attack_type AS attackType
from tc_safety_detection
GROUP BY attack_type
</select>
<select id="getSafetyList" resultType="com.ruoyi.screen.domain.response.ZongzhiSafetyListResponse">
select source_ip, attack_time AS attackTime , attack_type as attackType
from tc_safety_detection
</select>
<select id="getsupervise" resultType="com.ruoyi.screen.domain.response.ZongzhiSuperviseResponse">
select a.count,
a.name,
b.count1,
b.name1,
c.count2,
c.name2,
d.count3,
d.name3
from (select count(*) as count,'等保系统' as name from tc_dengbao_system) a,
(select count(*) as count1, '等保单位' as name1 from tc_dengbao_unit) b,
(select count(*) as count2, '政府网站' as name2 from tc_government_web) c,
(select count(*) as count3, 'IDC单位' as name3 from tc_idc_unit) d
</select>
<select id="getAttack" resultType="com.ruoyi.screen.domain.response.ZongzhiAttackResponse">
SELECT COUNT(*) AS count, attack_ip_region as attackIpRegion
FROM tc_safety_detection
GROUP BY attack_ip_region;
</select>
<select id="getUnAttackTop" resultType="com.ruoyi.screen.domain.response.ZongzhiUnAttackResponse">
select attacked_ip as attackedIp, attacked_ip_region as attackIpRegion, count(*)as count, ROUND(COUNT(*) * 100.0 / SUM(COUNT(*)) OVER (), 1) AS pt
from tc_safety_detection
GROUP BY attacked_ip
ORDER BY count desc limit 5
</select>
<select id="getSafetyHazard" resultType="com.ruoyi.screen.domain.response.ZongzhiSafetyHazardResponse">
select type,count(*) as count from tc_safety_danger GROUP BY type
</select>
</mapper>
Loading…
Cancel
Save