From 28a6bbf954f2fce70ae8db75dca6522225550d80 Mon Sep 17 00:00:00 2001 From: dhy1725534722 <1725534722@qq.com> Date: Thu, 12 Oct 2023 14:15:11 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BD=91=E7=BB=9C=E7=9B=91=E6=B5=8B=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tcZz/controller/TcSjlyController.java | 104 +++++++++ .../tcZz/controller/TcWljgController.java | 104 +++++++++ .../java/com/ruoyi/tcZz/domain/TcSjly.java | 154 ++++++++++++ .../java/com/ruoyi/tcZz/domain/TcWljg.java | 220 ++++++++++++++++++ .../com/ruoyi/tcZz/mapper/TcSjlyMapper.java | 61 +++++ .../com/ruoyi/tcZz/mapper/TcWljgMapper.java | 61 +++++ .../ruoyi/tcZz/service/ITcSjlyService.java | 61 +++++ .../ruoyi/tcZz/service/ITcWljgService.java | 61 +++++ .../tcZz/service/impl/TcSjlyServiceImpl.java | 96 ++++++++ .../tcZz/service/impl/TcWljgServiceImpl.java | 96 ++++++++ .../tcZz/networkSecurity/TcSjlyMapper.xml | 104 +++++++++ .../tcZz/networkSecurity/TcWljgMapper.xml | 125 ++++++++++ 12 files changed, 1247 insertions(+) create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcSjlyController.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcWljgController.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/tcZz/domain/TcSjly.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/tcZz/domain/TcWljg.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/tcZz/mapper/TcSjlyMapper.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/tcZz/mapper/TcWljgMapper.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/tcZz/service/ITcSjlyService.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/tcZz/service/ITcWljgService.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/tcZz/service/impl/TcSjlyServiceImpl.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/tcZz/service/impl/TcWljgServiceImpl.java create mode 100644 ruoyi-admin/src/main/resources/mapper/tcZz/networkSecurity/TcSjlyMapper.xml create mode 100644 ruoyi-admin/src/main/resources/mapper/tcZz/networkSecurity/TcWljgMapper.xml diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcSjlyController.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcSjlyController.java new file mode 100644 index 00000000..aacc2ad1 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcSjlyController.java @@ -0,0 +1,104 @@ +package com.ruoyi.tcZz.controller; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.tcZz.domain.TcSjly; +import com.ruoyi.tcZz.service.ITcSjlyService; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.common.core.page.TableDataInfo; + +/** + * 数据来源 tc_sjly(可推送)Controller + * + * @author ruoyi + * @date 2023-10-12 + */ +@RestController +@RequestMapping("/tcZz/networkSecurity/ryz") +public class TcSjlyController extends BaseController +{ + @Autowired + private ITcSjlyService tcSjlyService; + + /** + * 查询数据来源 tc_sjly(可推送)列表 + */ + @PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:ryz:list')") + @GetMapping("/list") + public TableDataInfo list(TcSjly tcSjly) + { + startPage(); + List list = tcSjlyService.selectTcSjlyList(tcSjly); + return getDataTable(list); + } + + /** + * 导出数据来源 tc_sjly(可推送)列表 + */ + @PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:ryz:export')") + @Log(title = "数据来源 tc_sjly(可推送)", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, TcSjly tcSjly) + { + List list = tcSjlyService.selectTcSjlyList(tcSjly); + ExcelUtil util = new ExcelUtil(TcSjly.class); + util.exportExcel(response, list, "数据来源 tc_sjly(可推送)数据"); + } + + /** + * 获取数据来源 tc_sjly(可推送)详细信息 + */ + @PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:ryz:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return success(tcSjlyService.selectTcSjlyById(id)); + } + + /** + * 新增数据来源 tc_sjly(可推送) + */ + @PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:ryz:add')") + @Log(title = "数据来源 tc_sjly(可推送)", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody TcSjly tcSjly) + { + return toAjax(tcSjlyService.insertTcSjly(tcSjly)); + } + + /** + * 修改数据来源 tc_sjly(可推送) + */ + @PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:ryz:edit')") + @Log(title = "数据来源 tc_sjly(可推送)", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody TcSjly tcSjly) + { + return toAjax(tcSjlyService.updateTcSjly(tcSjly)); + } + + /** + * 删除数据来源 tc_sjly(可推送) + */ + @PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:ryz:remove')") + @Log(title = "数据来源 tc_sjly(可推送)", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(tcSjlyService.deleteTcSjlyByIds(ids)); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcWljgController.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcWljgController.java new file mode 100644 index 00000000..24d6a37f --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcWljgController.java @@ -0,0 +1,104 @@ +package com.ruoyi.tcZz.controller; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.tcZz.domain.TcWljg; +import com.ruoyi.tcZz.service.ITcWljgService; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.common.core.page.TableDataInfo; + +/** + * 网络监测Controller + * + * @author ruoyi + * @date 2023-10-12 + */ +@RestController +@RequestMapping("/tcZz/networkSecurity/cybersecurity") +public class TcWljgController extends BaseController +{ + @Autowired + private ITcWljgService tcWljgService; + + /** + * 查询网络监测列表 + */ + @PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:cybersecurity:list')") + @GetMapping("/list") + public TableDataInfo list(TcWljg tcWljg) + { + startPage(); + List list = tcWljgService.selectTcWljgList(tcWljg); + return getDataTable(list); + } + + /** + * 导出网络监测列表 + */ + @PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:cybersecurity:export')") + @Log(title = "网络监测", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, TcWljg tcWljg) + { + List list = tcWljgService.selectTcWljgList(tcWljg); + ExcelUtil util = new ExcelUtil(TcWljg.class); + util.exportExcel(response, list, "网络监测数据"); + } + + /** + * 获取网络监测详细信息 + */ + @PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:cybersecurity:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return success(tcWljgService.selectTcWljgById(id)); + } + + /** + * 新增网络监测 + */ + @PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:cybersecurity:add')") + @Log(title = "网络监测", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody TcWljg tcWljg) + { + return toAjax(tcWljgService.insertTcWljg(tcWljg)); + } + + /** + * 修改网络监测 + */ + @PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:cybersecurity:edit')") + @Log(title = "网络监测", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody TcWljg tcWljg) + { + return toAjax(tcWljgService.updateTcWljg(tcWljg)); + } + + /** + * 删除网络监测 + */ + @PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:cybersecurity:remove')") + @Log(title = "网络监测", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(tcWljgService.deleteTcWljgByIds(ids)); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/domain/TcSjly.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/domain/TcSjly.java new file mode 100644 index 00000000..68754d72 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/domain/TcSjly.java @@ -0,0 +1,154 @@ +package com.ruoyi.tcZz.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 数据来源 tc_sjly(可推送)对象 tc_sjly + * + * @author ruoyi + * @date 2023-10-12 + */ +public class TcSjly extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** $column.columnComment */ + private Long id; + + /** 区域id */ + @Excel(name = "区域id") + private String areaId; + + /** 类型 */ + @Excel(name = "类型") + private Long type; + + /** 启用/禁用 */ + @Excel(name = "启用/禁用") + private Long isStatus; + + /** 资产名称 */ + @Excel(name = "资产名称") + private String zcName; + + /** 所属单位 */ + @Excel(name = "所属单位") + private String affUnit; + + /** IP地址 */ + @Excel(name = "IP地址") + private String sysyemIp; + + /** 操作系统 */ + @Excel(name = "操作系统") + private String os; + + /** 版本 */ + @Excel(name = "版本") + private String versions; + + public void setId(Long id) + { + this.id = id; + } + + public Long getId() + { + return id; + } + public void setAreaId(String areaId) + { + this.areaId = areaId; + } + + public String getAreaId() + { + return areaId; + } + public void setType(Long type) + { + this.type = type; + } + + public Long getType() + { + return type; + } + public void setIsStatus(Long isStatus) + { + this.isStatus = isStatus; + } + + public Long getIsStatus() + { + return isStatus; + } + public void setZcName(String zcName) + { + this.zcName = zcName; + } + + public String getZcName() + { + return zcName; + } + public void setAffUnit(String affUnit) + { + this.affUnit = affUnit; + } + + public String getAffUnit() + { + return affUnit; + } + public void setSysyemIp(String sysyemIp) + { + this.sysyemIp = sysyemIp; + } + + public String getSysyemIp() + { + return sysyemIp; + } + public void setOs(String os) + { + this.os = os; + } + + public String getOs() + { + return os; + } + public void setVersions(String versions) + { + this.versions = versions; + } + + public String getVersions() + { + return versions; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("areaId", getAreaId()) + .append("type", getType()) + .append("isStatus", getIsStatus()) + .append("zcName", getZcName()) + .append("affUnit", getAffUnit()) + .append("sysyemIp", getSysyemIp()) + .append("os", getOs()) + .append("versions", getVersions()) + .append("createBy", getCreateBy()) + .append("createTime", getCreateTime()) + .append("updateBy", getUpdateBy()) + .append("updateTime", getUpdateTime()) + .append("remark", getRemark()) + .toString(); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/domain/TcWljg.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/domain/TcWljg.java new file mode 100644 index 00000000..da7c0532 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/domain/TcWljg.java @@ -0,0 +1,220 @@ +package com.ruoyi.tcZz.domain; + +import java.util.Date; +import com.fasterxml.jackson.annotation.JsonFormat; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 网络监测对象 tc_wljg + * + * @author ruoyi + * @date 2023-10-12 + */ +public class TcWljg extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** $column.columnComment */ + private Long id; + + /** 区域id */ + @Excel(name = "区域id") + private String areaId; + + /** 1.启用 2.禁用 */ + @Excel(name = "1.启用 2.禁用") + private Long isStatus; + + /** 攻击发起时间 */ + private Date startTime; + + /** 攻击源IP */ + @Excel(name = "攻击源IP") + private String attackyIp; + + /** 攻击类型 */ + @Excel(name = "攻击类型") + private String attackType; + + /** 攻击源IP区域 */ + private String attackIpArea; + + /** 受攻击目标类型 */ + private String type; + + /** 受攻击IP */ + @Excel(name = "受攻击IP") + private String sAttackIp; + + /** 受攻击IP区域 */ + private String sAttackIpArea; + + /** 网站安全等级 */ + @Excel(name = "网站安全等级") + private String netLevel; + + /** 所属单位 */ + private String affUnit; + + /** 联系电话 */ + private String linkTel; + + /** 联系人 */ + @Excel(name = "联系人") + private String linkMan; + + public void setId(Long id) + { + this.id = id; + } + + public Long getId() + { + return id; + } + public void setAreaId(String areaId) + { + this.areaId = areaId; + } + + public String getAreaId() + { + return areaId; + } + public void setIsStatus(Long isStatus) + { + this.isStatus = isStatus; + } + + public Long getIsStatus() + { + return isStatus; + } + public void setStartTime(Date startTime) + { + this.startTime = startTime; + } + + public Date getStartTime() + { + return startTime; + } + public void setAttackyIp(String attackyIp) + { + this.attackyIp = attackyIp; + } + + public String getAttackyIp() + { + return attackyIp; + } + public void setAttackType(String attackType) + { + this.attackType = attackType; + } + + public String getAttackType() + { + return attackType; + } + public void setAttackIpArea(String attackIpArea) + { + this.attackIpArea = attackIpArea; + } + + public String getAttackIpArea() + { + return attackIpArea; + } + public void setType(String type) + { + this.type = type; + } + + public String getType() + { + return type; + } + public void setsAttackIp(String sAttackIp) + { + this.sAttackIp = sAttackIp; + } + + public String getsAttackIp() + { + return sAttackIp; + } + public void setsAttackIpArea(String sAttackIpArea) + { + this.sAttackIpArea = sAttackIpArea; + } + + public String getsAttackIpArea() + { + return sAttackIpArea; + } + public void setNetLevel(String netLevel) + { + this.netLevel = netLevel; + } + + public String getNetLevel() + { + return netLevel; + } + public void setAffUnit(String affUnit) + { + this.affUnit = affUnit; + } + + public String getAffUnit() + { + return affUnit; + } + public void setLinkTel(String linkTel) + { + this.linkTel = linkTel; + } + + public String getLinkTel() + { + return linkTel; + } + public void setLinkMan(String linkMan) + { + this.linkMan = linkMan; + } + + public String getLinkMan() + { + return linkMan; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("areaId", getAreaId()) + .append("isStatus", getIsStatus()) + .append("startTime", getStartTime()) + .append("attackyIp", getAttackyIp()) + .append("attackType", getAttackType()) + .append("attackIpArea", getAttackIpArea()) + .append("type", getType()) + .append("sAttackIp", getsAttackIp()) + .append("sAttackIpArea", getsAttackIpArea()) + .append("netLevel", getNetLevel()) + .append("affUnit", getAffUnit()) + .append("linkTel", getLinkTel()) + .append("linkMan", getLinkMan()) + .append("createBy", getCreateBy()) + .append("createTime", getCreateTime()) + .append("updateBy", getUpdateBy()) + .append("updateTime", getUpdateTime()) + .append("remark", getRemark()) + .toString(); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/mapper/TcSjlyMapper.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/mapper/TcSjlyMapper.java new file mode 100644 index 00000000..a8c4f5a9 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/mapper/TcSjlyMapper.java @@ -0,0 +1,61 @@ +package com.ruoyi.tcZz.mapper; + +import java.util.List; +import com.ruoyi.tcZz.domain.TcSjly; + +/** + * 数据来源 tc_sjly(可推送)Mapper接口 + * + * @author ruoyi + * @date 2023-10-12 + */ +public interface TcSjlyMapper +{ + /** + * 查询数据来源 tc_sjly(可推送) + * + * @param id 数据来源 tc_sjly(可推送)主键 + * @return 数据来源 tc_sjly(可推送) + */ + public TcSjly selectTcSjlyById(Long id); + + /** + * 查询数据来源 tc_sjly(可推送)列表 + * + * @param tcSjly 数据来源 tc_sjly(可推送) + * @return 数据来源 tc_sjly(可推送)集合 + */ + public List selectTcSjlyList(TcSjly tcSjly); + + /** + * 新增数据来源 tc_sjly(可推送) + * + * @param tcSjly 数据来源 tc_sjly(可推送) + * @return 结果 + */ + public int insertTcSjly(TcSjly tcSjly); + + /** + * 修改数据来源 tc_sjly(可推送) + * + * @param tcSjly 数据来源 tc_sjly(可推送) + * @return 结果 + */ + public int updateTcSjly(TcSjly tcSjly); + + /** + * 删除数据来源 tc_sjly(可推送) + * + * @param id 数据来源 tc_sjly(可推送)主键 + * @return 结果 + */ + public int deleteTcSjlyById(Long id); + + /** + * 批量删除数据来源 tc_sjly(可推送) + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteTcSjlyByIds(Long[] ids); +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/mapper/TcWljgMapper.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/mapper/TcWljgMapper.java new file mode 100644 index 00000000..555ecbd2 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/mapper/TcWljgMapper.java @@ -0,0 +1,61 @@ +package com.ruoyi.tcZz.mapper; + +import java.util.List; +import com.ruoyi.tcZz.domain.TcWljg; + +/** + * 网络监测Mapper接口 + * + * @author ruoyi + * @date 2023-10-12 + */ +public interface TcWljgMapper +{ + /** + * 查询网络监测 + * + * @param id 网络监测主键 + * @return 网络监测 + */ + public TcWljg selectTcWljgById(Long id); + + /** + * 查询网络监测列表 + * + * @param tcWljg 网络监测 + * @return 网络监测集合 + */ + public List selectTcWljgList(TcWljg tcWljg); + + /** + * 新增网络监测 + * + * @param tcWljg 网络监测 + * @return 结果 + */ + public int insertTcWljg(TcWljg tcWljg); + + /** + * 修改网络监测 + * + * @param tcWljg 网络监测 + * @return 结果 + */ + public int updateTcWljg(TcWljg tcWljg); + + /** + * 删除网络监测 + * + * @param id 网络监测主键 + * @return 结果 + */ + public int deleteTcWljgById(Long id); + + /** + * 批量删除网络监测 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteTcWljgByIds(Long[] ids); +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/service/ITcSjlyService.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/service/ITcSjlyService.java new file mode 100644 index 00000000..81e309c1 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/service/ITcSjlyService.java @@ -0,0 +1,61 @@ +package com.ruoyi.tcZz.service; + +import java.util.List; +import com.ruoyi.tcZz.domain.TcSjly; + +/** + * 数据来源 tc_sjly(可推送)Service接口 + * + * @author ruoyi + * @date 2023-10-12 + */ +public interface ITcSjlyService +{ + /** + * 查询数据来源 tc_sjly(可推送) + * + * @param id 数据来源 tc_sjly(可推送)主键 + * @return 数据来源 tc_sjly(可推送) + */ + public TcSjly selectTcSjlyById(Long id); + + /** + * 查询数据来源 tc_sjly(可推送)列表 + * + * @param tcSjly 数据来源 tc_sjly(可推送) + * @return 数据来源 tc_sjly(可推送)集合 + */ + public List selectTcSjlyList(TcSjly tcSjly); + + /** + * 新增数据来源 tc_sjly(可推送) + * + * @param tcSjly 数据来源 tc_sjly(可推送) + * @return 结果 + */ + public int insertTcSjly(TcSjly tcSjly); + + /** + * 修改数据来源 tc_sjly(可推送) + * + * @param tcSjly 数据来源 tc_sjly(可推送) + * @return 结果 + */ + public int updateTcSjly(TcSjly tcSjly); + + /** + * 批量删除数据来源 tc_sjly(可推送) + * + * @param ids 需要删除的数据来源 tc_sjly(可推送)主键集合 + * @return 结果 + */ + public int deleteTcSjlyByIds(Long[] ids); + + /** + * 删除数据来源 tc_sjly(可推送)信息 + * + * @param id 数据来源 tc_sjly(可推送)主键 + * @return 结果 + */ + public int deleteTcSjlyById(Long id); +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/service/ITcWljgService.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/service/ITcWljgService.java new file mode 100644 index 00000000..91e941cc --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/service/ITcWljgService.java @@ -0,0 +1,61 @@ +package com.ruoyi.tcZz.service; + +import java.util.List; +import com.ruoyi.tcZz.domain.TcWljg; + +/** + * 网络监测Service接口 + * + * @author ruoyi + * @date 2023-10-12 + */ +public interface ITcWljgService +{ + /** + * 查询网络监测 + * + * @param id 网络监测主键 + * @return 网络监测 + */ + public TcWljg selectTcWljgById(Long id); + + /** + * 查询网络监测列表 + * + * @param tcWljg 网络监测 + * @return 网络监测集合 + */ + public List selectTcWljgList(TcWljg tcWljg); + + /** + * 新增网络监测 + * + * @param tcWljg 网络监测 + * @return 结果 + */ + public int insertTcWljg(TcWljg tcWljg); + + /** + * 修改网络监测 + * + * @param tcWljg 网络监测 + * @return 结果 + */ + public int updateTcWljg(TcWljg tcWljg); + + /** + * 批量删除网络监测 + * + * @param ids 需要删除的网络监测主键集合 + * @return 结果 + */ + public int deleteTcWljgByIds(Long[] ids); + + /** + * 删除网络监测信息 + * + * @param id 网络监测主键 + * @return 结果 + */ + public int deleteTcWljgById(Long id); +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/service/impl/TcSjlyServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/service/impl/TcSjlyServiceImpl.java new file mode 100644 index 00000000..60256874 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/service/impl/TcSjlyServiceImpl.java @@ -0,0 +1,96 @@ +package com.ruoyi.tcZz.service.impl; + +import java.util.List; +import com.ruoyi.common.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.tcZz.mapper.TcSjlyMapper; +import com.ruoyi.tcZz.domain.TcSjly; +import com.ruoyi.tcZz.service.ITcSjlyService; + +/** + * 数据来源 tc_sjly(可推送)Service业务层处理 + * + * @author ruoyi + * @date 2023-10-12 + */ +@Service +public class TcSjlyServiceImpl implements ITcSjlyService +{ + @Autowired + private TcSjlyMapper tcSjlyMapper; + + /** + * 查询数据来源 tc_sjly(可推送) + * + * @param id 数据来源 tc_sjly(可推送)主键 + * @return 数据来源 tc_sjly(可推送) + */ + @Override + public TcSjly selectTcSjlyById(Long id) + { + return tcSjlyMapper.selectTcSjlyById(id); + } + + /** + * 查询数据来源 tc_sjly(可推送)列表 + * + * @param tcSjly 数据来源 tc_sjly(可推送) + * @return 数据来源 tc_sjly(可推送) + */ + @Override + public List selectTcSjlyList(TcSjly tcSjly) + { + return tcSjlyMapper.selectTcSjlyList(tcSjly); + } + + /** + * 新增数据来源 tc_sjly(可推送) + * + * @param tcSjly 数据来源 tc_sjly(可推送) + * @return 结果 + */ + @Override + public int insertTcSjly(TcSjly tcSjly) + { + tcSjly.setCreateTime(DateUtils.getNowDate()); + return tcSjlyMapper.insertTcSjly(tcSjly); + } + + /** + * 修改数据来源 tc_sjly(可推送) + * + * @param tcSjly 数据来源 tc_sjly(可推送) + * @return 结果 + */ + @Override + public int updateTcSjly(TcSjly tcSjly) + { + tcSjly.setUpdateTime(DateUtils.getNowDate()); + return tcSjlyMapper.updateTcSjly(tcSjly); + } + + /** + * 批量删除数据来源 tc_sjly(可推送) + * + * @param ids 需要删除的数据来源 tc_sjly(可推送)主键 + * @return 结果 + */ + @Override + public int deleteTcSjlyByIds(Long[] ids) + { + return tcSjlyMapper.deleteTcSjlyByIds(ids); + } + + /** + * 删除数据来源 tc_sjly(可推送)信息 + * + * @param id 数据来源 tc_sjly(可推送)主键 + * @return 结果 + */ + @Override + public int deleteTcSjlyById(Long id) + { + return tcSjlyMapper.deleteTcSjlyById(id); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/service/impl/TcWljgServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/service/impl/TcWljgServiceImpl.java new file mode 100644 index 00000000..aa1ca147 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/service/impl/TcWljgServiceImpl.java @@ -0,0 +1,96 @@ +package com.ruoyi.tcZz.service.impl; + +import java.util.List; +import com.ruoyi.common.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.tcZz.mapper.TcWljgMapper; +import com.ruoyi.tcZz.domain.TcWljg; +import com.ruoyi.tcZz.service.ITcWljgService; + +/** + * 网络监测Service业务层处理 + * + * @author ruoyi + * @date 2023-10-12 + */ +@Service +public class TcWljgServiceImpl implements ITcWljgService +{ + @Autowired + private TcWljgMapper tcWljgMapper; + + /** + * 查询网络监测 + * + * @param id 网络监测主键 + * @return 网络监测 + */ + @Override + public TcWljg selectTcWljgById(Long id) + { + return tcWljgMapper.selectTcWljgById(id); + } + + /** + * 查询网络监测列表 + * + * @param tcWljg 网络监测 + * @return 网络监测 + */ + @Override + public List selectTcWljgList(TcWljg tcWljg) + { + return tcWljgMapper.selectTcWljgList(tcWljg); + } + + /** + * 新增网络监测 + * + * @param tcWljg 网络监测 + * @return 结果 + */ + @Override + public int insertTcWljg(TcWljg tcWljg) + { + tcWljg.setCreateTime(DateUtils.getNowDate()); + return tcWljgMapper.insertTcWljg(tcWljg); + } + + /** + * 修改网络监测 + * + * @param tcWljg 网络监测 + * @return 结果 + */ + @Override + public int updateTcWljg(TcWljg tcWljg) + { + tcWljg.setUpdateTime(DateUtils.getNowDate()); + return tcWljgMapper.updateTcWljg(tcWljg); + } + + /** + * 批量删除网络监测 + * + * @param ids 需要删除的网络监测主键 + * @return 结果 + */ + @Override + public int deleteTcWljgByIds(Long[] ids) + { + return tcWljgMapper.deleteTcWljgByIds(ids); + } + + /** + * 删除网络监测信息 + * + * @param id 网络监测主键 + * @return 结果 + */ + @Override + public int deleteTcWljgById(Long id) + { + return tcWljgMapper.deleteTcWljgById(id); + } +} diff --git a/ruoyi-admin/src/main/resources/mapper/tcZz/networkSecurity/TcSjlyMapper.xml b/ruoyi-admin/src/main/resources/mapper/tcZz/networkSecurity/TcSjlyMapper.xml new file mode 100644 index 00000000..b93a548a --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/tcZz/networkSecurity/TcSjlyMapper.xml @@ -0,0 +1,104 @@ + + + + + + + + + + + + + + + + + + + + + + + select id, area_id, type, isStatus, zc_name, aff_unit, sysyem_ip, os, versions, create_by, create_time, update_by, update_time, remark from tc_sjly + + + + + + + + insert into tc_sjly + + area_id, + type, + isStatus, + zc_name, + aff_unit, + sysyem_ip, + os, + versions, + create_by, + create_time, + update_by, + update_time, + remark, + + + #{areaId}, + #{type}, + #{isStatus}, + #{zcName}, + #{affUnit}, + #{sysyemIp}, + #{os}, + #{versions}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + #{remark}, + + + + + update tc_sjly + + area_id = #{areaId}, + type = #{type}, + isStatus = #{isStatus}, + zc_name = #{zcName}, + aff_unit = #{affUnit}, + sysyem_ip = #{sysyemIp}, + os = #{os}, + versions = #{versions}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + remark = #{remark}, + + where id = #{id} + + + + delete from tc_sjly where id = #{id} + + + + delete from tc_sjly where id in + + #{id} + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/mapper/tcZz/networkSecurity/TcWljgMapper.xml b/ruoyi-admin/src/main/resources/mapper/tcZz/networkSecurity/TcWljgMapper.xml new file mode 100644 index 00000000..6d86b0d5 --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/tcZz/networkSecurity/TcWljgMapper.xml @@ -0,0 +1,125 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + select id, area_id, isStatus, start_time, attacky_ip, attack_type, attack_ip_area, type, s_attack_ip, s_attack_ip_area, net_level, aff_unit, link_tel, link_man, create_by, create_time, update_by, update_time, remark from tc_wljg + + + + + + + + insert into tc_wljg + + area_id, + isStatus, + start_time, + attacky_ip, + attack_type, + attack_ip_area, + type, + s_attack_ip, + s_attack_ip_area, + net_level, + aff_unit, + link_tel, + link_man, + create_by, + create_time, + update_by, + update_time, + remark, + + + #{areaId}, + #{isStatus}, + #{startTime}, + #{attackyIp}, + #{attackType}, + #{attackIpArea}, + #{type}, + #{sAttackIp}, + #{sAttackIpArea}, + #{netLevel}, + #{affUnit}, + #{linkTel}, + #{linkMan}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + #{remark}, + + + + + update tc_wljg + + area_id = #{areaId}, + isStatus = #{isStatus}, + start_time = #{startTime}, + attacky_ip = #{attackyIp}, + attack_type = #{attackType}, + attack_ip_area = #{attackIpArea}, + type = #{type}, + s_attack_ip = #{sAttackIp}, + s_attack_ip_area = #{sAttackIpArea}, + net_level = #{netLevel}, + aff_unit = #{affUnit}, + link_tel = #{linkTel}, + link_man = #{linkMan}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + remark = #{remark}, + + where id = #{id} + + + + delete from tc_wljg where id = #{id} + + + + delete from tc_wljg where id in + + #{id} + + + \ No newline at end of file