parent
6ef3bbec64
commit
4b3c59ddba
@ -0,0 +1,69 @@
|
|||||||
|
package com.ruoyi.web.controller.manager;
|
||||||
|
|
||||||
|
import cn.hutool.core.collection.CollUtil;
|
||||||
|
import cn.hutool.core.convert.Convert;
|
||||||
|
import cn.hutool.core.text.CharSequenceUtil;
|
||||||
|
import com.ruoyi.common.utils.ShiroUtils;
|
||||||
|
import com.ruoyi.system.domain.check.TdCheckReport;
|
||||||
|
import com.ruoyi.system.domain.check.TdCheckType;
|
||||||
|
import com.ruoyi.system.domain.check.dto.TdCheckReportDTO;
|
||||||
|
import com.ruoyi.system.domain.check.dto.TdCheckTypeDTO;
|
||||||
|
import com.ruoyi.system.domain.spost.TdClassifiedPost;
|
||||||
|
import com.ruoyi.system.domain.spost.dto.TdClassifiedPostDTO;
|
||||||
|
import com.ruoyi.system.service.spost.TdClassifiedPostService;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ClassName: ClassifiedPostmanager
|
||||||
|
* Package: com.ruoyi.web.controller.manager
|
||||||
|
* Description:
|
||||||
|
*
|
||||||
|
* @Author wangxy
|
||||||
|
* @Create 2025/5/13 11:49
|
||||||
|
* @Version 1.0
|
||||||
|
*/
|
||||||
|
@Component
|
||||||
|
public class ClassifiedPostManager {
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private TdClassifiedPostService classifiedPostService;
|
||||||
|
|
||||||
|
public List<TdClassifiedPost> selectTdCheckReportList(TdClassifiedPostDTO classifiedPostDTO) {
|
||||||
|
return classifiedPostService.selectTdClassifiedPostList(classifiedPostDTO);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Transactional(rollbackFor = Exception.class)
|
||||||
|
public boolean saveOrUpdate(TdClassifiedPostDTO classifiedPostDTO) {
|
||||||
|
TdClassifiedPost classifiedPost = Convert.convert(TdClassifiedPost.class, classifiedPostDTO);
|
||||||
|
if (CharSequenceUtil.isNotBlank(classifiedPost.getClassifiedId())) {
|
||||||
|
classifiedPost.setUpdateTime(new Date());
|
||||||
|
classifiedPost.setUpdateBy(ShiroUtils.getSysUser().getUserName());
|
||||||
|
} else {
|
||||||
|
classifiedPost.setCreateTime(new Date());
|
||||||
|
classifiedPost.setCreateBy(ShiroUtils.getSysUser().getUserName());
|
||||||
|
}
|
||||||
|
classifiedPost.setDeptId(ShiroUtils.getSysUser().getDeptId());
|
||||||
|
classifiedPost.setStatus("0");
|
||||||
|
return classifiedPostService.saveOrUpdate(classifiedPost);
|
||||||
|
}
|
||||||
|
|
||||||
|
public TdClassifiedPostDTO getTdClassifiedPost(String id) {
|
||||||
|
return Convert.convert(TdClassifiedPostDTO.class, classifiedPostService.getById(id));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Transactional(rollbackFor = Exception.class)
|
||||||
|
public boolean deletedTdClassifiedPostIds(String ids) {
|
||||||
|
List<String> list = Arrays.asList(Convert.toStrArray(ids));
|
||||||
|
return classifiedPostService.removeByIds(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,138 @@
|
|||||||
|
package com.ruoyi.web.controller.system.spost;
|
||||||
|
|
||||||
|
import com.ruoyi.common.annotation.Log;
|
||||||
|
import com.ruoyi.common.core.controller.BaseController;
|
||||||
|
import com.ruoyi.common.core.domain.AjaxResult;
|
||||||
|
import com.ruoyi.common.core.page.TableDataInfo;
|
||||||
|
import com.ruoyi.common.enums.BusinessType;
|
||||||
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||||
|
import com.ruoyi.system.domain.spost.TdClassifiedPost;
|
||||||
|
import com.ruoyi.system.domain.spost.dto.TdClassifiedPostDTO;
|
||||||
|
import com.ruoyi.web.controller.manager.ClassifiedPostManager;
|
||||||
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
import org.springframework.ui.ModelMap;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ClassName: ClassifiedPostController
|
||||||
|
* Package: com.ruoyi.web.controller.system.spost
|
||||||
|
* Description:
|
||||||
|
*
|
||||||
|
* @Author wangxy
|
||||||
|
* @Create 2025/5/13 14:17
|
||||||
|
* @Version 1.0
|
||||||
|
*/
|
||||||
|
@Controller
|
||||||
|
@RequestMapping("/system/classifiedPost")
|
||||||
|
public class ClassifiedPostController extends BaseController {
|
||||||
|
|
||||||
|
|
||||||
|
private String prefix = "system/newdev/spost";
|
||||||
|
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private ClassifiedPostManager classifiedPostManager;
|
||||||
|
|
||||||
|
@RequiresPermissions("system:spost:view")
|
||||||
|
@GetMapping()
|
||||||
|
public String classifiedPost() {
|
||||||
|
return prefix + "/classifiedPost";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 岗位情况列表
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("system:spost:list")
|
||||||
|
@PostMapping("/list")
|
||||||
|
@ResponseBody
|
||||||
|
public TableDataInfo list(TdClassifiedPostDTO classifiedPostDTO) {
|
||||||
|
startPage();
|
||||||
|
List<TdClassifiedPost> tdClassifiedPosts = classifiedPostManager.selectTdCheckReportList( classifiedPostDTO);
|
||||||
|
return getDataTable(tdClassifiedPosts);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出岗位管理列表
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("system:spost:export")
|
||||||
|
@Log(title = "检查报告", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult export(TdClassifiedPostDTO classifiedPostDTO) {
|
||||||
|
List<TdClassifiedPost> tdClassifiedPosts = classifiedPostManager.selectTdCheckReportList( classifiedPostDTO);
|
||||||
|
ExcelUtil<TdClassifiedPost> util = new ExcelUtil<>(TdClassifiedPost.class);
|
||||||
|
return util.exportExcel(tdClassifiedPosts, "岗位情况管理数据");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增岗位
|
||||||
|
*/
|
||||||
|
@GetMapping("/add")
|
||||||
|
public String add(ModelMap mmap) {
|
||||||
|
return prefix + "/add";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增岗位
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("system:spost:add")
|
||||||
|
@Log(title = "岗位情况", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping("/add")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult addSave(TdClassifiedPostDTO classifiedPostDTO) {
|
||||||
|
return toAjax(classifiedPostManager.saveOrUpdate(classifiedPostDTO));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改岗位情况告
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("system:spost:edit")
|
||||||
|
@GetMapping("/edit/{classifiedId}")
|
||||||
|
public String edit(@PathVariable("classifiedId") String classifiedId, ModelMap mmap) {
|
||||||
|
TdClassifiedPostDTO classifiedPost = classifiedPostManager.getTdClassifiedPost(classifiedId);
|
||||||
|
mmap.put("classifiedPost", classifiedPost);
|
||||||
|
return prefix + "/edit";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改检查报告
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("system:spost:edit")
|
||||||
|
@Log(title = "岗位情况", businessType = BusinessType.UPDATE)
|
||||||
|
@PostMapping("/edit")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult editSave(TdClassifiedPostDTO classifiedPostDTO) {
|
||||||
|
return toAjax(classifiedPostManager.saveOrUpdate(classifiedPostDTO));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 详情
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("system:spost:detail")
|
||||||
|
@GetMapping("/detail/{classifiedId}")
|
||||||
|
public String detail(@PathVariable("classifiedId") String classifiedId, ModelMap mmap) {
|
||||||
|
TdClassifiedPostDTO classifiedPost = classifiedPostManager.getTdClassifiedPost(classifiedId);
|
||||||
|
mmap.put("classifiedPost", classifiedPost);
|
||||||
|
return prefix + "/detail";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("system:spost:remove")
|
||||||
|
@Log(title = "岗位情况", businessType = BusinessType.DELETE)
|
||||||
|
@PostMapping("/remove")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult remove(String ids) {
|
||||||
|
return toAjax(classifiedPostManager.deletedTdClassifiedPostIds(ids));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,127 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
|
||||||
|
<head>
|
||||||
|
<th:block th:include="include :: header('新增岗位')" />
|
||||||
|
<th:block th:include="include :: select2-css" />
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="main-content">
|
||||||
|
<form id="form-spost-add" class="form-horizontal">
|
||||||
|
<h4 class="form-header h4">基本信息</h4>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-sm-6">
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-4 control-label is-required">部门:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="deptName" id="deptName" placeholder="请输入部门" class="form-control" type="text" maxlength="30" required>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-sm-6">
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-4 control-label is-required">三定规定:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="rule" id="rule" placeholder="请输入三定规定" class="form-control" type="text" maxlength="30" required>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-sm-6">
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-4 control-label is-required">涉密岗位名称:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input id="postName" name="postName" placeholder="请输入涉密岗位名称" class="form-control" type="text" maxlength="30" required>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-sm-6">
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-4 control-label is-required">涉密等级:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input id="classifiedLevel" name="classifiedLevel" placeholder="请输入涉密等级" class="form-control" type="text" maxlength="30" required>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-sm-6">
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-4 control-label is-required">编号:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="classifiedRef" placeholder="请输入编号" class="form-control" type="text" maxlength="30" required>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-sm-6">
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-4 control-label is-required">岗位确定依据:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="classifiedAccording" placeholder="请输入岗位确定依据" class="form-control" type="text" maxlength="30" required>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-sm-6">
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-4 control-label is-required">保密事项范围:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="scopeMatters" required class="form-control" placeholder="请输入保密事项范围" type="text">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-sm-6">
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-4 control-label is-required">秘密事项:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="secretMatters" required class="form-control" placeholder="请输入秘密事项" type="text">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-sm-6">
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-4 control-label is-required">岗位类别:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="category" required class="form-control" placeholder="请输入岗位类别" type="text">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<h4 class="form-header h4">其他信息</h4>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-sm-12">
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-xs-2 control-label">备注:</label>
|
||||||
|
<div class="col-xs-10">
|
||||||
|
<textarea name="remark" maxlength="500" class="form-control" rows="3"></textarea>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-sm-offset-5 col-sm-10">
|
||||||
|
<button type="button" class="btn btn-sm btn-primary" onclick="submitHandler()"><i class="fa fa-check"></i>保 存</button>
|
||||||
|
<button type="button" class="btn btn-sm btn-danger" onclick="closeItem()"><i class="fa fa-reply-all"></i>关 闭 </button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<th:block th:include="include :: footer" />
|
||||||
|
<th:block th:include="include :: select2-js" />
|
||||||
|
<script>
|
||||||
|
var prefix = ctx + "system/classifiedPost";
|
||||||
|
function submitHandler() {
|
||||||
|
if ($.validate.form() ) {
|
||||||
|
var data = $("#form-spost-add").serializeArray();
|
||||||
|
$.operate.saveTab(prefix + "/add", data);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
@ -0,0 +1,124 @@
|
|||||||
|
<!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" id="app">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-sm-12 search-collapse">
|
||||||
|
<form id="formId">
|
||||||
|
<div class="select-list">
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<label style="width: 80px">部门:</label>
|
||||||
|
<input type="text" name="deptName"/>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<label>涉密等级:</label>
|
||||||
|
<input type="text" name="classifiedLevel"/>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<label>涉密岗位名称:</label>
|
||||||
|
<input type="text" name="postName"/>
|
||||||
|
</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.addTab() shiro:hasPermission="system:spost:add">
|
||||||
|
<i class="fa fa-plus"></i> 添加
|
||||||
|
</a>
|
||||||
|
<a class="btn btn-primary single disabled" onclick="$.operate.editTab()" shiro:hasPermission="system:spost:edit">
|
||||||
|
<i class="fa fa-edit"></i> 修改
|
||||||
|
</a>
|
||||||
|
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:spost:remove">
|
||||||
|
<i class="fa fa-remove"></i> 删除
|
||||||
|
</a>
|
||||||
|
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:spost: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:spost:edit')}]];
|
||||||
|
var detailFlag = [[${@permission.hasPermi('system:spost:detail')}]]
|
||||||
|
var removeFlag = [[${@permission.hasPermi('system:spost:remove')}]];
|
||||||
|
var prefix = ctx + "system/classifiedPost";
|
||||||
|
$(function() {
|
||||||
|
var options = {
|
||||||
|
url: prefix + "/list",
|
||||||
|
createUrl: prefix + "/add",
|
||||||
|
updateUrl: prefix + "/edit/{id}",
|
||||||
|
detailUrl:prefix + "/detail/{id}",
|
||||||
|
removeUrl: prefix + "/remove",
|
||||||
|
exportUrl: prefix + "/export",
|
||||||
|
modalName: "岗位情况管理",
|
||||||
|
type: 0,
|
||||||
|
columns: [{
|
||||||
|
checkbox: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'classifiedId',
|
||||||
|
title: 'id',
|
||||||
|
visible: false
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
field: 'deptName',
|
||||||
|
title: '部门'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'rule',
|
||||||
|
title: '三定规定'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'postName',
|
||||||
|
title: '涉密岗位名称',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'classifiedLevel',
|
||||||
|
title: '涉密等级',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'classifiedRef',
|
||||||
|
title: '编号',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'classifiedAccording',
|
||||||
|
title: '岗位确定依据',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'createTime',
|
||||||
|
title: '创建时间',
|
||||||
|
sortable: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '操作',
|
||||||
|
align: 'center',
|
||||||
|
formatter: function(value, row, index) {
|
||||||
|
var actions = [];
|
||||||
|
actions.push('<a class="btn btn-success btn-xs ' + detailFlag + '" href="javascript:void(0)" onclick="$.operate.detailTab(\'' + row.classifiedId + '\')"><i class="fa fa-edit"></i>详情</a> ');
|
||||||
|
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick=$.operate.editTab(\'' + row.classifiedId + '\')"><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.classifiedId + '\')"><i class="fa fa-remove"></i>删除</a>');
|
||||||
|
return actions.join('');
|
||||||
|
}
|
||||||
|
}]
|
||||||
|
};
|
||||||
|
$.table.init(options);
|
||||||
|
});
|
||||||
|
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
@ -0,0 +1,127 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
|
||||||
|
<head>
|
||||||
|
<th:block th:include="include :: header('修改岗位')" />
|
||||||
|
<th:block th:include="include :: select2-css" />
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="main-content">
|
||||||
|
<form class="form-horizontal" id="form-spost-edit" th:object="${classifiedPost}">
|
||||||
|
<input name="classifiedId" type="hidden" th:field="*{classifiedId}" />
|
||||||
|
<h4 class="form-header h4">基本信息</h4>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-sm-6">
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-4 control-label is-required">部门:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="deptName" id="deptName" placeholder="请输入部门" class="form-control" type="text" maxlength="30" th:field="*{deptName}" required>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-sm-6">
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-4 control-label is-required">三定规定:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="rule" id="rule" placeholder="请输入三定规定" class="form-control" type="text" maxlength="30" th:field="*{rule}" required>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-sm-6">
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-4 control-label is-required">涉密岗位名称:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input id="postName" name="postName" placeholder="请输入涉密岗位名称" class="form-control" type="text" maxlength="30" th:field="*{postName}" required>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-sm-6">
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-4 control-label is-required">涉密等级:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input id="classifiedLevel" name="classifiedLevel" placeholder="请输入涉密等级" class="form-control" type="text" maxlength="30" th:field="*{classifiedLevel}" required>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-sm-6">
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-4 control-label is-required">编号:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="classifiedRef" placeholder="请输入编号" class="form-control" type="text" maxlength="30" th:field="*{classifiedRef}" required>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-sm-6">
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-4 control-label is-required">岗位确定依据:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="classifiedAccording" placeholder="请输入岗位确定依据" class="form-control" type="text" maxlength="30" th:field="*{classifiedAccording}" required>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-sm-6">
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-4 control-label is-required">保密事项范围:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="scopeMatters" placeholder="请输入编号" class="form-control" type="text" maxlength="30" th:field="*{scopeMatters}" required>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-sm-6">
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-4 control-label is-required">秘密事项:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="secretMatters" placeholder="请输入岗位确定依据" class="form-control" type="text" maxlength="30" th:field="*{secretMatters}" required>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-sm-6">
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-4 control-label is-required">岗位类别:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="category" placeholder="请输入编号" class="form-control" type="text" maxlength="30" th:field="*{category}" required>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<h4 class="form-header h4">其他信息</h4>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-sm-12">
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-xs-2 control-label">备注:</label>
|
||||||
|
<div class="col-xs-10">
|
||||||
|
<textarea name="remark" maxlength="500" class="form-control" rows="3">[[*{remark}]]</textarea>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-sm-offset-5 col-sm-10">
|
||||||
|
<button type="button" class="btn btn-sm btn-primary" onclick="submitHandler()"><i class="fa fa-check"></i>保 存</button>
|
||||||
|
<button type="button" class="btn btn-sm btn-danger" onclick="closeItem()"><i class="fa fa-reply-all"></i>关 闭 </button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<th:block th:include="include :: footer" />
|
||||||
|
<th:block th:include="include :: select2-js" />
|
||||||
|
<script type="text/javascript">
|
||||||
|
var prefix = ctx + "system/classifiedPost";
|
||||||
|
function submitHandler() {
|
||||||
|
if ($.validate.form()) {
|
||||||
|
var data = $("#form-spost-edit").serializeArray();
|
||||||
|
$.operate.saveTab(prefix + "/edit", data);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
</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,24 @@
|
|||||||
|
package com.ruoyi.system.mapper.spost;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.ruoyi.system.domain.spost.TdClassifiedPost;
|
||||||
|
import com.ruoyi.system.domain.spost.dto.TdClassifiedPostDTO;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Administrator
|
||||||
|
* @description 针对表【td_classified_post(sm人员申请流程表)】的数据库操作Mapper
|
||||||
|
* @createDate 2025-05-13 11:26:22
|
||||||
|
* @Entity generator.domain.TdClassifiedPost
|
||||||
|
*/
|
||||||
|
public interface TdClassifiedPostMapper extends BaseMapper<TdClassifiedPost> {
|
||||||
|
|
||||||
|
|
||||||
|
public List<TdClassifiedPost> selectTdClassifiedPostList(TdClassifiedPostDTO classifiedPostDTO);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,21 @@
|
|||||||
|
package com.ruoyi.system.service.spost;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.ruoyi.system.domain.check.TdCheckReport;
|
||||||
|
import com.ruoyi.system.domain.check.dto.CheckReportDTO;
|
||||||
|
import com.ruoyi.system.domain.spost.TdClassifiedPost;
|
||||||
|
import com.ruoyi.system.domain.spost.dto.TdClassifiedPostDTO;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Administrator
|
||||||
|
* @description 针对表【td_classified_post(sm人员申请流程表)】的数据库操作Service
|
||||||
|
* @createDate 2025-05-13 11:26:22
|
||||||
|
*/
|
||||||
|
public interface TdClassifiedPostService extends IService<TdClassifiedPost> {
|
||||||
|
|
||||||
|
public List<TdClassifiedPost> selectTdClassifiedPostList(TdClassifiedPostDTO classifiedPostDTO);
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,36 @@
|
|||||||
|
package com.ruoyi.system.service.spost.impl;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.ruoyi.system.domain.spost.TdClassifiedPost;
|
||||||
|
import com.ruoyi.system.domain.spost.dto.TdClassifiedPostDTO;
|
||||||
|
import com.ruoyi.system.mapper.check.TdCheckReportMapper;
|
||||||
|
import com.ruoyi.system.mapper.spost.TdClassifiedPostMapper;
|
||||||
|
import com.ruoyi.system.service.spost.TdClassifiedPostService;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
import java.util.Collections;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Administrator
|
||||||
|
* @description 针对表【td_classified_post(sm人员申请流程表)】的数据库操作Service实现
|
||||||
|
* @createDate 2025-05-13 11:26:22
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class TdClassifiedPostServiceImpl extends ServiceImpl<TdClassifiedPostMapper, TdClassifiedPost>
|
||||||
|
implements TdClassifiedPostService {
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private TdClassifiedPostMapper classifiedPostMapper;
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<TdClassifiedPost> selectTdClassifiedPostList(TdClassifiedPostDTO classifiedPostDTO) {
|
||||||
|
return classifiedPostMapper.selectTdClassifiedPostList(classifiedPostDTO);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,60 @@
|
|||||||
|
<?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.spost.TdClassifiedPostMapper">
|
||||||
|
|
||||||
|
<resultMap id="BaseResultMap" type="com.ruoyi.system.domain.spost.TdClassifiedPost">
|
||||||
|
<id property="classifiedId" column="classified_id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="deptName" column="dept_name" jdbcType="VARCHAR"/>
|
||||||
|
<result property="rule" column="rule" jdbcType="VARCHAR"/>
|
||||||
|
<result property="postName" column="post_name" jdbcType="VARCHAR"/>
|
||||||
|
<result property="classifiedLevel" column="classified_level" jdbcType="VARCHAR"/>
|
||||||
|
<result property="classifiedRef" column="classified_ref" jdbcType="VARCHAR"/>
|
||||||
|
<result property="classifiedAccording" column="classified_according" jdbcType="VARCHAR"/>
|
||||||
|
<result property="scopeMatters" column="scope_matters" jdbcType="VARCHAR"/>
|
||||||
|
<result property="createBy" column="create_by" jdbcType="VARCHAR"/>
|
||||||
|
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
||||||
|
<result property="updateBy" column="update_by" jdbcType="VARCHAR"/>
|
||||||
|
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
||||||
|
<result property="remark" column="remark" jdbcType="VARCHAR"/>
|
||||||
|
<result property="deptId" column="dept_id" jdbcType="BIGINT"/>
|
||||||
|
<result property="secretMatters" column="secret_matters" jdbcType="VARCHAR"/>
|
||||||
|
<result property="category" column="category" jdbcType="VARCHAR"/>
|
||||||
|
<result property="status" column="status" jdbcType="CHAR"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="Base_Column_List">
|
||||||
|
classified_id,dept_name,rule,
|
||||||
|
post_name,classified_level,classified_ref,
|
||||||
|
classified_according,scope_matters,
|
||||||
|
create_by,create_time,update_by,
|
||||||
|
update_time,remark,dept_id,
|
||||||
|
secret_matters,category,status
|
||||||
|
</sql>
|
||||||
|
<select id="selectTdClassifiedPostList" resultType="com.ruoyi.system.domain.spost.TdClassifiedPost">
|
||||||
|
select <include refid="Base_Column_List"/> from td_classified_post
|
||||||
|
<trim prefix="where" prefixOverrides="and|or">
|
||||||
|
<if test="deptName!=null and deptName!=''">
|
||||||
|
AND dept_name = #{deptName}
|
||||||
|
</if>
|
||||||
|
<if test="rule!=null and rule!=''">
|
||||||
|
AND rule = #{rule}
|
||||||
|
</if>
|
||||||
|
<if test="postName!=null and postName!=''">
|
||||||
|
AND post_name = #{postName}
|
||||||
|
</if>
|
||||||
|
<if test="classifiedLevel!=null and classifiedLevel!=''">
|
||||||
|
AND classified_level = #{classifiedLevel}
|
||||||
|
</if>
|
||||||
|
<if test="classifiedRef!=null and classifiedRef!=''">
|
||||||
|
AND classified_ref = #{classifiedRef}
|
||||||
|
</if>
|
||||||
|
<if test="classifiedAccording!=null and classifiedAccording!=''">
|
||||||
|
AND classified_according = #{classifiedAccording}
|
||||||
|
</if>
|
||||||
|
AND status = '0'
|
||||||
|
</trim>
|
||||||
|
ORDER BY create_time DESC
|
||||||
|
</select>
|
||||||
|
</mapper>
|
Loading…
Reference in new issue