涉密人员统计

master
20918 11 months ago
parent 51d8583ed3
commit 9e50135d17

@ -49,6 +49,14 @@
<artifactId>mysql-connector-java</artifactId> <artifactId>mysql-connector-java</artifactId>
</dependency> </dependency>
<!-- 人大金仓数据库-->
<dependency>
<groupId>cn.com.kingbase</groupId>
<artifactId>kingbase8</artifactId>
<version>8.6.0</version>
</dependency>
<!-- 核心模块--> <!-- 核心模块-->
<dependency> <dependency>
<groupId>com.ruoyi</groupId> <groupId>com.ruoyi</groupId>

@ -106,6 +106,7 @@ public class SysUsernumController extends BaseController {
{ {
List<SysUser> list = userService.lambdaQuery().eq(SysUser::getDeptId, deptId) List<SysUser> list = userService.lambdaQuery().eq(SysUser::getDeptId, deptId)
.eq(SysUser::getDelFlag,0) .eq(SysUser::getDelFlag,0)
.ne(SysUser::getUserId,1)
.list(); .list();
list.forEach(sysuser -> { list.forEach(sysuser -> {
List<SysUserPost> postList = sysUserPostService.lambdaQuery(). List<SysUserPost> postList = sysUserPostService.lambdaQuery().

@ -3,14 +3,18 @@ spring:
datasource: datasource:
type: com.alibaba.druid.pool.DruidDataSource type: com.alibaba.druid.pool.DruidDataSource
driverClassName: com.mysql.cj.jdbc.Driver driverClassName: com.mysql.cj.jdbc.Driver
# driverClassName: com.kingbase8.Driver
druid: druid:
# 主库数据源 # 主库数据源
master: master:
url: jdbc:mysql://192.168.254.123:3306/zhky?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 url: jdbc:mysql://192.168.254.123:3306/zhky?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
# url: jdbc:kingbase8://192.168.254.197:54321/zhky?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
#username: root #username: root
#password: qwer1234 #password: qwer1234
username: ENC(ElFzIjuV3codlxGotvqqyA==) username: ENC(ElFzIjuV3codlxGotvqqyA==)
password: ENC(aM81j4MP4WJC4ZQBNlDntx0jKsP3wwQZ) password: ENC(aM81j4MP4WJC4ZQBNlDntx0jKsP3wwQZ)
# password: ENC(YgAg6bUSgw1uc1H17kDw0g==)
# 从库数据源 # 从库数据源
slave: slave:
# 从数据源开关/默认关闭 # 从数据源开关/默认关闭

@ -7,7 +7,7 @@ ruoyi:
# 版权年份 # 版权年份
copyrightYear: 2024 copyrightYear: 2024
# 实例演示开关 # 实例演示开关
demoEnabled: true demoEnabled: false
# 文件路径 示例( Windows配置D:/ruoyi/uploadPathLinux配置 /home/ruoyi/uploadPath # 文件路径 示例( Windows配置D:/ruoyi/uploadPathLinux配置 /home/ruoyi/uploadPath
profile: D:/ruoyi/uploadPath profile: D:/ruoyi/uploadPath
# 获取ip地址开关 # 获取ip地址开关
@ -85,6 +85,7 @@ mybatis:
# PageHelper分页插件 # PageHelper分页插件
pagehelper: pagehelper:
helperDialect: mysql helperDialect: mysql
# helperDialect: postgresql
supportMethodsArguments: true supportMethodsArguments: true
params: count=countSql params: count=countSql

@ -10,20 +10,20 @@
<div class="form-group"> <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"> <div class="col-sm-8">
<input name="user" disabled th:value="*{userName}" class="form-control" type="text"> <input name="user" readonly th:value="*{userName}" class="form-control" type="text">
</div> </div>
</div> </div>
<div class="form-group"> <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"> <div class="col-sm-8">
<input name="depart" disabled th:value="*{dept.deptName}" class="form-control" type="text"> <input name="depart" readonly th:value="*{dept.deptName}" class="form-control" type="text">
</div> </div>
</div> </div>
<div class="form-group"> <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"> <div class="col-sm-8">
<div class="input-group date"> <div class="input-group date">
<input name="checkStartTime" disabled class="form-control" placeholder="yyyy-MM-dd" type="text"> <input name="checkStartTime" readonly class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span> <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div> </div>
</div> </div>

@ -16,7 +16,7 @@
<div class="form-group"> <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"> <div class="col-sm-8">
<input name="FRAMEWORK" class="form-control" type="text"> <input name="FRAMEWORK" class="form-control" type="text" required>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">

@ -189,7 +189,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label">生效时间:</label> <label class="col-sm-4 control-label">生效时间:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="startdate" class="form-control" type="text"> <input name="startdate" readonly class="form-control" type="text">
</div> </div>
</div> </div>
</div> </div>
@ -197,7 +197,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label">失效时间:</label> <label class="col-sm-4 control-label">失效时间:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="enddate" class="form-control" value="2050-12-31" type="text"> <input name="enddate" readonly class="form-control" value="2050-12-31" type="text">
</div> </div>
</div> </div>
</div> </div>

@ -6,7 +6,7 @@ import org.jasypt.encryption.pbe.config.SimpleStringPBEConfig;
public class EncFactory { public class EncFactory {
public static void main(String[] args) { public static void main(String[] args) {
String securityKey = "BUSINESS"; // 加密秘钥 String securityKey = "BUSINESS"; // 加密秘钥
String data = "qwer1234"; // 需要加密的字符串 String data = "123456"; // 需要加密的字符串
PooledPBEStringEncryptor encryptor = new PooledPBEStringEncryptor(); PooledPBEStringEncryptor encryptor = new PooledPBEStringEncryptor();
SimpleStringPBEConfig config = new SimpleStringPBEConfig(); SimpleStringPBEConfig config = new SimpleStringPBEConfig();

@ -201,6 +201,7 @@ public class GenController extends BaseController
{ {
SqlUtil.filterKeyword(sql); SqlUtil.filterKeyword(sql);
List<SQLStatement> sqlStatements = SQLUtils.parseStatements(sql, DbType.mysql); List<SQLStatement> sqlStatements = SQLUtils.parseStatements(sql, DbType.mysql);
//List<SQLStatement> sqlStatements = SQLUtils.parseStatements(sql, DbType.kingbase);
List<String> tableNames = new ArrayList<>(); List<String> tableNames = new ArrayList<>();
for (SQLStatement sqlStatement : sqlStatements) for (SQLStatement sqlStatement : sqlStatements)
{ {

Loading…
Cancel
Save