涉密文件接收

master
20918 1 year ago
parent acc11b6af5
commit 3211747d55

@ -1,4 +1,4 @@
package com.ruoyi.web.controller.system;
package com.ruoyi.web.controller.system.check;
import java.util.List;
import org.apache.shiro.authz.annotation.RequiresPermissions;

@ -1,4 +1,4 @@
package com.ruoyi.web.controller.system;
package com.ruoyi.web.controller.system.check;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;

@ -1,4 +1,4 @@
package com.ruoyi.web.controller.system;
package com.ruoyi.web.controller.system.check;
import java.util.List;
import org.apache.shiro.authz.annotation.RequiresPermissions;

@ -1,4 +1,4 @@
package com.ruoyi.web.controller.system;
package com.ruoyi.web.controller.system.count;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;

@ -1,4 +1,4 @@
package com.ruoyi.web.controller.system;
package com.ruoyi.web.controller.system.count;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;

@ -1,4 +1,4 @@
package com.ruoyi.web.controller.system;
package com.ruoyi.web.controller.system.count;
import java.util.List;
import org.apache.shiro.authz.annotation.RequiresPermissions;

@ -1,4 +1,4 @@
package com.ruoyi.web.controller.system;
package com.ruoyi.web.controller.system.exam;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.domain.entity.SysUser;

@ -1,4 +1,4 @@
package com.ruoyi.web.controller.system;
package com.ruoyi.web.controller.system.exam;
import java.util.List;
import org.apache.shiro.authz.annotation.RequiresPermissions;

@ -1,4 +1,4 @@
package com.ruoyi.web.controller.system;
package com.ruoyi.web.controller.system.exam;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.entity.SysUser;

@ -1,13 +1,16 @@
package com.ruoyi.web.controller.system;
package com.ruoyi.web.controller.system.filemanager;
import java.util.List;
import com.ruoyi.common.core.domain.entity.SysDept;
import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.common.utils.sql.SqlUtil;
import com.ruoyi.common.utils.uuid.Seq;
import com.ruoyi.framework.web.domain.server.Sys;
import com.ruoyi.system.domain.SysPost;
import com.ruoyi.system.service.ISysDeptService;
import com.ruoyi.system.service.ISysPostService;
import com.ruoyi.system.service.ITdFileReceiveService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
@ -41,7 +44,9 @@ public class TdFileProvideController extends BaseController
@Autowired
private ITdFileProvideService tdFileProvideService;
@Autowired
private ISysPostService postService;
private ISysDeptService deptService;
@Autowired
private ITdFileReceiveService tdFileReceiveService;
@RequiresPermissions("system:fileprovide:view")
@GetMapping()
@ -81,9 +86,9 @@ public class TdFileProvideController extends BaseController
*
*/
@GetMapping("/add")
public String add(SysPost post, ModelMap mmap)
public String add(SysDept dept, ModelMap mmap)
{
mmap.put("post",postService.selectPostList(post));
mmap.put("dept",deptService.selectDeptList(dept));
mmap.put("user",getSysUser());
return prefix + "/add";
}
@ -98,6 +103,7 @@ public class TdFileProvideController extends BaseController
public AjaxResult addSave(TdFileProvide tdFileProvide)
{
tdFileProvide.setFileId("File_"+Seq.getId(Seq.commSeqType));
System.out.println(tdFileProvide.getTargetDepart());
return toAjax(tdFileProvideService.insertTdFileProvide(tdFileProvide));
}

@ -0,0 +1,127 @@
package com.ruoyi.web.controller.system.filemanager;
import java.util.List;
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.TdFileReceive;
import com.ruoyi.system.service.ITdFileReceiveService;
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-14
*/
@Controller
@RequestMapping("/system/filereceive")
public class TdFileReceiveController extends BaseController
{
private String prefix = "system/filereceive";
@Autowired
private ITdFileReceiveService tdFileReceiveService;
@RequiresPermissions("system:filereceive:view")
@GetMapping()
public String filereceive()
{
return prefix + "/filereceive";
}
/**
*
*/
@RequiresPermissions("system:filereceive:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(TdFileReceive tdFileReceive)
{
startPage();
List<TdFileReceive> list = tdFileReceiveService.selectTdFileReceiveList(tdFileReceive);
return getDataTable(list);
}
/**
*
*/
@RequiresPermissions("system:filereceive:export")
@Log(title = "涉密文件接收", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(TdFileReceive tdFileReceive)
{
List<TdFileReceive> list = tdFileReceiveService.selectTdFileReceiveList(tdFileReceive);
ExcelUtil<TdFileReceive> util = new ExcelUtil<TdFileReceive>(TdFileReceive.class);
return util.exportExcel(list, "涉密文件接收数据");
}
/**
*
*/
@GetMapping("/add")
public String add()
{
return prefix + "/add";
}
/**
*
*/
@RequiresPermissions("system:filereceive:add")
@Log(title = "涉密文件接收", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(TdFileReceive tdFileReceive)
{
return toAjax(tdFileReceiveService.insertTdFileReceive(tdFileReceive));
}
/**
*
*/
@RequiresPermissions("system:filereceive:edit")
@GetMapping("/edit/{receiveId}")
public String edit(@PathVariable("receiveId") Long receiveId, ModelMap mmap)
{
TdFileReceive tdFileReceive = tdFileReceiveService.selectTdFileReceiveByReceiveId(receiveId);
mmap.put("tdFileReceive", tdFileReceive);
return prefix + "/edit";
}
/**
*
*/
@RequiresPermissions("system:filereceive:edit")
@Log(title = "涉密文件接收", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(TdFileReceive tdFileReceive)
{
return toAjax(tdFileReceiveService.updateTdFileReceive(tdFileReceive));
}
/**
*
*/
@RequiresPermissions("system:filereceive:remove")
@Log(title = "涉密文件接收", businessType = BusinessType.DELETE)
@PostMapping( "/remove")
@ResponseBody
public AjaxResult remove(String ids)
{
return toAjax(tdFileReceiveService.deleteTdFileReceiveByReceiveIds(ids));
}
}

@ -1,4 +1,4 @@
package com.ruoyi.web.controller.system;
package com.ruoyi.web.controller.system.property;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;

@ -1,4 +1,4 @@
package com.ruoyi.web.controller.system;
package com.ruoyi.web.controller.system.property;
import java.util.Collections;
import java.util.List;

@ -1,4 +1,4 @@
package com.ruoyi.web.controller.system;
package com.ruoyi.web.controller.system.property;
import java.util.List;
@ -73,6 +73,7 @@ public class TdPropertyNetinfoController extends BaseController
public String add(@PathVariable("netId") String netId, ModelMap mmap)
{
mmap.put("netId", netId);
mmap.put("sysuser",getSysUser());
return prefix + "/add";
}

@ -1,4 +1,4 @@
package com.ruoyi.web.controller.system;
package com.ruoyi.web.controller.system.system;
import java.awt.image.BufferedImage;
import java.io.IOException;

@ -1,4 +1,4 @@
package com.ruoyi.web.controller.system;
package com.ruoyi.web.controller.system.system;
import java.util.List;
import org.apache.shiro.authz.annotation.RequiresPermissions;

@ -1,4 +1,4 @@
package com.ruoyi.web.controller.system;
package com.ruoyi.web.controller.system.system;
import java.util.List;
import org.apache.shiro.authz.annotation.RequiresPermissions;

@ -1,4 +1,4 @@
package com.ruoyi.web.controller.system;
package com.ruoyi.web.controller.system.system;
import java.util.List;
import org.apache.shiro.authz.annotation.RequiresPermissions;

@ -1,4 +1,4 @@
package com.ruoyi.web.controller.system;
package com.ruoyi.web.controller.system.system;
import java.util.List;
import org.apache.shiro.authz.annotation.RequiresPermissions;

@ -1,4 +1,4 @@
package com.ruoyi.web.controller.system;
package com.ruoyi.web.controller.system.system;
import java.util.Date;
import java.util.List;

@ -1,4 +1,4 @@
package com.ruoyi.web.controller.system;
package com.ruoyi.web.controller.system.system;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@ -1,4 +1,4 @@
package com.ruoyi.web.controller.system;
package com.ruoyi.web.controller.system.system;
import java.util.List;
import org.apache.shiro.authz.annotation.RequiresPermissions;

@ -1,4 +1,4 @@
package com.ruoyi.web.controller.system;
package com.ruoyi.web.controller.system.system;
import java.util.List;
import org.apache.shiro.authz.annotation.RequiresPermissions;

@ -1,4 +1,4 @@
package com.ruoyi.web.controller.system;
package com.ruoyi.web.controller.system.system;
import java.util.List;
import org.apache.shiro.authz.annotation.RequiresPermissions;

@ -1,4 +1,4 @@
package com.ruoyi.web.controller.system;
package com.ruoyi.web.controller.system.system;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@ -1,4 +1,4 @@
package com.ruoyi.web.controller.system;
package com.ruoyi.web.controller.system.system;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

@ -1,4 +1,4 @@
package com.ruoyi.web.controller.system;
package com.ruoyi.web.controller.system.system;
import java.util.List;
import org.apache.shiro.authz.annotation.RequiresPermissions;

@ -1,4 +1,4 @@
package com.ruoyi.web.controller.system;
package com.ruoyi.web.controller.system.system;
import java.util.List;
import java.util.stream.Collectors;

@ -1,4 +1,4 @@
package com.ruoyi.web.controller.system;
package com.ruoyi.web.controller.system.system;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
@ -22,6 +22,9 @@ import org.springframework.web.bind.annotation.*;
import java.util.List;
import java.util.stream.Collectors;
/**
*
*/
@Controller
@RequestMapping("/system/userexamine")
public class SysUserExamineController extends BaseController {

@ -1,4 +1,4 @@
package com.ruoyi.web.controller.system;
package com.ruoyi.web.controller.system.system;
import java.util.List;
import org.apache.shiro.authz.annotation.RequiresPermissions;

@ -1,4 +1,4 @@
package com.ruoyi.web.controller.system;
package com.ruoyi.web.controller.system.system;
import java.util.List;

@ -1,4 +1,4 @@
package com.ruoyi.web.controller.system;
package com.ruoyi.web.controller.system.system;
import java.util.List;

@ -0,0 +1,111 @@
<!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-filereceive-add">
<div class="form-group">
<label class="col-sm-3 control-label">文件编号:</label>
<div class="col-sm-8">
<input name="fileId" 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="receiveDepartid" 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="receiveState" class="form-control m-b" th:with="type=${@dict.getType('sys_file_receive')}">
<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="receiveUserid" 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="receiveDate" 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="extractState" class="form-control m-b" th:with="type=${@dict.getType('sys_file_extract')}">
<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="extractDepartid" 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="extractUserid" 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="extractDate" 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="destoryState" class="form-control m-b" th:with="type=${@dict.getType('sys_destory_state')}">
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</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/filereceive"
$("#form-filereceive-add").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/add", $('#form-filereceive-add').serialize());
}
}
$("input[name='receiveDate']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
$("input[name='extractDate']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
</script>
</body>
</html>

@ -0,0 +1,112 @@
<!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-filereceive-edit" th:object="${tdFileReceive}">
<input name="receiveId" th:field="*{receiveId}" type="hidden">
<div class="form-group">
<label class="col-sm-3 control-label">文件编号:</label>
<div class="col-sm-8">
<input name="fileId" th:field="*{fileId}" 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="receiveDepartid" th:field="*{receiveDepartid}" 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="receiveState" class="form-control m-b" th:with="type=${@dict.getType('sys_file_receive')}">
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{receiveState}"></option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">接收人员:</label>
<div class="col-sm-8">
<input name="receiveUserid" th:field="*{receiveUserid}" 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="receiveDate" th:value="${#dates.format(tdFileReceive.receiveDate, '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="extractState" class="form-control m-b" th:with="type=${@dict.getType('sys_file_extract')}">
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{extractState}"></option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">提取单位:</label>
<div class="col-sm-8">
<input name="extractDepartid" th:field="*{extractDepartid}" 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="extractUserid" th:field="*{extractUserid}" 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="extractDate" th:value="${#dates.format(tdFileReceive.extractDate, '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="destoryState" class="form-control m-b" th:with="type=${@dict.getType('sys_destory_state')}">
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{destoryState}"></option>
</select>
</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/filereceive";
$("#form-filereceive-edit").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/edit", $('#form-filereceive-edit').serialize());
}
}
$("input[name='receiveDate']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
$("input[name='extractDate']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
</script>
</body>
</html>

@ -0,0 +1,179 @@
<!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="fileId"/>
</li>
<li>
<label>接收单位:</label>
<input type="text" name="receiveDepartid"/>
</li>
<li>
<label>接收状态:</label>
<select name="receiveState" th:with="type=${@dict.getType('sys_file_receive')}">
<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="receiveUserid"/>
</li>
<li>
<label>接收日期:</label>
<input type="text" class="time-input" placeholder="请选择接收日期" name="receiveDate"/>
</li>
<li>
<label>提取状态:</label>
<select name="extractState" th:with="type=${@dict.getType('sys_file_extract')}">
<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="extractDepartid"/>
</li>
<li>
<label>提取人员:</label>
<input type="text" name="extractUserid"/>
</li>
<li>
<label>提取日期:</label>
<input type="text" class="time-input" placeholder="请选择提取日期" name="extractDate"/>
</li>
<li>
<label>销毁状态:</label>
<select name="destoryState" th:with="type=${@dict.getType('sys_destory_state')}">
<option value="">所有</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</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:filereceive:add">
<i class="fa fa-plus"></i> 添加
</a>
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:filereceive:edit">
<i class="fa fa-edit"></i> 修改
</a>
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:filereceive:remove">
<i class="fa fa-remove"></i> 删除
</a>
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:filereceive: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:filereceive:edit')}]];
var removeFlag = [[${@permission.hasPermi('system:filereceive:remove')}]];
var receiveStateDatas = [[${@dict.getType('sys_file_receive')}]];
var extractStateDatas = [[${@dict.getType('sys_file_extract')}]];
var destoryStateDatas = [[${@dict.getType('sys_destory_state')}]];
var prefix = ctx + "system/filereceive";
$(function() {
var options = {
url: prefix + "/list",
createUrl: prefix + "/add",
updateUrl: prefix + "/edit/{id}",
removeUrl: prefix + "/remove",
exportUrl: prefix + "/export",
modalName: "涉密文件接收",
columns: [{
checkbox: true
},
{
field: 'receiveId',
title: '接收编号',
visible: false
},
{
field: 'fileId',
title: '文件编号'
},
{
field: 'receiveDepartid',
title: '接收单位'
},
{
field: 'receiveState',
title: '接收状态',
formatter: function(value, row, index) {
return $.table.selectDictLabel(receiveStateDatas, value);
}
},
{
field: 'receiveUserid',
title: '接收人员'
},
{
field: 'receiveDate',
title: '接收日期'
},
{
field: 'extractState',
title: '提取状态',
formatter: function(value, row, index) {
return $.table.selectDictLabel(extractStateDatas, value);
}
},
{
field: 'extractDepartid',
title: '提取单位'
},
{
field: 'extractUserid',
title: '提取人员'
},
{
field: 'extractDate',
title: '提取日期'
},
{
field: 'destoryState',
title: '销毁状态',
formatter: function(value, row, index) {
return $.table.selectDictLabel(destoryStateDatas, value);
}
},
{
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.receiveId + '\')"><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.receiveId + '\')"><i class="fa fa-remove"></i>删除</a>');
return actions.join('');
}
}]
};
$.table.init(options);
});
</script>
</body>
</html>

@ -6,19 +6,16 @@
<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>
<input name="netId" class="form-control" th:value="${netId}" type="hidden">
<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">
<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">
<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">
@ -36,26 +33,13 @@
<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">
@ -68,6 +52,12 @@
<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">
<input name="depart" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">密级:</label>
<div class="col-sm-8">
@ -91,12 +81,12 @@
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">单位名称</label>
<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>
<input name="remark" class="form-control" type="text">
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />

@ -7,13 +7,27 @@
<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="id" disabled th:field="*{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" th:field="*{netId}" class="form-control" type="text">
<input name="netId" disabled th:field="*{netId}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<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="netBrand" th:field="*{netBrand}" class="form-control" type="text">
@ -31,36 +45,28 @@
<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="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="remark" th:field="*{remark}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">登记人员:</label>
<label class="col-sm-3 control-label">责任人:</label>
<div class="col-sm-8">
<input name="netname" th:field="*{netname}" class="form-control" type="text">
<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="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">
<input name="depart" th:field="*{depart}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
@ -86,10 +92,10 @@
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">单位名称</label>
<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">
<input name="remark" th:field="*{remark}" class="form-control" type="text">
</div>
</div>
</form>

@ -69,7 +69,7 @@
var isCurcialDatas = [[${@dict.getType('sys_yes_no')}]];
var prefix = ctx + "system/network/netinfo";
var obj = {netId:''};
obj.netId = [[${netId}]] + ''
obj.netId = [[${netId}]]
// 添加信息
function hanldAdd() {
table.set();
@ -80,7 +80,7 @@
var options = {
url: prefix + "/list",
queryParams:obj,
createUrl: prefix + "/add/{netId}",
createUrl: prefix + "/add/{id}",
updateUrl: prefix + "/edit/{id}",
removeUrl: prefix + "/remove",
exportUrl: prefix + "/export",
@ -89,9 +89,13 @@
checkbox: true
},
{
field: 'netId',
title: '网络编号'
field: 'id',
title: '设备编号'
},
// {
// field: 'netId',
// title: '网络编号'
// },
{
field: 'netBrand',
title: '网络设备品牌'
@ -115,10 +119,6 @@
field: 'netSn',
title: '序列号'
},
{
field: 'netManager',
title: '责任人'
},
{
field: 'depart',
title: '单位名称'
@ -127,13 +127,6 @@
field: 'netsmname',
title: '涉密网络名称'
},
{
field: 'isCurcial',
title: '是否属于要害部门部位',
formatter: function(value, row, index) {
return $.table.selectDictLabel(isCurcialDatas, value);
}
},
{
field: 'netMiji',
title: '密级',

@ -75,8 +75,8 @@
},
{
field: 'netId',
title: '网络设备id',
visible: false
title: '网络编号',
// visible: false
},
{
field: 'framework',

@ -93,10 +93,10 @@
field: 'id',
title: '登记编号'
},
{
field: 'useId',
title: '资产编号'
},
// {
// field: 'useId',
// title: '资产编号'
// },
{
field: 'propertyBrand',
title: '设备品牌'

@ -19,7 +19,7 @@
<input type="text" name="useId"/>
</li>
<li>
<label>所在市:</label>
<label>所在市</label>
<input type="text" name="part"/>
</li>
<li>
@ -101,8 +101,8 @@
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.useId + '\')"><i class="fa fa-edit"></i>编辑</a> ');
actions.push('<a class="btn btn-info btn-xs ' + listFlag + '" href="javascript:void(0)" onclick="detail(\'' + row.useId + '\')"><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.useId + '\')"><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.useId + '\')"><i class="fa fa-remove"></i>删除</a>');
return actions.join('');
}

@ -0,0 +1,181 @@
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_file_receive
*
* @author ruoyi
* @date 2024-05-14
*/
public class TdFileReceive extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 接收编号 */
private Long receiveId;
/** 文件编号 */
@Excel(name = "文件编号")
private String fileId;
/** 接收单位 */
@Excel(name = "接收单位")
private String receiveDepartid;
/** 接收状态1已接收2未接收 */
@Excel(name = "接收状态", readConverterExp = "1=已接收2未接收")
private String receiveState;
/** 接收人员 */
@Excel(name = "接收人员")
private String receiveUserid;
/** 接收日期 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "接收日期", width = 30, dateFormat = "yyyy-MM-dd")
private Date receiveDate;
/** 提取状态1已提取2未提取 */
@Excel(name = "提取状态", readConverterExp = "1=已提取2未提取")
private String extractState;
/** 提取单位 */
@Excel(name = "提取单位")
private String extractDepartid;
/** 提取人员 */
@Excel(name = "提取人员")
private String extractUserid;
/** 提取日期 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "提取日期", width = 30, dateFormat = "yyyy-MM-dd")
private Date extractDate;
/** 销毁状态 */
@Excel(name = "销毁状态")
private String destoryState;
public void setReceiveId(Long receiveId)
{
this.receiveId = receiveId;
}
public Long getReceiveId()
{
return receiveId;
}
public void setFileId(String fileId)
{
this.fileId = fileId;
}
public String getFileId()
{
return fileId;
}
public void setReceiveDepartid(String receiveDepartid)
{
this.receiveDepartid = receiveDepartid;
}
public String getReceiveDepartid()
{
return receiveDepartid;
}
public void setReceiveState(String receiveState)
{
this.receiveState = receiveState;
}
public String getReceiveState()
{
return receiveState;
}
public void setReceiveUserid(String receiveUserid)
{
this.receiveUserid = receiveUserid;
}
public String getReceiveUserid()
{
return receiveUserid;
}
public void setReceiveDate(Date receiveDate)
{
this.receiveDate = receiveDate;
}
public Date getReceiveDate()
{
return receiveDate;
}
public void setExtractState(String extractState)
{
this.extractState = extractState;
}
public String getExtractState()
{
return extractState;
}
public void setExtractDepartid(String extractDepartid)
{
this.extractDepartid = extractDepartid;
}
public String getExtractDepartid()
{
return extractDepartid;
}
public void setExtractUserid(String extractUserid)
{
this.extractUserid = extractUserid;
}
public String getExtractUserid()
{
return extractUserid;
}
public void setExtractDate(Date extractDate)
{
this.extractDate = extractDate;
}
public Date getExtractDate()
{
return extractDate;
}
public void setDestoryState(String destoryState)
{
this.destoryState = destoryState;
}
public String getDestoryState()
{
return destoryState;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("receiveId", getReceiveId())
.append("fileId", getFileId())
.append("receiveDepartid", getReceiveDepartid())
.append("receiveState", getReceiveState())
.append("receiveUserid", getReceiveUserid())
.append("receiveDate", getReceiveDate())
.append("extractState", getExtractState())
.append("extractDepartid", getExtractDepartid())
.append("extractUserid", getExtractUserid())
.append("extractDate", getExtractDate())
.append("destoryState", getDestoryState())
.toString();
}
}

@ -0,0 +1,61 @@
package com.ruoyi.system.mapper;
import java.util.List;
import com.ruoyi.system.domain.TdFileReceive;
/**
* Mapper
*
* @author ruoyi
* @date 2024-05-14
*/
public interface TdFileReceiveMapper
{
/**
*
*
* @param receiveId
* @return
*/
public TdFileReceive selectTdFileReceiveByReceiveId(Long receiveId);
/**
*
*
* @param tdFileReceive
* @return
*/
public List<TdFileReceive> selectTdFileReceiveList(TdFileReceive tdFileReceive);
/**
*
*
* @param tdFileReceive
* @return
*/
public int insertTdFileReceive(TdFileReceive tdFileReceive);
/**
*
*
* @param tdFileReceive
* @return
*/
public int updateTdFileReceive(TdFileReceive tdFileReceive);
/**
*
*
* @param receiveId
* @return
*/
public int deleteTdFileReceiveByReceiveId(Long receiveId);
/**
*
*
* @param receiveIds
* @return
*/
public int deleteTdFileReceiveByReceiveIds(String[] receiveIds);
}

@ -0,0 +1,61 @@
package com.ruoyi.system.service;
import java.util.List;
import com.ruoyi.system.domain.TdFileReceive;
/**
* Service
*
* @author ruoyi
* @date 2024-05-14
*/
public interface ITdFileReceiveService
{
/**
*
*
* @param receiveId
* @return
*/
public TdFileReceive selectTdFileReceiveByReceiveId(Long receiveId);
/**
*
*
* @param tdFileReceive
* @return
*/
public List<TdFileReceive> selectTdFileReceiveList(TdFileReceive tdFileReceive);
/**
*
*
* @param tdFileReceive
* @return
*/
public int insertTdFileReceive(TdFileReceive tdFileReceive);
/**
*
*
* @param tdFileReceive
* @return
*/
public int updateTdFileReceive(TdFileReceive tdFileReceive);
/**
*
*
* @param receiveIds
* @return
*/
public int deleteTdFileReceiveByReceiveIds(String receiveIds);
/**
*
*
* @param receiveId
* @return
*/
public int deleteTdFileReceiveByReceiveId(Long receiveId);
}

@ -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.TdFileReceiveMapper;
import com.ruoyi.system.domain.TdFileReceive;
import com.ruoyi.system.service.ITdFileReceiveService;
import com.ruoyi.common.core.text.Convert;
/**
* Service
*
* @author ruoyi
* @date 2024-05-14
*/
@Service
public class TdFileReceiveServiceImpl implements ITdFileReceiveService
{
@Autowired
private TdFileReceiveMapper tdFileReceiveMapper;
/**
*
*
* @param receiveId
* @return
*/
@Override
public TdFileReceive selectTdFileReceiveByReceiveId(Long receiveId)
{
return tdFileReceiveMapper.selectTdFileReceiveByReceiveId(receiveId);
}
/**
*
*
* @param tdFileReceive
* @return
*/
@Override
public List<TdFileReceive> selectTdFileReceiveList(TdFileReceive tdFileReceive)
{
return tdFileReceiveMapper.selectTdFileReceiveList(tdFileReceive);
}
/**
*
*
* @param tdFileReceive
* @return
*/
@Override
public int insertTdFileReceive(TdFileReceive tdFileReceive)
{
return tdFileReceiveMapper.insertTdFileReceive(tdFileReceive);
}
/**
*
*
* @param tdFileReceive
* @return
*/
@Override
public int updateTdFileReceive(TdFileReceive tdFileReceive)
{
return tdFileReceiveMapper.updateTdFileReceive(tdFileReceive);
}
/**
*
*
* @param receiveIds
* @return
*/
@Override
public int deleteTdFileReceiveByReceiveIds(String receiveIds)
{
return tdFileReceiveMapper.deleteTdFileReceiveByReceiveIds(Convert.toStrArray(receiveIds));
}
/**
*
*
* @param receiveId
* @return
*/
@Override
public int deleteTdFileReceiveByReceiveId(Long receiveId)
{
return tdFileReceiveMapper.deleteTdFileReceiveByReceiveId(receiveId);
}
}

@ -0,0 +1,102 @@
<?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.TdFileReceiveMapper">
<resultMap type="TdFileReceive" id="TdFileReceiveResult">
<result property="receiveId" column="receive_id" />
<result property="fileId" column="file_id" />
<result property="receiveDepartid" column="receive_departid" />
<result property="receiveState" column="receive_state" />
<result property="receiveUserid" column="receive_userid" />
<result property="receiveDate" column="receive_date" />
<result property="extractState" column="extract_state" />
<result property="extractDepartid" column="extract_departid" />
<result property="extractUserid" column="extract_userid" />
<result property="extractDate" column="extract_date" />
<result property="destoryState" column="destory_state" />
</resultMap>
<sql id="selectTdFileReceiveVo">
select receive_id, file_id, receive_departid, receive_state, receive_userid, receive_date, extract_state, extract_departid, extract_userid, extract_date, destory_state from td_file_receive
</sql>
<select id="selectTdFileReceiveList" parameterType="TdFileReceive" resultMap="TdFileReceiveResult">
<include refid="selectTdFileReceiveVo"/>
<where>
<if test="fileId != null and fileId != ''"> and file_id = #{fileId}</if>
<if test="receiveDepartid != null and receiveDepartid != ''"> and receive_departid = #{receiveDepartid}</if>
<if test="receiveState != null and receiveState != ''"> and receive_state = #{receiveState}</if>
<if test="receiveUserid != null and receiveUserid != ''"> and receive_userid = #{receiveUserid}</if>
<if test="receiveDate != null "> and receive_date = #{receiveDate}</if>
<if test="extractState != null and extractState != ''"> and extract_state = #{extractState}</if>
<if test="extractDepartid != null and extractDepartid != ''"> and extract_departid = #{extractDepartid}</if>
<if test="extractUserid != null and extractUserid != ''"> and extract_userid = #{extractUserid}</if>
<if test="extractDate != null "> and extract_date = #{extractDate}</if>
<if test="destoryState != null and destoryState != ''"> and destory_state = #{destoryState}</if>
</where>
</select>
<select id="selectTdFileReceiveByReceiveId" parameterType="Long" resultMap="TdFileReceiveResult">
<include refid="selectTdFileReceiveVo"/>
where receive_id = #{receiveId}
</select>
<insert id="insertTdFileReceive" parameterType="TdFileReceive" useGeneratedKeys="true" keyProperty="receiveId">
insert into td_file_receive
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="fileId != null">file_id,</if>
<if test="receiveDepartid != null">receive_departid,</if>
<if test="receiveState != null">receive_state,</if>
<if test="receiveUserid != null">receive_userid,</if>
<if test="receiveDate != null">receive_date,</if>
<if test="extractState != null">extract_state,</if>
<if test="extractDepartid != null">extract_departid,</if>
<if test="extractUserid != null">extract_userid,</if>
<if test="extractDate != null">extract_date,</if>
<if test="destoryState != null">destory_state,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="fileId != null">#{fileId},</if>
<if test="receiveDepartid != null">#{receiveDepartid},</if>
<if test="receiveState != null">#{receiveState},</if>
<if test="receiveUserid != null">#{receiveUserid},</if>
<if test="receiveDate != null">#{receiveDate},</if>
<if test="extractState != null">#{extractState},</if>
<if test="extractDepartid != null">#{extractDepartid},</if>
<if test="extractUserid != null">#{extractUserid},</if>
<if test="extractDate != null">#{extractDate},</if>
<if test="destoryState != null">#{destoryState},</if>
</trim>
</insert>
<update id="updateTdFileReceive" parameterType="TdFileReceive">
update td_file_receive
<trim prefix="SET" suffixOverrides=",">
<if test="fileId != null">file_id = #{fileId},</if>
<if test="receiveDepartid != null">receive_departid = #{receiveDepartid},</if>
<if test="receiveState != null">receive_state = #{receiveState},</if>
<if test="receiveUserid != null">receive_userid = #{receiveUserid},</if>
<if test="receiveDate != null">receive_date = #{receiveDate},</if>
<if test="extractState != null">extract_state = #{extractState},</if>
<if test="extractDepartid != null">extract_departid = #{extractDepartid},</if>
<if test="extractUserid != null">extract_userid = #{extractUserid},</if>
<if test="extractDate != null">extract_date = #{extractDate},</if>
<if test="destoryState != null">destory_state = #{destoryState},</if>
</trim>
where receive_id = #{receiveId}
</update>
<delete id="deleteTdFileReceiveByReceiveId" parameterType="Long">
delete from td_file_receive where receive_id = #{receiveId}
</delete>
<delete id="deleteTdFileReceiveByReceiveIds" parameterType="String">
delete from td_file_receive where receive_id in
<foreach item="receiveId" collection="array" open="(" separator="," close=")">
#{receiveId}
</foreach>
</delete>
</mapper>
Loading…
Cancel
Save