Merge remote-tracking branch 'origin/new-exam' into new-exam

pg_adapter
20918 9 months ago
commit f43eea565d

@ -1,6 +1,8 @@
package com.ruoyi.web.controller.system.check; package com.ruoyi.web.controller.system.check;
import java.util.List; import java.util.List;
import com.ruoyi.web.controller.manager.SysAreaManager;
import org.apache.shiro.authz.annotation.RequiresPermissions; import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
@ -19,6 +21,8 @@ import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.core.page.TableDataInfo;
import javax.annotation.Resource;
/** /**
* Controller * Controller
* *
@ -34,6 +38,9 @@ public class TdCheckController extends BaseController
@Autowired @Autowired
private ITdCheckService tdCheckService; private ITdCheckService tdCheckService;
@Resource
private SysAreaManager sysAreaManager;
@RequiresPermissions("system:check:view") @RequiresPermissions("system:check:view")
@GetMapping() @GetMapping()
public String check() public String check()
@ -64,6 +71,10 @@ public class TdCheckController extends BaseController
public AjaxResult export(TdCheck tdCheck) public AjaxResult export(TdCheck tdCheck)
{ {
List<TdCheck> list = tdCheckService.selectTdCheckList(tdCheck); List<TdCheck> list = tdCheckService.selectTdCheckList(tdCheck);
list.forEach(tdCheck1 -> {
tdCheck1.setFramework(sysAreaManager.getAreaName(tdCheck1.getFramework()));
tdCheck1.setArea(sysAreaManager.getAreaName(tdCheck1.getArea()));
});
ExcelUtil<TdCheck> util = new ExcelUtil<TdCheck>(TdCheck.class); ExcelUtil<TdCheck> util = new ExcelUtil<TdCheck>(TdCheck.class);
return util.exportExcel(list, "检查报告管理数据"); return util.exportExcel(list, "检查报告管理数据");
} }

@ -8,12 +8,14 @@ import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.system.domain.TdCheck; import com.ruoyi.system.domain.TdCheck;
import com.ruoyi.system.service.ITdCheckService; import com.ruoyi.system.service.ITdCheckService;
import com.ruoyi.web.controller.manager.SysAreaManager;
import org.apache.shiro.authz.annotation.RequiresPermissions; import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap; import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List; import java.util.List;
import java.util.Objects; import java.util.Objects;
@ -24,6 +26,9 @@ public class TdCheckResultController extends BaseController {
@Autowired @Autowired
private ITdCheckService tdCheckService; private ITdCheckService tdCheckService;
@Resource
private SysAreaManager sysAreaManager;
@RequiresPermissions("system:checkresult:view") @RequiresPermissions("system:checkresult:view")
@GetMapping() @GetMapping()
public String checkresult() public String checkresult()
@ -54,6 +59,10 @@ public class TdCheckResultController extends BaseController {
public AjaxResult export(TdCheck tdCheck) public AjaxResult export(TdCheck tdCheck)
{ {
List<TdCheck> list = tdCheckService.selectTdCheckList(tdCheck); List<TdCheck> list = tdCheckService.selectTdCheckList(tdCheck);
list.forEach(tdCheck1 -> {
tdCheck1.setFramework(sysAreaManager.getAreaName(tdCheck1.getFramework()));
tdCheck1.setArea(sysAreaManager.getAreaName(tdCheck1.getArea()));
});
ExcelUtil<TdCheck> util = new ExcelUtil<TdCheck>(TdCheck.class); ExcelUtil<TdCheck> util = new ExcelUtil<TdCheck>(TdCheck.class);
return util.exportExcel(list, "检查结果管理数据"); return util.exportExcel(list, "检查结果管理数据");
} }

@ -1,6 +1,8 @@
package com.ruoyi.web.controller.system.check; package com.ruoyi.web.controller.system.check;
import java.util.List; import java.util.List;
import com.ruoyi.web.controller.manager.SysAreaManager;
import org.apache.shiro.authz.annotation.RequiresPermissions; import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
@ -19,6 +21,8 @@ import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.core.page.TableDataInfo;
import javax.annotation.Resource;
/** /**
* Controller * Controller
* *
@ -34,6 +38,9 @@ public class TdNotifyController extends BaseController
@Autowired @Autowired
private ITdNotifyService tdNotifyService; private ITdNotifyService tdNotifyService;
@Resource
private SysAreaManager sysAreaManager;
@RequiresPermissions("system:notify:view") @RequiresPermissions("system:notify:view")
@GetMapping() @GetMapping()
public String notice() public String notice()
@ -64,6 +71,10 @@ public class TdNotifyController extends BaseController
public AjaxResult export(TdNotify tdNotify) public AjaxResult export(TdNotify tdNotify)
{ {
List<TdNotify> list = tdNotifyService.selectTdNotifyList(tdNotify); List<TdNotify> list = tdNotifyService.selectTdNotifyList(tdNotify);
list.forEach(tdNotify1 -> {
tdNotify1.setFramework(sysAreaManager.getAreaName(tdNotify1.getFramework()));
tdNotify1.setArea(sysAreaManager.getAreaName(tdNotify1.getArea()));
});
ExcelUtil<TdNotify> util = new ExcelUtil<TdNotify>(TdNotify.class); ExcelUtil<TdNotify> util = new ExcelUtil<TdNotify>(TdNotify.class);
return util.exportExcel(list, "检查通知数据"); return util.exportExcel(list, "检查通知数据");
} }

@ -3,6 +3,7 @@ package com.ruoyi.web.controller.system.filemanager;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import cn.hutool.core.convert.Convert;
import com.ruoyi.common.core.domain.entity.SysDept; import com.ruoyi.common.core.domain.entity.SysDept;
import com.ruoyi.common.core.domain.entity.SysUser; import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.common.utils.sql.SqlUtil; import com.ruoyi.common.utils.sql.SqlUtil;
@ -13,6 +14,7 @@ import com.ruoyi.system.domain.TdFileReceive;
import com.ruoyi.system.service.ISysDeptService; import com.ruoyi.system.service.ISysDeptService;
import com.ruoyi.system.service.ISysPostService; import com.ruoyi.system.service.ISysPostService;
import com.ruoyi.system.service.ITdFileReceiveService; import com.ruoyi.system.service.ITdFileReceiveService;
import com.ruoyi.web.controller.manager.SysAreaManager;
import org.apache.shiro.authz.annotation.RequiresPermissions; import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
@ -31,6 +33,8 @@ import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.core.page.TableDataInfo;
import javax.annotation.Resource;
/** /**
* Controller * Controller
* *
@ -70,6 +74,9 @@ public class TdFileProvideController extends BaseController
return getDataTable(list); return getDataTable(list);
} }
@Resource
private SysAreaManager sysAreaManager;
/** /**
* *
*/ */
@ -80,6 +87,10 @@ public class TdFileProvideController extends BaseController
public AjaxResult export(TdFileProvide tdFileProvide) public AjaxResult export(TdFileProvide tdFileProvide)
{ {
List<TdFileProvide> list = tdFileProvideService.selectTdFileProvideList(tdFileProvide); List<TdFileProvide> list = tdFileProvideService.selectTdFileProvideList(tdFileProvide);
list.forEach(tdFileProvide1 -> {
tdFileProvide1.setFrameworkId(sysAreaManager.getAreaName(tdFileProvide1.getFrameworkId()));
tdFileProvide1.setAreaid(sysAreaManager.getAreaName(tdFileProvide1.getAreaid()));
});
ExcelUtil<TdFileProvide> util = new ExcelUtil<TdFileProvide>(TdFileProvide.class); ExcelUtil<TdFileProvide> util = new ExcelUtil<TdFileProvide>(TdFileProvide.class);
return util.exportExcel(list, "文件下发数据"); return util.exportExcel(list, "文件下发数据");
} }

@ -6,6 +6,7 @@ import java.util.List;
import com.ruoyi.common.utils.uuid.Seq; import com.ruoyi.common.utils.uuid.Seq;
import com.ruoyi.system.domain.TdPropertyInfo; import com.ruoyi.system.domain.TdPropertyInfo;
import com.ruoyi.system.service.ITdPropertyInfoService; import com.ruoyi.system.service.ITdPropertyInfoService;
import com.ruoyi.web.controller.manager.SysAreaManager;
import org.apache.shiro.authz.annotation.RequiresPermissions; import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
@ -24,6 +25,8 @@ import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.core.page.TableDataInfo;
import javax.annotation.Resource;
/** /**
* Controller * Controller
* *
@ -41,6 +44,9 @@ public class TdPropertyManagerController extends BaseController
@Autowired @Autowired
private ITdPropertyInfoService tdPropertyInfoService; private ITdPropertyInfoService tdPropertyInfoService;
@Resource
private SysAreaManager sysAreaManager;
@RequiresPermissions("system:property:view") @RequiresPermissions("system:property:view")
@GetMapping() @GetMapping()
public String property() public String property()
@ -71,6 +77,10 @@ public class TdPropertyManagerController extends BaseController
public AjaxResult export(TdPropertyManager tdPropertyManager) public AjaxResult export(TdPropertyManager tdPropertyManager)
{ {
List<TdPropertyManager> list = tdPropertyManagerService.selectTdPropertyManagerList(tdPropertyManager); List<TdPropertyManager> list = tdPropertyManagerService.selectTdPropertyManagerList(tdPropertyManager);
list.forEach(tdPropertyManager1 -> {
tdPropertyManager1.setPart(sysAreaManager.getAreaName(tdPropertyManager1.getPart()));
tdPropertyManager1.setAreaId(sysAreaManager.getAreaName(tdPropertyManager1.getAreaId()));
});
ExcelUtil<TdPropertyManager> util = new ExcelUtil<TdPropertyManager>(TdPropertyManager.class); ExcelUtil<TdPropertyManager> util = new ExcelUtil<TdPropertyManager>(TdPropertyManager.class);
return util.exportExcel(list, "资产登记数据"); return util.exportExcel(list, "资产登记数据");
} }

@ -3,6 +3,7 @@ package com.ruoyi.web.controller.system.property;
import java.util.List; import java.util.List;
import com.ruoyi.common.utils.uuid.Seq; import com.ruoyi.common.utils.uuid.Seq;
import com.ruoyi.web.controller.manager.SysAreaManager;
import org.apache.shiro.authz.annotation.RequiresPermissions; import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
@ -21,6 +22,8 @@ import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.core.page.TableDataInfo;
import javax.annotation.Resource;
/** /**
* Controller * Controller
* *
@ -36,6 +39,9 @@ public class TdPropertyNetController extends BaseController
@Autowired @Autowired
private ITdPropertyNetService tdPropertyNetService; private ITdPropertyNetService tdPropertyNetService;
@Resource
private SysAreaManager sysAreaManager;
@RequiresPermissions("system:network:view") @RequiresPermissions("system:network:view")
@GetMapping() @GetMapping()
public String network() public String network()
@ -66,6 +72,10 @@ public class TdPropertyNetController extends BaseController
public AjaxResult export(TdPropertyNet tdPropertyNet) public AjaxResult export(TdPropertyNet tdPropertyNet)
{ {
List<TdPropertyNet> list = tdPropertyNetService.selectTdPropertyNetList(tdPropertyNet); List<TdPropertyNet> list = tdPropertyNetService.selectTdPropertyNetList(tdPropertyNet);
list.forEach(tdPropertyNet1 -> {
tdPropertyNet1.setFramework(sysAreaManager.getAreaName(tdPropertyNet1.getFramework()));
tdPropertyNet1.setArea(sysAreaManager.getAreaName(tdPropertyNet1.getArea()));
});
ExcelUtil<TdPropertyNet> util = new ExcelUtil<TdPropertyNet>(TdPropertyNet.class); ExcelUtil<TdPropertyNet> util = new ExcelUtil<TdPropertyNet>(TdPropertyNet.class);
return util.exportExcel(list, "涉密网络设备数据"); return util.exportExcel(list, "涉密网络设备数据");
} }

@ -4,6 +4,7 @@ import java.util.Date;
import java.util.List; import java.util.List;
import com.ruoyi.common.core.domain.entity.SysUser; import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.web.controller.manager.SysAreaManager;
import org.apache.shiro.authz.annotation.RequiresPermissions; import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
@ -22,6 +23,8 @@ import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.core.page.TableDataInfo;
import javax.annotation.Resource;
/** /**
* Controller * Controller
* *
@ -37,6 +40,9 @@ public class TdTrainController extends BaseController
@Autowired @Autowired
private ITdTrainService tdTrainService; private ITdTrainService tdTrainService;
@Resource
private SysAreaManager sysAreaManager;
@RequiresPermissions("system:train:view") @RequiresPermissions("system:train:view")
@GetMapping() @GetMapping()
public String train() public String train()
@ -67,6 +73,10 @@ public class TdTrainController extends BaseController
public AjaxResult export(TdTrain tdTrain) public AjaxResult export(TdTrain tdTrain)
{ {
List<TdTrain> list = tdTrainService.selectTdTrainList(tdTrain); List<TdTrain> list = tdTrainService.selectTdTrainList(tdTrain);
list.forEach(tdTrain1 -> {
tdTrain1.setAREAID(sysAreaManager.getAreaName(tdTrain1.getAREAID()));
tdTrain1.setFRAMEWORK(sysAreaManager.getAreaName(tdTrain1.getFRAMEWORK()));
});
ExcelUtil<TdTrain> util = new ExcelUtil<TdTrain>(TdTrain.class); ExcelUtil<TdTrain> util = new ExcelUtil<TdTrain>(TdTrain.class);
return util.exportExcel(list, "涉密人员培训数据"); return util.exportExcel(list, "涉密人员培训数据");
} }

@ -13,10 +13,10 @@
</el-row> </el-row>
<el-row> <el-row>
<div style="color: red;height: 30px;line-height: 30px;"> <div style="color: red;height: 30px;line-height: 30px;">
请选择后缀为 “xls”或“xlsx”的文件 提示:请下载导入模板(试题导入模板.xlsx</br> 按照模板要求填写后导入
</div> </div>
</el-row> </el-row>
<el-row> <el-row style="margin-top: 20px">
<div> <div>
<span v-for="(file, index) in fileList" :key="index" style="margin-right: 10px"> <span v-for="(file, index) in fileList" :key="index" style="margin-right: 10px">
{{file.name}} {{file.name}}

@ -27,7 +27,7 @@
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
考试状态:{{ item.state | paperStateFilter }} 考试状态:{{ item.stateName}}
</el-col> </el-col>
</el-row> </el-row>
@ -38,13 +38,27 @@
<th:block th:include="include :: footer" /> <th:block th:include="include :: footer" />
<th:block th:include="include :: element-js" /> <th:block th:include="include :: element-js" />
<script th:inline="javascript"> <script th:inline="javascript">
var examStateDatas = [[${@dict.getType('sys_exam_state')}]];
var app = new Vue({ var app = new Vue({
el: '#app', el: '#app',
data: { data: {
paperList: [] paperList: [[${list}]],
examStateList:examStateDatas
}, },
mounted(){ mounted(){
this.paperList = [[${list}]]; this.paperList = this.updatedPaperList
},
computed: {
updatedPaperList() {
return this.paperList.map(paper => {
const match = this.examStateList.find(item => item.dictValue == paper.state);
if (match) {
return { ...paper, stateName: match.dictLabel };
} else {
return paper;
}
});
}
}, },
methods:{ methods:{
formatDate(dateString) { formatDate(dateString) {

@ -62,14 +62,15 @@ public class TdCheck extends BaseEntity
@Excel(name = "部门结果") @Excel(name = "部门结果")
private String departreault; private String departreault;
/** 地区 */
@Excel(name = "地区")
private String area;
/** 市州 */ /** 市州 */
@Excel(name = "市州") @Excel(name = "所属市州")
private String framework; private String framework;
/** 地区 */
@Excel(name = "所属区县")
private String area;
/** 检查状态 */ /** 检查状态 */
@Excel(name = "检查状态", readConverterExp = "0=通过,1=未通过,2=待检查") @Excel(name = "检查状态", readConverterExp = "0=通过,1=未通过,2=待检查")
private String checkState; private String checkState;

@ -76,9 +76,14 @@ public class TdFileProvide extends BaseEntity
private Date updateDate; private Date updateDate;
/** 所属地区 */ /** 所属地区 */
@Excel(name = "所属地区") @Excel(name = "所属市州")
private String frameworkId; private String frameworkId;
/** 所属地区 */
@Excel(name = "所属区县")
private String areaid;
/** 文件密级 */ /** 文件密级 */
@Excel(name = "文件密级",readConverterExp = "0=秘密,1=机密,2=绝密") @Excel(name = "文件密级",readConverterExp = "0=秘密,1=机密,2=绝密")
private String fileSecret; private String fileSecret;
@ -104,9 +109,7 @@ public class TdFileProvide extends BaseEntity
/** */ /** */
private String operateId; private String operateId;
/** 所属地区 */
@Excel(name = "所属地区")
private String areaid;
public void setFileId(String fileId) public void setFileId(String fileId)
{ {

@ -46,11 +46,11 @@ public class TdNotify extends BaseEntity
private String notifyState; private String notifyState;
/** 市州 */ /** 市州 */
@Excel(name = "市州") @Excel(name = "所属市州")
private String framework; private String framework;
/** 地区 */ /** 地区 */
@Excel(name = "地区") @Excel(name = "所属地区")
private String area; private String area;
public void setNotifyId(Long notifyId) public void setNotifyId(Long notifyId)

@ -56,11 +56,11 @@ public class TdPropertyManager extends BaseEntity
private Long shemichengdu; private Long shemichengdu;
/** 市 */ /** 市 */
@Excel(name = "市") @Excel(name = "所属")
private String part; private String part;
/** 区 */ /** 区 */
@Excel(name = "区") @Excel(name = "所属")
private String areaId; private String areaId;
/** 网络终端(数量) */ /** 网络终端(数量) */

Loading…
Cancel
Save