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;
|
@ -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.List;
|
||||
|
@ -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;
|
||||
|
@ -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 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> 搜索</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: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>
|
@ -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…
Reference in new issue