parent
57e55062c1
commit
7a993992db
@ -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,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> 搜索</a>
|
||||
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i> 重置</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,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…
Reference in new issue