Your ROOT_URL in app.ini is http://git.zky.com/ but you are visiting http://61.178.84.89:8998/luoluo/ry_zhky/commit/7a993992dbda789bb1e13684b88a36631986d9f8 You should set ROOT_URL correctly, otherwise the web may not work correctly.

网络登记

master
20918 11 months ago
parent 57e55062c1
commit 7a993992db

@ -0,0 +1,69 @@
package com.ruoyi.web.controller.system;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.system.domain.TdPropertyInfo;
import com.ruoyi.system.service.ITdPropertyInfoService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;
import java.util.List;
@Controller
@RequestMapping("/system/propertychange")
public class TdPropertyChangeController extends BaseController {
private String prefix = "system/property/propertychange";
@Autowired
private ITdPropertyInfoService tdPropertyInfoService;
@RequiresPermissions("system:changeproperty:view")
@GetMapping()
public String changeProperty()
{
return prefix + "/changeproperty";
}
/**
*
*/
@RequiresPermissions("system:changeproperty:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(TdPropertyInfo tdPropertyInfo)
{
startPage();
List<TdPropertyInfo> tdPropertyInfos = tdPropertyInfoService.selectTdPropertyInfoList(tdPropertyInfo);
return getDataTable(tdPropertyInfos);
}
/**
*
*/
@RequiresPermissions("system:changeproperty:change")
@GetMapping("/change/{id}")
public String change(@PathVariable("id") String id, ModelMap mmap)
{
TdPropertyInfo tdPropertyInfo = tdPropertyInfoService.selectTdPropertyInfoById(id);
mmap.put("tdPropertyInfo", tdPropertyInfo);
return prefix + "/change";
}
/**
*
*/
@RequiresPermissions("system:changeproperty:change")
@Log(title = "资产变更", businessType = BusinessType.UPDATE)
@PostMapping("/change")
@ResponseBody
public AjaxResult changeSave(TdPropertyInfo tdPropertyInfo)
{
return toAjax(tdPropertyInfoService.updateTdPropertyInfo(tdPropertyInfo));
}
}

@ -49,7 +49,6 @@ public class TdPropertyInfoController extends BaseController
{
startPage();
List<TdPropertyInfo> tdPropertyInfos = tdPropertyInfoService.selectTdPropertyInfoByUseId(useId);
//List<TdPropertyInfo> list = tdPropertyInfoService.selectTdPropertyInfoList(tdPropertyInfo);
return getDataTable(tdPropertyInfos);
}
@ -70,6 +69,7 @@ public class TdPropertyInfoController extends BaseController
/**
*
*/
@RequiresPermissions("system:property:add")
@GetMapping("/add/{useId}")
public String add(@PathVariable("useId") String useId, ModelMap mmap)
{

@ -0,0 +1,143 @@
package com.ruoyi.web.controller.system;
import java.util.List;
import com.ruoyi.common.utils.uuid.Seq;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.system.domain.TdPropertyNet;
import com.ruoyi.system.service.ITdPropertyNetService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* Controller
*
* @author ruoyi
* @date 2024-05-09
*/
@Controller
@RequestMapping("/system/network")
public class TdPropertyNetController extends BaseController
{
private String prefix = "system/network/network";
@Autowired
private ITdPropertyNetService tdPropertyNetService;
@RequiresPermissions("system:network:view")
@GetMapping()
public String network()
{
return prefix + "/network";
}
/**
*
*/
@RequiresPermissions("system:network:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(TdPropertyNet tdPropertyNet)
{
startPage();
List<TdPropertyNet> list = tdPropertyNetService.selectTdPropertyNetList(tdPropertyNet);
return getDataTable(list);
}
/**
*
*/
@RequiresPermissions("system:network:export")
@Log(title = "涉密网络设备", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(TdPropertyNet tdPropertyNet)
{
List<TdPropertyNet> list = tdPropertyNetService.selectTdPropertyNetList(tdPropertyNet);
ExcelUtil<TdPropertyNet> util = new ExcelUtil<TdPropertyNet>(TdPropertyNet.class);
return util.exportExcel(list, "涉密网络设备数据");
}
/**
*
*/
@GetMapping("/add")
public String add()
{
return prefix + "/add";
}
/**
*
*/
@RequiresPermissions("system:network:add")
@Log(title = "涉密网络设备", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(TdPropertyNet tdPropertyNet)
{
tdPropertyNet.setNetId("Net_"+ Seq.getId(Seq.commSeqType));
return toAjax(tdPropertyNetService.insertTdPropertyNet(tdPropertyNet));
}
/**
*
*/
@RequiresPermissions("system:network:edit")
@GetMapping("/edit/{netId}")
public String edit(@PathVariable("netId") String netId, ModelMap mmap)
{
TdPropertyNet tdPropertyNet = tdPropertyNetService.selectTdPropertyNetByNetId(netId);
mmap.put("tdPropertyNet", tdPropertyNet);
return prefix + "/edit";
}
/**
*
*/
@RequiresPermissions("system:network:edit")
@Log(title = "涉密网络设备", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(TdPropertyNet tdPropertyNet)
{
return toAjax(tdPropertyNetService.updateTdPropertyNet(tdPropertyNet));
}
/**
*
*/
@RequiresPermissions("system:network:remove")
@Log(title = "涉密网络设备", businessType = BusinessType.DELETE)
@PostMapping( "/remove")
@ResponseBody
public AjaxResult remove(String ids)
{
return toAjax(tdPropertyNetService.deleteTdPropertyNetByNetIds(ids));
}
/**
*
*/
@RequiresPermissions("system:network:list")
@GetMapping("/detail/{netId}")
public String detail(@PathVariable("netId") String netId, ModelMap mmap)
{
mmap.put("netId",netId);
return "system/network/netinfo/netinfo";
}
}

@ -0,0 +1,127 @@
package com.ruoyi.web.controller.system;
import java.util.List;
import com.ruoyi.common.utils.uuid.Seq;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.system.domain.TdPropertyNetinfo;
import com.ruoyi.system.service.ITdPropertyNetinfoService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* Controller
*
* @author ruoyi
* @date 2024-05-09
*/
@Controller
@RequestMapping("/system/network/netinfo")
public class TdPropertyNetinfoController extends BaseController
{
private String prefix = "system/network/netinfo";
@Autowired
private ITdPropertyNetinfoService tdPropertyNetinfoService;
@RequiresPermissions("system:network:view")
@GetMapping()
public String netinfo()
{
return prefix + "/netinfo";
}
/**
*
*/
@RequiresPermissions("system:network:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(@RequestParam String netId)
{
startPage();
List<TdPropertyNetinfo> list = tdPropertyNetinfoService.selectTdPropertyNetinfoByNetId(netId);
return getDataTable(list);
}
/**
*
*/
@RequiresPermissions("system:network:export")
@Log(title = "涉密网络登记", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(TdPropertyNetinfo tdPropertyNetinfo)
{
List<TdPropertyNetinfo> list = tdPropertyNetinfoService.selectTdPropertyNetinfoList(tdPropertyNetinfo);
ExcelUtil<TdPropertyNetinfo> util = new ExcelUtil<TdPropertyNetinfo>(TdPropertyNetinfo.class);
return util.exportExcel(list, "涉密网络登记数据");
}
/**
*
*/
@GetMapping("/add/{netId}")
public String add(@PathVariable("netId") String netId, ModelMap mmap)
{
mmap.put("netId", netId);
return prefix + "/add";
}
/**
*
*/
@RequiresPermissions("system:network:add")
@Log(title = "涉密网络登记", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(TdPropertyNetinfo tdPropertyNetinfo)
{
tdPropertyNetinfo.setId("NetInfo" + Seq.getId(Seq.commSeqType));
return toAjax(tdPropertyNetinfoService.insertTdPropertyNetinfo(tdPropertyNetinfo));
}
/**
*
*/
@RequiresPermissions("system:network:edit")
@GetMapping("/edit/{id}")
public String edit(@PathVariable("id") String id, ModelMap mmap)
{
TdPropertyNetinfo tdPropertyNetinfo = tdPropertyNetinfoService.selectTdPropertyNetinfoById(id);
mmap.put("tdPropertyNetinfo", tdPropertyNetinfo);
return prefix + "/edit";
}
/**
*
*/
@RequiresPermissions("system:network:edit")
@Log(title = "涉密网络登记", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(TdPropertyNetinfo tdPropertyNetinfo)
{
return toAjax(tdPropertyNetinfoService.updateTdPropertyNetinfo(tdPropertyNetinfo));
}
/**
*
*/
@RequiresPermissions("system:network:remove")
@Log(title = "涉密网络登记", businessType = BusinessType.DELETE)
@PostMapping( "/remove")
@ResponseBody
public AjaxResult remove(String ids)
{
return toAjax(tdPropertyNetinfoService.deleteTdPropertyNetinfoByIds(ids));
}
}

@ -0,0 +1,116 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('新增涉密网络登记')" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-netinfo-add">
<div class="form-group">
<label class="col-sm-3 control-label">设备编号:</label>
<div class="col-sm-8">
<input name="id" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">网络编号:</label>
<div class="col-sm-8">
<input name="netId" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">网络设备品牌:</label>
<div class="col-sm-8">
<input name="netBrand" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">IP地址</label>
<div class="col-sm-8">
<input name="netIp" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">设备型号:</label>
<div class="col-sm-8">
<input name="netNo" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">设备种类:</label>
<div class="col-sm-8">
<select name="netName" class="form-control m-b" th:with="type=${@dict.getType('sys_net_type')}">
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">序列号:</label>
<div class="col-sm-8">
<input name="netSn" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">备注:</label>
<div class="col-sm-8">
<input name="remark" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">登记人员:</label>
<div class="col-sm-8">
<input name="netname" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">责任人:</label>
<div class="col-sm-8">
<input name="netManager" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">密级:</label>
<div class="col-sm-8">
<select name="netMiji" class="form-control m-b" th:with="type=${@dict.getType('sys_file_miji')}">
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">涉密网络名称:</label>
<div class="col-sm-8">
<input name="netsmname" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">是否属于要害部门部位:</label>
<div class="col-sm-8">
<div class="radio-box" th:each="dict : ${@dict.getType('sys_yes_no')}">
<input type="radio" th:id="${'isCurcial_' + dict.dictCode}" name="isCurcial" th:value="${dict.dictValue}" th:checked="${dict.default}">
<label th:for="${'isCurcial_' + dict.dictCode}" th:text="${dict.dictLabel}"></label>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">单位名称:</label>
<div class="col-sm-8">
<input name="depart" class="form-control" type="text">
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var prefix = ctx + "system/network/netinfo"
$("#form-netinfo-add").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/add", $('#form-netinfo-add').serialize());
}
}
</script>
</body>
</html>

@ -0,0 +1,111 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('修改涉密网络登记')" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-netinfo-edit" th:object="${tdPropertyNetinfo}">
<input name="id" th:field="*{id}" type="hidden">
<div class="form-group">
<label class="col-sm-3 control-label">网络编号:</label>
<div class="col-sm-8">
<input name="netId" th:field="*{netId}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">网络设备品牌:</label>
<div class="col-sm-8">
<input name="netBrand" th:field="*{netBrand}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">IP地址</label>
<div class="col-sm-8">
<input name="netIp" th:field="*{netIp}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">设备型号:</label>
<div class="col-sm-8">
<input name="netNo" th:field="*{netNo}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">设备种类:</label>
<div class="col-sm-8">
<select name="netName" class="form-control m-b" th:with="type=${@dict.getType('sys_net_type')}">
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{netName}"></option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">序列号:</label>
<div class="col-sm-8">
<input name="netSn" th:field="*{netSn}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">备注:</label>
<div class="col-sm-8">
<input name="remark" th:field="*{remark}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">登记人员:</label>
<div class="col-sm-8">
<input name="netname" th:field="*{netname}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">责任人:</label>
<div class="col-sm-8">
<input name="netManager" th:field="*{netManager}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">密级:</label>
<div class="col-sm-8">
<select name="netMiji" class="form-control m-b" th:with="type=${@dict.getType('sys_file_miji')}">
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{netMiji}"></option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">涉密网络名称:</label>
<div class="col-sm-8">
<input name="netsmname" th:field="*{netsmname}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">是否属于要害部门部位:</label>
<div class="col-sm-8">
<div class="radio-box" th:each="dict : ${@dict.getType('sys_yes_no')}">
<input type="radio" th:id="${'isCurcial_' + dict.dictCode}" name="isCurcial" th:value="${dict.dictValue}" th:field="*{isCurcial}">
<label th:for="${'isCurcial_' + dict.dictCode}" th:text="${dict.dictLabel}"></label>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">单位名称:</label>
<div class="col-sm-8">
<input name="depart" th:field="*{depart}" class="form-control" type="text">
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var prefix = ctx + "system/network/netinfo";
$("#form-netinfo-edit").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/edit", $('#form-netinfo-edit').serialize());
}
}
</script>
</body>
</html>

@ -0,0 +1,197 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
<th:block th:include="include :: header('涉密网络登记列表')" />
</head>
<body class="gray-bg">
<div class="container-div">
<div class="row">
<div class="col-sm-12 search-collapse">
<form id="formId">
<div class="select-list">
<ul>
<li>
<label>网络编号:</label>
<input type="text" name="netId"/>
</li>
<li>
<label>网络设备品牌:</label>
<input type="text" name="netBrand"/>
</li>
<li>
<label>IP地址</label>
<input type="text" name="netIp"/>
</li>
<li>
<label>设备型号:</label>
<input type="text" name="netNo"/>
</li>
<li>
<label>设备种类:</label>
<select name="netName" th:with="type=${@dict.getType('sys_net_type')}">
<option value="">所有</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</li>
<li>
<label>序列号:</label>
<input type="text" name="netSn"/>
</li>
<li>
<label>登记人员:</label>
<input type="text" name="netname"/>
</li>
<li>
<label>责任人:</label>
<input type="text" name="netManager"/>
</li>
<li>
<label>密级:</label>
<select name="netMiji" th:with="type=${@dict.getType('sys_file_miji')}">
<option value="">所有</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</li>
<li>
<label>涉密网络名称:</label>
<input type="text" name="netsmname"/>
</li>
<li>
<label>是否属于要害部门部位:</label>
<select name="isCurcial" th:with="type=${@dict.getType('sys_yes_no')}">
<option value="">所有</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</li>
<li>
<label>单位名称:</label>
<input type="text" name="depart"/>
</li>
<li>
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
</li>
</ul>
</div>
</form>
</div>
<div class="btn-group-sm" id="toolbar" role="group">
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="system:netinfo:add">
<i class="fa fa-plus"></i> 添加
</a>
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:netinfo:edit">
<i class="fa fa-edit"></i> 修改
</a>
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:netinfo:remove">
<i class="fa fa-remove"></i> 删除
</a>
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:netinfo:export">
<i class="fa fa-download"></i> 导出
</a>
<a class="btn btn-danger" onclick="closeItem()">
<i class="fa fa-reply-all"></i> 关闭
</a>
</div>
<div class="col-sm-12 select-table table-striped">
<table id="bootstrap-table"></table>
</div>
</div>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var editFlag = [[${@permission.hasPermi('system:network:edit')}]];
var removeFlag = [[${@permission.hasPermi('system:network:remove')}]];
var netNameDatas = [[${@dict.getType('sys_net_type')}]];
var netMijiDatas = [[${@dict.getType('sys_file_miji')}]];
var isCurcialDatas = [[${@dict.getType('sys_yes_no')}]];
var prefix = ctx + "system/network/netinfo";
$(function() {
var options = {
url: prefix + "/list",
createUrl: prefix + "/add",
updateUrl: prefix + "/edit/{id}",
removeUrl: prefix + "/remove",
exportUrl: prefix + "/export",
modalName: "涉密网络登记",
columns: [{
checkbox: true
},
{
field: 'netId',
title: '网络编号'
},
{
field: 'netBrand',
title: '网络设备品牌'
},
{
field: 'netIp',
title: 'IP地址'
},
{
field: 'netNo',
title: '设备型号'
},
{
field: 'netName',
title: '设备种类',
formatter: function(value, row, index) {
return $.table.selectDictLabel(netNameDatas, value);
}
},
{
field: 'netSn',
title: '序列号'
},
{
field: 'remark',
title: '备注'
},
{
field: 'netname',
title: '登记人员'
},
{
field: 'netManager',
title: '责任人'
},
{
field: 'netMiji',
title: '密级',
formatter: function(value, row, index) {
return $.table.selectDictLabel(netMijiDatas, value);
}
},
{
field: 'netsmname',
title: '涉密网络名称'
},
{
field: 'isCurcial',
title: '是否属于要害部门部位',
formatter: function(value, row, index) {
return $.table.selectDictLabel(isCurcialDatas, value);
}
},
{
field: 'depart',
title: '单位名称'
},
{
title: '操作',
align: 'center',
formatter: function(value, row, index) {
var actions = [];
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
return actions.join('');
}
}]
};
$.table.init(options);
});
</script>
</body>
</html>

@ -0,0 +1,86 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('新增涉密网络设备')" />
<th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-network-add">
<div class="form-group">
<label class="col-sm-3 control-label">所属市州:</label>
<div class="col-sm-8">
<input name="framework" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">所属区县:</label>
<div class="col-sm-8">
<input name="area" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">使用单位:</label>
<div class="col-sm-8">
<input name="netDepart" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">使用部门:</label>
<div class="col-sm-8">
<input name="part" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">登记人员:</label>
<div class="col-sm-8">
<input name="netUser" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">登记日期:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="netDate" class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">设备密级:</label>
<div class="col-sm-8">
<select name="netMiji" class="form-control m-b" th:with="type=${@dict.getType('sys_file_miji')}">
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">设备数量:</label>
<div class="col-sm-8">
<input name="terminalNum" class="form-control" type="text">
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
var prefix = ctx + "system/network"
$("#form-network-add").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/add", $('#form-network-add').serialize());
}
}
$("input[name='netDate']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
</script>
</body>
</html>

@ -0,0 +1,88 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('修改涉密网络设备')" />
<th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-network-edit" th:object="${tdPropertyNet}">
<input name="netId" th:field="*{netId}" type="hidden">
<div class="form-group">
<label class="col-sm-3 control-label">所属市州:</label>
<div class="col-sm-8">
<input name="framework" th:field="*{framework}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">所属区县:</label>
<div class="col-sm-8">
<input name="area" th:field="*{area}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">使用单位:</label>
<div class="col-sm-8">
<input name="netDepart" th:field="*{netDepart}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">使用部门:</label>
<div class="col-sm-8">
<input name="part" th:field="*{part}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">登记人员:</label>
<div class="col-sm-8">
<input name="netUser" disabled th:field="*{netUser}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">登记日期:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="netDate" disabled th:value="${#dates.format(tdPropertyNet.netDate, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">设备密级:</label>
<div class="col-sm-8">
<select name="netMiji" class="form-control m-b" th:with="type=${@dict.getType('sys_file_miji')}">
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{netMiji}"></option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">设备数量:</label>
<div class="col-sm-8">
<input name="terminalNum" th:field="*{terminalNum}" class="form-control" type="text">
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
var prefix = ctx + "system/network";
$("#form-network-edit").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/edit", $('#form-network-edit').serialize());
}
}
$("input[name='netDate']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
</script>
</body>
</html>

@ -0,0 +1,137 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
<th:block th:include="include :: header('涉密网络设备列表')" />
</head>
<body class="gray-bg">
<div class="container-div">
<div class="row">
<div class="col-sm-12 search-collapse">
<form id="formId">
<div class="select-list">
<ul>
<li>
<label>所属市州:</label>
<input type="text" name="framework"/>
</li>
<li>
<label>所属区县:</label>
<input type="text" name="area"/>
</li>
<li>
<label>使用单位:</label>
<input type="text" name="netDepart"/>
</li>
<li>
<label>部门名称:</label>
<input type="text" name="part"/>
</li>
<li>
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
</li>
</ul>
</div>
</form>
</div>
<div class="btn-group-sm" id="toolbar" role="group">
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="system:network:add">
<i class="fa fa-plus"></i> 添加
</a>
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:network:edit">
<i class="fa fa-edit"></i> 修改
</a>
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:network:remove">
<i class="fa fa-remove"></i> 删除
</a>
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:network:export">
<i class="fa fa-download"></i> 导出
</a>
</div>
<div class="col-sm-12 select-table table-striped">
<table id="bootstrap-table"></table>
</div>
</div>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var editFlag = [[${@permission.hasPermi('system:network:edit')}]];
var removeFlag = [[${@permission.hasPermi('system:network:remove')}]];
var listFlag = [[${@permission.hasPermi('system:network:list')}]];
var netMijiDatas = [[${@dict.getType('sys_file_miji')}]];
var prefix = ctx + "system/network";
$(function() {
var options = {
url: prefix + "/list",
createUrl: prefix + "/add",
updateUrl: prefix + "/edit/{id}",
removeUrl: prefix + "/remove",
exportUrl: prefix + "/export",
modalName: "涉密网络设备",
columns: [{
checkbox: true
},
{
field: 'netId',
title: '网络设备id',
visible: false
},
{
field: 'framework',
title: '所属市州'
},
{
field: 'area',
title: '所属区县'
},
{
field: 'netDepart',
title: '使用单位'
},
{
field: 'part',
title: '使用部门'
},
{
field: 'netUser',
title: '登记人员'
},
{
field: 'netDate',
title: '登记日期'
},
{
field: 'netMiji',
title: '设备密级',
formatter: function(value, row, index) {
return $.table.selectDictLabel(netMijiDatas, value);
}
},
{
field: 'terminalNum',
title: '设备数量'
},
{
title: '操作',
align: 'center',
formatter: function(value, row, index) {
var actions = [];
actions.push('<a class="btn btn-info btn-xs ' + listFlag + '" href="javascript:void(0)" onclick="detail(\'' + row.netId + '\')"><i class="fa fa-list-ul"></i>列表</a> ');
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.netId + '\')"><i class="fa fa-edit"></i>编辑</a> ');
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.netId + '\')"><i class="fa fa-remove"></i>删除</a>');
return actions.join('');
}
}]
};
$.table.init(options);
});
/*网络设备列表-详细*/
function detail(netId) {
var url = prefix + '/detail/' + netId;
$.modal.openTab("网络设备列表数据", url);
}
</script>
</body>
</html>

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
</body>
</html>

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
</body>
</html>

@ -0,0 +1,180 @@
package com.ruoyi.system.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;
/**
* td_property_net
*
* @author ruoyi
* @date 2024-05-09
*/
public class TdPropertyNet extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 网络设备id */
private String netId;
/** 使用单位 */
@Excel(name = "使用单位")
private String netDepart;
/** 使用人员 */
@Excel(name = "使用人员")
private String netUser;
/** 使用日期 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "使用日期", width = 30, dateFormat = "yyyy-MM-dd")
private Date netDate;
/** 所属市州 */
@Excel(name = "所属市州")
private String framework;
/** 所属区县 */
@Excel(name = "所属区县")
private String area;
/** 省份 */
@Excel(name = "省份")
private String province;
/** 密级0秘密1机密2绝密 */
@Excel(name = "密级", readConverterExp = "0=秘密1机密2绝密")
private String netMiji;
/** 数量 */
@Excel(name = "数量")
private String terminalNum;
/** */
@Excel(name = "")
private String netRecoverdepart;
/** 部门 */
@Excel(name = "部门")
private String part;
public void setNetId(String netId)
{
this.netId = netId;
}
public String getNetId()
{
return netId;
}
public void setNetDepart(String netDepart)
{
this.netDepart = netDepart;
}
public String getNetDepart()
{
return netDepart;
}
public void setNetUser(String netUser)
{
this.netUser = netUser;
}
public String getNetUser()
{
return netUser;
}
public void setNetDate(Date netDate)
{
this.netDate = netDate;
}
public Date getNetDate()
{
return netDate;
}
public void setFramework(String framework)
{
this.framework = framework;
}
public String getFramework()
{
return framework;
}
public void setArea(String area)
{
this.area = area;
}
public String getArea()
{
return area;
}
public void setProvince(String province)
{
this.province = province;
}
public String getProvince()
{
return province;
}
public void setNetMiji(String netMiji)
{
this.netMiji = netMiji;
}
public String getNetMiji()
{
return netMiji;
}
public void setTerminalNum(String terminalNum)
{
this.terminalNum = terminalNum;
}
public String getTerminalNum()
{
return terminalNum;
}
public void setNetRecoverdepart(String netRecoverdepart)
{
this.netRecoverdepart = netRecoverdepart;
}
public String getNetRecoverdepart()
{
return netRecoverdepart;
}
public void setPart(String part)
{
this.part = part;
}
public String getPart()
{
return part;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("netId", getNetId())
.append("netDepart", getNetDepart())
.append("netUser", getNetUser())
.append("netDate", getNetDate())
.append("framework", getFramework())
.append("area", getArea())
.append("province", getProvince())
.append("netMiji", getNetMiji())
.append("terminalNum", getTerminalNum())
.append("netRecoverdepart", getNetRecoverdepart())
.append("part", getPart())
.toString();
}
}

@ -0,0 +1,206 @@
package com.ruoyi.system.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;
/**
* td_property_netinfo
*
* @author ruoyi
* @date 2024-05-09
*/
public class TdPropertyNetinfo extends BaseEntity
{
private static final Long serialVersionUID = 1L;
/** 设备编号 */
private String id;
/** 网络编号 */
@Excel(name = "网络编号")
private String netId;
/** 网络设备品牌 */
@Excel(name = "网络设备品牌")
private String netBrand;
/** IP地址 */
@Excel(name = "IP地址")
private String netIp;
/** 设备型号 */
@Excel(name = "设备型号")
private String netNo;
/** 设备种类 */
@Excel(name = "设备种类")
private String netName;
/** 序列号 */
@Excel(name = "序列号")
private String netSn;
/** 登记人员 */
@Excel(name = "登记人员")
private String netname;
/** 责任人 */
@Excel(name = "责任人")
private String netManager;
/** 密级0秘密1机密2绝密 */
@Excel(name = "密级", readConverterExp = "0=秘密1机密2绝密")
private String netMiji;
/** 涉密网络名称 */
@Excel(name = "涉密网络名称")
private String netsmname;
/** 是否属于要害部门部位 */
@Excel(name = "是否属于要害部门部位")
private String isCurcial;
/** 单位名称 */
@Excel(name = "单位名称")
private String depart;
public void setId(String id)
{
this.id = id;
}
public String getId()
{
return id;
}
public void setNetId(String netId)
{
this.netId = netId;
}
public String getNetId()
{
return netId;
}
public void setNetBrand(String netBrand)
{
this.netBrand = netBrand;
}
public String getNetBrand()
{
return netBrand;
}
public void setNetIp(String netIp)
{
this.netIp = netIp;
}
public String getNetIp()
{
return netIp;
}
public void setNetNo(String netNo)
{
this.netNo = netNo;
}
public String getNetNo()
{
return netNo;
}
public void setNetName(String netName)
{
this.netName = netName;
}
public String getNetName()
{
return netName;
}
public void setNetSn(String netSn)
{
this.netSn = netSn;
}
public String getNetSn()
{
return netSn;
}
public void setNetname(String netname)
{
this.netname = netname;
}
public String getNetname()
{
return netname;
}
public void setNetManager(String netManager)
{
this.netManager = netManager;
}
public String getNetManager()
{
return netManager;
}
public void setNetMiji(String netMiji)
{
this.netMiji = netMiji;
}
public String getNetMiji()
{
return netMiji;
}
public void setNetsmname(String netsmname)
{
this.netsmname = netsmname;
}
public String getNetsmname()
{
return netsmname;
}
public void setIsCurcial(String isCurcial)
{
this.isCurcial = isCurcial;
}
public String getIsCurcial()
{
return isCurcial;
}
public void setDepart(String depart)
{
this.depart = depart;
}
public String getDepart()
{
return depart;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("netId", getNetId())
.append("netBrand", getNetBrand())
.append("netIp", getNetIp())
.append("netNo", getNetNo())
.append("netName", getNetName())
.append("netSn", getNetSn())
.append("remark", getRemark())
.append("netname", getNetname())
.append("netManager", getNetManager())
.append("netMiji", getNetMiji())
.append("netsmname", getNetsmname())
.append("isCurcial", getIsCurcial())
.append("depart", getDepart())
.toString();
}
}

@ -0,0 +1,61 @@
package com.ruoyi.system.mapper;
import java.util.List;
import com.ruoyi.system.domain.TdPropertyNet;
/**
* Mapper
*
* @author ruoyi
* @date 2024-05-09
*/
public interface TdPropertyNetMapper
{
/**
*
*
* @param netId
* @return
*/
public TdPropertyNet selectTdPropertyNetByNetId(String netId);
/**
*
*
* @param tdPropertyNet
* @return
*/
public List<TdPropertyNet> selectTdPropertyNetList(TdPropertyNet tdPropertyNet);
/**
*
*
* @param tdPropertyNet
* @return
*/
public int insertTdPropertyNet(TdPropertyNet tdPropertyNet);
/**
*
*
* @param tdPropertyNet
* @return
*/
public int updateTdPropertyNet(TdPropertyNet tdPropertyNet);
/**
*
*
* @param netId
* @return
*/
public int deleteTdPropertyNetByNetId(String netId);
/**
*
*
* @param netIds
* @return
*/
public int deleteTdPropertyNetByNetIds(String[] netIds);
}

@ -0,0 +1,64 @@
package com.ruoyi.system.mapper;
import java.util.List;
import com.ruoyi.system.domain.TdPropertyNetinfo;
/**
* Mapper
*
* @author ruoyi
* @date 2024-05-09
*/
public interface TdPropertyNetinfoMapper
{
/**
*
*
* @param id
* @return
*/
public TdPropertyNetinfo selectTdPropertyNetinfoById(String id);
public List<TdPropertyNetinfo> selectTdPropertyNetinfoByNetId(String id);
/**
*
*
* @param tdPropertyNetinfo
* @return
*/
public List<TdPropertyNetinfo> selectTdPropertyNetinfoList(TdPropertyNetinfo tdPropertyNetinfo);
/**
*
*
* @param tdPropertyNetinfo
* @return
*/
public int insertTdPropertyNetinfo(TdPropertyNetinfo tdPropertyNetinfo);
/**
*
*
* @param tdPropertyNetinfo
* @return
*/
public int updateTdPropertyNetinfo(TdPropertyNetinfo tdPropertyNetinfo);
/**
*
*
* @param id
* @return
*/
public int deleteTdPropertyNetinfoById(String id);
/**
*
*
* @param ids
* @return
*/
public int deleteTdPropertyNetinfoByIds(String[] ids);
}

@ -0,0 +1,61 @@
package com.ruoyi.system.service;
import java.util.List;
import com.ruoyi.system.domain.TdPropertyNet;
/**
* Service
*
* @author ruoyi
* @date 2024-05-09
*/
public interface ITdPropertyNetService
{
/**
*
*
* @param netId
* @return
*/
public TdPropertyNet selectTdPropertyNetByNetId(String netId);
/**
*
*
* @param tdPropertyNet
* @return
*/
public List<TdPropertyNet> selectTdPropertyNetList(TdPropertyNet tdPropertyNet);
/**
*
*
* @param tdPropertyNet
* @return
*/
public int insertTdPropertyNet(TdPropertyNet tdPropertyNet);
/**
*
*
* @param tdPropertyNet
* @return
*/
public int updateTdPropertyNet(TdPropertyNet tdPropertyNet);
/**
*
*
* @param netIds
* @return
*/
public int deleteTdPropertyNetByNetIds(String netIds);
/**
*
*
* @param netId
* @return
*/
public int deleteTdPropertyNetByNetId(String netId);
}

@ -0,0 +1,63 @@
package com.ruoyi.system.service;
import java.util.List;
import com.ruoyi.system.domain.TdPropertyNetinfo;
/**
* Service
*
* @author ruoyi
* @date 2024-05-09
*/
public interface ITdPropertyNetinfoService
{
/**
*
*
* @param id
* @return
*/
public TdPropertyNetinfo selectTdPropertyNetinfoById(String id);
public List<TdPropertyNetinfo> selectTdPropertyNetinfoByNetId(String id);
/**
*
*
* @param tdPropertyNetinfo
* @return
*/
public List<TdPropertyNetinfo> selectTdPropertyNetinfoList(TdPropertyNetinfo tdPropertyNetinfo);
/**
*
*
* @param tdPropertyNetinfo
* @return
*/
public int insertTdPropertyNetinfo(TdPropertyNetinfo tdPropertyNetinfo);
/**
*
*
* @param tdPropertyNetinfo
* @return
*/
public int updateTdPropertyNetinfo(TdPropertyNetinfo tdPropertyNetinfo);
/**
*
*
* @param ids
* @return
*/
public int deleteTdPropertyNetinfoByIds(String ids);
/**
*
*
* @param id
* @return
*/
public int deleteTdPropertyNetinfoById(String id);
}

@ -0,0 +1,94 @@
package com.ruoyi.system.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TdPropertyNetMapper;
import com.ruoyi.system.domain.TdPropertyNet;
import com.ruoyi.system.service.ITdPropertyNetService;
import com.ruoyi.common.core.text.Convert;
/**
* Service
*
* @author ruoyi
* @date 2024-05-09
*/
@Service
public class TdPropertyNetServiceImpl implements ITdPropertyNetService
{
@Autowired
private TdPropertyNetMapper tdPropertyNetMapper;
/**
*
*
* @param netId
* @return
*/
@Override
public TdPropertyNet selectTdPropertyNetByNetId(String netId)
{
return tdPropertyNetMapper.selectTdPropertyNetByNetId(netId);
}
/**
*
*
* @param tdPropertyNet
* @return
*/
@Override
public List<TdPropertyNet> selectTdPropertyNetList(TdPropertyNet tdPropertyNet)
{
return tdPropertyNetMapper.selectTdPropertyNetList(tdPropertyNet);
}
/**
*
*
* @param tdPropertyNet
* @return
*/
@Override
public int insertTdPropertyNet(TdPropertyNet tdPropertyNet)
{
return tdPropertyNetMapper.insertTdPropertyNet(tdPropertyNet);
}
/**
*
*
* @param tdPropertyNet
* @return
*/
@Override
public int updateTdPropertyNet(TdPropertyNet tdPropertyNet)
{
return tdPropertyNetMapper.updateTdPropertyNet(tdPropertyNet);
}
/**
*
*
* @param netIds
* @return
*/
@Override
public int deleteTdPropertyNetByNetIds(String netIds)
{
return tdPropertyNetMapper.deleteTdPropertyNetByNetIds(Convert.toStrArray(netIds));
}
/**
*
*
* @param netId
* @return
*/
@Override
public int deleteTdPropertyNetByNetId(String netId)
{
return tdPropertyNetMapper.deleteTdPropertyNetByNetId(netId);
}
}

@ -0,0 +1,99 @@
package com.ruoyi.system.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TdPropertyNetinfoMapper;
import com.ruoyi.system.domain.TdPropertyNetinfo;
import com.ruoyi.system.service.ITdPropertyNetinfoService;
import com.ruoyi.common.core.text.Convert;
/**
* Service
*
* @author ruoyi
* @date 2024-05-09
*/
@Service
public class TdPropertyNetinfoServiceImpl implements ITdPropertyNetinfoService
{
@Autowired
private TdPropertyNetinfoMapper tdPropertyNetinfoMapper;
/**
*
*
* @param id
* @return
*/
@Override
public TdPropertyNetinfo selectTdPropertyNetinfoById(String id)
{
return tdPropertyNetinfoMapper.selectTdPropertyNetinfoById(id);
}
@Override
public List<TdPropertyNetinfo> selectTdPropertyNetinfoByNetId(String id) {
return tdPropertyNetinfoMapper.selectTdPropertyNetinfoByNetId(id);
}
/**
*
*
* @param tdPropertyNetinfo
* @return
*/
@Override
public List<TdPropertyNetinfo> selectTdPropertyNetinfoList(TdPropertyNetinfo tdPropertyNetinfo)
{
return tdPropertyNetinfoMapper.selectTdPropertyNetinfoList(tdPropertyNetinfo);
}
/**
*
*
* @param tdPropertyNetinfo
* @return
*/
@Override
public int insertTdPropertyNetinfo(TdPropertyNetinfo tdPropertyNetinfo)
{
return tdPropertyNetinfoMapper.insertTdPropertyNetinfo(tdPropertyNetinfo);
}
/**
*
*
* @param tdPropertyNetinfo
* @return
*/
@Override
public int updateTdPropertyNetinfo(TdPropertyNetinfo tdPropertyNetinfo)
{
return tdPropertyNetinfoMapper.updateTdPropertyNetinfo(tdPropertyNetinfo);
}
/**
*
*
* @param ids
* @return
*/
@Override
public int deleteTdPropertyNetinfoByIds(String ids)
{
return tdPropertyNetinfoMapper.deleteTdPropertyNetinfoByIds(Convert.toStrArray(ids));
}
/**
*
*
* @param id
* @return
*/
@Override
public int deleteTdPropertyNetinfoById(String id)
{
return tdPropertyNetinfoMapper.deleteTdPropertyNetinfoById(id);
}
}

@ -0,0 +1,104 @@
<?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.system.mapper.TdPropertyNetMapper">
<resultMap type="TdPropertyNet" id="TdPropertyNetResult">
<result property="netId" column="net_id" />
<result property="netDepart" column="net_depart" />
<result property="netUser" column="net_user" />
<result property="netDate" column="net_date" />
<result property="framework" column="framework" />
<result property="area" column="area" />
<result property="province" column="province" />
<result property="netMiji" column="net_miji" />
<result property="terminalNum" column="terminal_num" />
<result property="netRecoverdepart" column="net_recoverdepart" />
<result property="part" column="part" />
</resultMap>
<sql id="selectTdPropertyNetVo">
select net_id, net_depart, net_user, net_date, framework, area, province, net_miji, terminal_num, net_recoverdepart, part from td_property_net
</sql>
<select id="selectTdPropertyNetList" parameterType="TdPropertyNet" resultMap="TdPropertyNetResult">
<include refid="selectTdPropertyNetVo"/>
<where>
<if test="netDepart != null and netDepart != ''"> and net_depart = #{netDepart}</if>
<if test="netUser != null and netUser != ''"> and net_user = #{netUser}</if>
<if test="netDate != null "> and net_date = #{netDate}</if>
<if test="framework != null and framework != ''"> and framework = #{framework}</if>
<if test="area != null and area != ''"> and area = #{area}</if>
<if test="province != null and province != ''"> and province = #{province}</if>
<if test="netMiji != null and netMiji != ''"> and net_miji = #{netMiji}</if>
<if test="terminalNum != null and terminalNum != ''"> and terminal_num = #{terminalNum}</if>
<if test="netRecoverdepart != null and netRecoverdepart != ''"> and net_recoverdepart = #{netRecoverdepart}</if>
<if test="part != null and part != ''"> and part = #{part}</if>
</where>
</select>
<select id="selectTdPropertyNetByNetId" parameterType="String" resultMap="TdPropertyNetResult">
<include refid="selectTdPropertyNetVo"/>
where net_id = #{netId}
</select>
<insert id="insertTdPropertyNet" parameterType="TdPropertyNet">
insert into td_property_net
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="netId != null">net_id,</if>
<if test="netDepart != null">net_depart,</if>
<if test="netUser != null">net_user,</if>
<if test="netDate != null">net_date,</if>
<if test="framework != null">framework,</if>
<if test="area != null">area,</if>
<if test="province != null">province,</if>
<if test="netMiji != null">net_miji,</if>
<if test="terminalNum != null">terminal_num,</if>
<if test="netRecoverdepart != null">net_recoverdepart,</if>
<if test="part != null">part,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="netId != null">#{netId},</if>
<if test="netDepart != null">#{netDepart},</if>
<if test="netUser != null">#{netUser},</if>
<if test="netDate != null">#{netDate},</if>
<if test="framework != null">#{framework},</if>
<if test="area != null">#{area},</if>
<if test="province != null">#{province},</if>
<if test="netMiji != null">#{netMiji},</if>
<if test="terminalNum != null">#{terminalNum},</if>
<if test="netRecoverdepart != null">#{netRecoverdepart},</if>
<if test="part != null">#{part},</if>
</trim>
</insert>
<update id="updateTdPropertyNet" parameterType="TdPropertyNet">
update td_property_net
<trim prefix="SET" suffixOverrides=",">
<if test="netDepart != null">net_depart = #{netDepart},</if>
<if test="netUser != null">net_user = #{netUser},</if>
<if test="netDate != null">net_date = #{netDate},</if>
<if test="framework != null">framework = #{framework},</if>
<if test="area != null">area = #{area},</if>
<if test="province != null">province = #{province},</if>
<if test="netMiji != null">net_miji = #{netMiji},</if>
<if test="terminalNum != null">terminal_num = #{terminalNum},</if>
<if test="netRecoverdepart != null">net_recoverdepart = #{netRecoverdepart},</if>
<if test="part != null">part = #{part},</if>
</trim>
where net_id = #{netId}
</update>
<delete id="deleteTdPropertyNetByNetId" parameterType="String">
delete from td_property_net where net_id = #{netId}
</delete>
<delete id="deleteTdPropertyNetByNetIds" parameterType="String">
delete from td_property_net where net_id in
<foreach item="netId" collection="array" open="(" separator="," close=")">
#{netId}
</foreach>
</delete>
</mapper>

@ -0,0 +1,123 @@
<?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.system.mapper.TdPropertyNetinfoMapper">
<resultMap type="TdPropertyNetinfo" id="TdPropertyNetinfoResult">
<result property="id" column="id" />
<result property="netId" column="net_id" />
<result property="netBrand" column="net_brand" />
<result property="netIp" column="net_ip" />
<result property="netNo" column="net_no" />
<result property="netName" column="net_name" />
<result property="netSn" column="net_sn" />
<result property="remark" column="remark" />
<result property="netname" column="netname" />
<result property="netManager" column="net_manager" />
<result property="netMiji" column="net_miji" />
<result property="netsmname" column="netsmname" />
<result property="isCurcial" column="is_curcial" />
<result property="depart" column="depart" />
</resultMap>
<sql id="selectTdPropertyNetinfoVo">
select id, net_id, net_brand, net_ip, net_no, net_name, net_sn, remark, netname, net_manager, net_miji, netsmname, is_curcial, depart from td_property_netinfo
</sql>
<select id="selectTdPropertyNetinfoList" parameterType="TdPropertyNetinfo" resultMap="TdPropertyNetinfoResult">
<include refid="selectTdPropertyNetinfoVo"/>
<where>
<if test="netId != null "> and net_id = #{netId}</if>
<if test="netBrand != null "> and net_brand = #{netBrand}</if>
<if test="netIp != null "> and net_ip = #{netIp}</if>
<if test="netNo != null "> and net_no = #{netNo}</if>
<if test="netName != null "> and net_name = #{netName}</if>
<if test="netSn != null "> and net_sn = #{netSn}</if>
<if test="netname != null "> and netname = #{netname}</if>
<if test="netManager != null "> and net_manager = #{netManager}</if>
<if test="netMiji != null "> and net_miji = #{netMiji}</if>
<if test="netsmname != null "> and netsmname = #{netsmname}</if>
<if test="isCurcial != null "> and is_curcial = #{isCurcial}</if>
<if test="depart != null "> and depart = #{depart}</if>
</where>
</select>
<select id="selectTdPropertyNetinfoById" parameterType="String" resultMap="TdPropertyNetinfoResult">
<include refid="selectTdPropertyNetinfoVo"/>
where id = #{id}
</select>
<select id="selectTdPropertyNetinfoByNetId" parameterType="String" resultMap="TdPropertyNetinfoResult">
<include refid="selectTdPropertyNetinfoVo"/>
where net_id = #{id}
</select>
<insert id="insertTdPropertyNetinfo" parameterType="TdPropertyNetinfo">
insert into td_property_netinfo
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">id,</if>
<if test="netId != null">net_id,</if>
<if test="netBrand != null">net_brand,</if>
<if test="netIp != null">net_ip,</if>
<if test="netNo != null">net_no,</if>
<if test="netName != null">net_name,</if>
<if test="netSn != null">net_sn,</if>
<if test="remark != null">remark,</if>
<if test="netname != null">netname,</if>
<if test="netManager != null">net_manager,</if>
<if test="netMiji != null">net_miji,</if>
<if test="netsmname != null">netsmname,</if>
<if test="isCurcial != null">is_curcial,</if>
<if test="depart != null">depart,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if>
<if test="netId != null">#{netId},</if>
<if test="netBrand != null">#{netBrand},</if>
<if test="netIp != null">#{netIp},</if>
<if test="netNo != null">#{netNo},</if>
<if test="netName != null">#{netName},</if>
<if test="netSn != null">#{netSn},</if>
<if test="remark != null">#{remark},</if>
<if test="netname != null">#{netname},</if>
<if test="netManager != null">#{netManager},</if>
<if test="netMiji != null">#{netMiji},</if>
<if test="netsmname != null">#{netsmname},</if>
<if test="isCurcial != null">#{isCurcial},</if>
<if test="depart != null">#{depart},</if>
</trim>
</insert>
<update id="updateTdPropertyNetinfo" parameterType="TdPropertyNetinfo">
update td_property_netinfo
<trim prefix="SET" suffixOverrides=",">
<if test="netId != null">net_id = #{netId},</if>
<if test="netBrand != null">net_brand = #{netBrand},</if>
<if test="netIp != null">net_ip = #{netIp},</if>
<if test="netNo != null">net_no = #{netNo},</if>
<if test="netName != null">net_name = #{netName},</if>
<if test="netSn != null">net_sn = #{netSn},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="netname != null">netname = #{netname},</if>
<if test="netManager != null">net_manager = #{netManager},</if>
<if test="netMiji != null">net_miji = #{netMiji},</if>
<if test="netsmname != null">netsmname = #{netsmname},</if>
<if test="isCurcial != null">is_curcial = #{isCurcial},</if>
<if test="depart != null">depart = #{depart},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteTdPropertyNetinfoById" parameterType="String">
delete from td_property_netinfo where id = #{id}
</delete>
<delete id="deleteTdPropertyNetinfoByIds" parameterType="String">
delete from td_property_netinfo where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>
Loading…
Cancel
Save