Merge remote-tracking branch 'origin/master' into doc

# Conflicts:
#	mms-admin/src/main/resources/application.yml   resolved by origin/master(远端) version
This commit is contained in:
xijue 2025-08-25 09:41:52 +08:00
commit 0c0db2d2bc
8 changed files with 474 additions and 112 deletions

View File

@ -9,6 +9,7 @@ import com.sxpcwlkj.common.code.entity.CaptchaEntity;
import com.sxpcwlkj.common.code.entity.ConfigEntity;
import com.sxpcwlkj.common.constant.Constants;
import com.sxpcwlkj.common.enums.ConfigKeyNum;
import com.sxpcwlkj.common.enums.SystemCommonEnum;
import com.sxpcwlkj.common.properties.CaptchaProperties;
import com.sxpcwlkj.common.utils.DataUtil;
import com.sxpcwlkj.redis.RedisUtil;
@ -22,6 +23,7 @@ import java.time.Duration;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.concurrent.atomic.AtomicBoolean;
@Slf4j
@ -45,12 +47,12 @@ public class CaptchaServiceImpl implements CaptchaService {
}
convert.forEach(smsConfigEntity -> {
if("sys_base_captcha_state".equals(smsConfigEntity.getConfigKey())){
if(Convert.toInt(smsConfigEntity.getConfigValue()) == 1){
if(Objects.equals(Convert.toInt(smsConfigEntity.getConfigValue()), SystemCommonEnum.SYS_COMMON_STATE_OPEN.getValue())){
isOpen.set(true);
}
}
});
if (!captchaProperties.isStatus()||!isOpen.get()) {
if (!isOpen.get()) {
data.put(CaptchaEntity.CODE.CAPTCHA_MSG.getValue(), "系统验证码未开启!");
return data;
}

View File

@ -1,8 +1,3 @@
--- # 项目基础信息
sxpcwlkj:
# 开启验证码: true开启 false 关闭
isOpenCaptcha: false
--- # powerjob 配置
powerjob:
worker:
@ -10,7 +5,6 @@ powerjob:
enabled: false
# 需要先在 powerjob 登录页执行应用注册后才能使用
app-name: mms
enable-test-mode: false
max-appended-wf-context-length: 4096
max-result-length: 4096
# 28080 端口 随着主应用端口飘逸 避免集群冲突
@ -44,42 +38,45 @@ spring:
primary: master
# 严格模式 匹配不到数据源则报错
strict: true
public-key: MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAJssgtfcBfc+d8Et0FBGQRBonRRQBD8jB1UHTRbk3diOliGlec9lJxbGR/qp7Jp8uYozCr96lvpnIIJM59fNoeUCAwEAAQ==
# 账号密码
datasource:
# 主库数据源
master:
type: ${spring.datasource.type}
driverClassName: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/mms?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true
username: root
password: 123456
# 从库数据源
slave:
lazy: true
type: ${spring.datasource.type}
driverClassName: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/mms?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true
username: root
password: 123456
# oracle:
# type: ${spring.datasource.type}
# driverClassName: oracle.jdbc.OracleDriver
# url: jdbc:oracle:thin:@//localhost:1521/XE
# username: ROOT
# password: root
# hikari:
# connectionTestQuery: SELECT 1 FROM DUAL
# postgres:
# type: ${spring.datasource.type}
# driverClassName: org.postgresql.Driver
# url: jdbc:postgresql://localhost:5432/postgres?useUnicode=true&characterEncoding=utf8&useSSL=true&autoReconnect=true&reWriteBatchedInserts=true
# username: root
# password: root
# sqlserver:
# type: ${spring.datasource.type}
# driverClassName: com.microsoft.sqlserver.jdbc.SQLServerDriver
# url: jdbc:sqlserver://localhost:1433;DatabaseName=tempdb;SelectMethod=cursor;encrypt=false;rewriteBatchedStatements=true
# username: SA
# password: root
url: jdbc:mysql://119.28.10.247:3306/mms?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true
username: mms
# 由GeneratePassword.java 生成, public-key 和 password 要匹配
password: ENC(c6FYwkk1dtKxfAcOED4g4mAgzCoK6XTr6+VTXVfQYly9I02yiND8aK5vTeYJ+oJCGH4beQyZLl9H2kt1ZCXqJg==)
# # 从库数据源
# slave:
# lazy: true
# type: ${spring.datasource.type}
# driverClassName: com.mysql.cj.jdbc.Driver
# url: jdbc:mysql://localhost:3306/mms?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true
# username: root
# password: 123456
# oracle:
# type: ${spring.datasource.type}
# driverClassName: oracle.jdbc.OracleDriver
# url: jdbc:oracle:thin:@//localhost:1521/XE
# username: ROOT
# password: root
# hikari:
# connectionTestQuery: SELECT 1 FROM DUAL
# postgres:
# type: ${spring.datasource.type}
# driverClassName: org.postgresql.Driver
# url: jdbc:postgresql://localhost:5432/postgres?useUnicode=true&characterEncoding=utf8&useSSL=true&autoReconnect=true&reWriteBatchedInserts=true
# username: root
# password: root
# sqlserver:
# type: ${spring.datasource.type}
# driverClassName: com.microsoft.sqlserver.jdbc.SQLServerDriver
# url: jdbc:sqlserver://localhost:1433;DatabaseName=tempdb;SelectMethod=cursor;encrypt=false;rewriteBatchedStatements=true
# username: SA
# password: root
hikari:
# 最大连接池数量
maxPoolSize: 20

View File

@ -1,8 +1,3 @@
--- # 项目基础信息
sxpcwlkj:
# 开启验证码: true开启 false 关闭
isOpenCaptcha: false
--- # powerjob 配置
powerjob:
worker:
@ -43,8 +38,7 @@ spring:
primary: master
# 严格模式 匹配不到数据源则报错
strict: true
# 账号加密,公钥
# 账号密码
datasource:
# 主库数据源
master:

View File

@ -1,8 +1,3 @@
--- # 项目基础信息
sxpcwlkj:
# 开启验证码: true开启 false 关闭
isOpenCaptcha: true
--- # powerjob 配置
powerjob:
worker:

View File

@ -12,13 +12,11 @@ sxpcwlkj:
copyrightYear: 2018
# 机构团队
organization: 陕西品创网络
# 开启验证码: true开启 false 关闭
isOpenCaptcha: true
# 演示模式配置
demo:
mode:
enabled: true # 默认开启演示模式
enabled: false # 默认开启演示模式
message-template: "演示模式下禁止{operation}操作 [实体: {entity}, 方法: {method}]"
allowed-users: # 白名单用户
- admin
@ -28,8 +26,6 @@ demo:
--- # 验证码配置
captcha:
# 是否开启验证码: true 开启 false 关闭
status: true
# 页面 <参数设置> 可开启关闭 验证码校验
# 线段干扰 LINE 圆圈干扰 CIRCLE 扭曲干扰 SHEAR 计算题型 CALCULATE
type: LINE

View File

@ -14,12 +14,6 @@ import org.springframework.stereotype.Component;
@Component
@ConfigurationProperties(prefix = "captcha")
public class CaptchaProperties {
/**
* 是否开启验证码
*/
private boolean status;
/**
* 验证码类型
*/

View File

@ -33,8 +33,5 @@ public class MsProperties {
* 机构组织
*/
private String organization;
/**
* 是否开启验证码
*/
private Boolean isOpenCaptcha;
}

View File

@ -4,7 +4,7 @@
"avatar": "",
"version": "4.9.4",
"createdTime": "2023-1-5 23:34:04",
"updatedTime": "2025-6-23 10:04:54",
"updatedTime": "2025-6-24 15:08:16",
"dbConns": [],
"profile": {
"default": {
@ -32288,6 +32288,384 @@
"innerType": ""
}
]
},
{
"id": "CFAB2617-0FCC-4852-A8E7-33CD8D456F35",
"defKey": "website_variable",
"headers": [
{
"refKey": "hideInGraph",
"hideInGraph": true
},
{
"refKey": "defKey",
"freeze": false,
"hideInGraph": false
},
{
"refKey": "defName",
"freeze": false,
"hideInGraph": false
},
{
"refKey": "defaultValue",
"freeze": false,
"hideInGraph": false
},
{
"refKey": "primaryKey",
"freeze": false,
"hideInGraph": false
},
{
"refKey": "notNull",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "autoIncrement",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "domain",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "type",
"freeze": false,
"hideInGraph": false
},
{
"refKey": "len",
"freeze": false,
"hideInGraph": false
},
{
"refKey": "scale",
"freeze": false,
"hideInGraph": false
},
{
"refKey": "comment",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "refDict",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "isStandard",
"freeze": false,
"hideInGraph": false
},
{
"refKey": "uiHint",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "extProps",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "attr1",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "attr2",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "attr3",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "attr4",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "attr5",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "attr6",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "attr7",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "attr8",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "attr9",
"freeze": false,
"hideInGraph": true
}
],
"fields": [
{
"defKey": "id",
"defName": "ID",
"comment": "",
"type": "",
"len": "",
"scale": "",
"primaryKey": true,
"notNull": true,
"autoIncrement": false,
"defaultValue": "",
"hideInGraph": false,
"refDict": "",
"baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
"extProps": {},
"domain": "16120F75-6AA7-4483-868D-F07F511BB081",
"id": "7EBD7821-99DB-49A0-B9FF-E34CE0FA53EC"
},
{
"defKey": "variable_code",
"defName": "变量编码",
"comment": "",
"type": "",
"len": "",
"scale": "",
"primaryKey": false,
"notNull": false,
"autoIncrement": false,
"defaultValue": "",
"hideInGraph": false,
"refDict": "",
"baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
"extProps": {},
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
"id": "1F44EA6B-8C83-440C-932C-BBEEB46D4212"
},
{
"defKey": "variable_lable",
"defName": "变量名",
"comment": "",
"type": "",
"len": "",
"scale": "",
"primaryKey": false,
"notNull": false,
"autoIncrement": false,
"defaultValue": "",
"hideInGraph": false,
"refDict": "",
"baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
"extProps": {},
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
"id": "593F0E12-2EFB-44DE-A65A-C1E872660E60"
},
{
"defKey": "variable_value",
"defName": "变量值",
"comment": "",
"type": "",
"len": "",
"scale": "",
"primaryKey": false,
"notNull": false,
"autoIncrement": false,
"defaultValue": "",
"hideInGraph": false,
"refDict": "",
"baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
"extProps": {},
"domain": "3E948CEC-3070-472C-AF92-F3CA11EC9D15",
"id": "8FE8B4B7-EF38-4DCC-A41E-639424D0674B"
},
{
"defKey": "status",
"defName": "状态",
"comment": "",
"type": "",
"len": "",
"scale": "",
"primaryKey": false,
"notNull": false,
"autoIncrement": false,
"defaultValue": "0",
"hideInGraph": false,
"refDict": "",
"baseType": "1D764C4A-6F9F-421E-B11A-6F3E23B51811",
"extProps": {},
"domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
"id": "AF4F5406-1B8F-4838-9C69-2C28E92A424A"
},
{
"defKey": "sort",
"defName": "排序",
"comment": "",
"type": "",
"len": "",
"scale": "",
"primaryKey": false,
"notNull": false,
"autoIncrement": false,
"defaultValue": "0",
"hideInGraph": false,
"refDict": "",
"baseType": "1D764C4A-6F9F-421E-B11A-6F3E23B51811",
"extProps": {},
"domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
"id": "4464EB5D-B732-43E7-83ED-6BDE1E761946"
},
{
"defKey": "revision",
"defName": "乐观锁",
"comment": "",
"domain": "16120F75-6AA7-4483-868D-F07F511BB081",
"type": "",
"len": 32,
"scale": "",
"primaryKey": false,
"notNull": false,
"autoIncrement": false,
"defaultValue": "1",
"hideInGraph": false,
"refDict": "",
"uiHint": "",
"id": "76995AF9-F974-4DCC-B9D8-7E1F413A527A",
"baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64"
},
{
"defKey": "tenant_id",
"defName": "租户号",
"comment": "",
"type": "",
"len": 32,
"scale": "",
"primaryKey": false,
"notNull": false,
"autoIncrement": false,
"defaultValue": "000000",
"hideInGraph": false,
"domain": "16120F75-6AA7-4483-868D-F07F511BB081",
"refDict": "",
"uiHint": "",
"id": "1A8583A6-E3ED-4B7F-9A96-7A321EFFD25D",
"baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64"
},
{
"defKey": "created_by",
"defName": "创建人",
"comment": "",
"domain": "16120F75-6AA7-4483-868D-F07F511BB081",
"type": "",
"len": 32,
"scale": "",
"primaryKey": false,
"notNull": false,
"autoIncrement": false,
"defaultValue": "",
"hideInGraph": false,
"refDict": "",
"uiHint": "",
"id": "878F4941-FDD6-44FD-AE10-E03B541E1ECB",
"baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64"
},
{
"defKey": "created_time",
"defName": "创建时间",
"comment": "",
"domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
"type": "",
"len": "",
"scale": "",
"primaryKey": false,
"notNull": false,
"autoIncrement": false,
"defaultValue": "",
"hideInGraph": false,
"refDict": "",
"uiHint": "",
"id": "5BC1E149-1D98-47A6-94A3-4F9F15F75699",
"baseType": "89D69E81-EA34-42EE-9FA2-93B8BD27E098"
},
{
"defKey": "updated_by",
"defName": "更新人",
"comment": "",
"domain": "16120F75-6AA7-4483-868D-F07F511BB081",
"type": "",
"len": 32,
"scale": "",
"primaryKey": false,
"notNull": false,
"autoIncrement": false,
"defaultValue": "",
"hideInGraph": false,
"refDict": "",
"uiHint": "",
"id": "AFFE3587-80DF-4B18-A2D0-CF6AA0BACC62",
"baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64"
},
{
"defKey": "updated_time",
"defName": "更新时间",
"comment": "",
"domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
"type": "",
"len": "",
"scale": "",
"primaryKey": false,
"notNull": false,
"autoIncrement": false,
"defaultValue": "",
"hideInGraph": false,
"refDict": "",
"uiHint": "",
"id": "11B80493-D9F7-4CFF-9ECE-EE54CF847D4A",
"baseType": "89D69E81-EA34-42EE-9FA2-93B8BD27E098"
},
{
"defKey": "remark",
"defName": "备注",
"comment": "",
"type": "",
"len": "",
"scale": "",
"primaryKey": false,
"notNull": false,
"autoIncrement": false,
"defaultValue": "",
"hideInGraph": false,
"refDict": "",
"extProps": {},
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
"id": "6C2E5214-E727-46AD-8936-F520AC519CDA",
"baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64"
}
],
"properties": {
"partitioned by": "(date string)",
"row format delimited": "",
"fields terminated by ','": "",
"collection items terminated by '-'": "",
"map keys terminated by ':'": "",
"store as textfile;": ""
},
"type": "P",
"defName": "网站变量",
"notes": {},
"correlations": []
}
],
"views": [],
@ -33951,6 +34329,51 @@
"relationType": "field",
"canvasData": {
"cells": [
{
"id": "dc7a4d54-d06f-422a-9269-795165a716aa",
"shape": "table",
"position": {
"x": -240.00000000000026,
"y": 30.000000000000597
},
"count": 0,
"originKey": "04F0CF55-410A-4BF5-AB44-577796AB8232",
"type": "P",
"size": {
"width": 500,
"height": 300
}
},
{
"id": "9c774cb1-a454-4a18-8208-beb990f472c2",
"shape": "table",
"position": {
"x": 459,
"y": 468
},
"count": 0,
"originKey": "4D681ED1-403F-4F8C-AB63-815B15CC8B60",
"type": "P",
"size": {
"width": 430,
"height": 238
}
},
{
"id": "b54a583b-48fd-4018-9d41-3eb9d6a55e1a",
"shape": "table",
"position": {
"x": 459,
"y": 872.0000000000005
},
"count": 0,
"originKey": "7B4B3386-00F7-4B51-A0EF-6057732AE928",
"type": "P",
"size": {
"width": 440,
"height": 280
}
},
{
"id": "b8d03f45-10ce-45c4-a4aa-e6e0a22ebdd6",
"shape": "erdRelation",
@ -33964,9 +34387,6 @@
},
"relation": "1:n",
"fillColor": "#ACDAFC",
"router": {
"name": "manhattan"
},
"attrs": {
"line": {
"strokeDasharray": ""
@ -33986,9 +34406,6 @@
},
"relation": "1:n",
"fillColor": "#ACDAFC",
"router": {
"name": "manhattan"
},
"attrs": {
"line": {
"strokeDasharray": ""
@ -33996,44 +34413,14 @@
}
},
{
"id": "dc7a4d54-d06f-422a-9269-795165a716aa",
"shape": "table",
"position": {
"x": -240.00000000000026,
"y": 30.000000000000597
},
"count": 0,
"originKey": "04F0CF55-410A-4BF5-AB44-577796AB8232",
"type": "P",
"size": {
"width": 500,
"height": 300
}
},
{
"id": "5565b918-cec8-460c-88c4-c49de3a674f8",
"shape": "table",
"position": {
"x": -245.00000000000026,
"y": 468
},
"count": 0,
"originKey": "920A8E89-75C6-4A98-BD3F-89EAE67C4362",
"type": "P",
"size": {
"width": 510,
"height": 300
}
},
{
"id": "9c774cb1-a454-4a18-8208-beb990f472c2",
"id": "c9399878-56b7-4ebc-a377-d4331666e9f9",
"shape": "table",
"position": {
"x": 459,
"y": 468
"y": 30
},
"count": 0,
"originKey": "4D681ED1-403F-4F8C-AB63-815B15CC8B60",
"originKey": "CFAB2617-0FCC-4852-A8E7-33CD8D456F35",
"type": "P",
"size": {
"width": 430,
@ -34056,18 +34443,18 @@
}
},
{
"id": "b54a583b-48fd-4018-9d41-3eb9d6a55e1a",
"id": "5565b918-cec8-460c-88c4-c49de3a674f8",
"shape": "table",
"position": {
"x": 459,
"y": 872.0000000000005
"x": -245.00000000000026,
"y": 468
},
"count": 0,
"originKey": "7B4B3386-00F7-4B51-A0EF-6057732AE928",
"originKey": "920A8E89-75C6-4A98-BD3F-89EAE67C4362",
"type": "P",
"size": {
"width": 440,
"height": 280
"width": 510,
"height": 300
}
}
]