Compare commits
109 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 6d85686b06 | |||
| b33cb6f9a1 | |||
| 072e71b025 | |||
| 47394de43c | |||
| f0f1dde6b6 | |||
| 1ab1165697 | |||
| a8f1b1fdfa | |||
| 3b94d19199 | |||
| db1139a14f | |||
|
|
bea74aeac2 | ||
|
|
634a1f45f9 | ||
| 8f1ad3307c | |||
| d8080fa22d | |||
|
|
e8783d9f8f | ||
| d8c4348341 | |||
|
|
8e61490005 | ||
| f5f4e3c48e | |||
| 0f013715b8 | |||
| fb9722d328 | |||
| 6f9192d30d | |||
| f2b5b90f34 | |||
| a2cbd5e583 | |||
| d3df46858b | |||
| 47a7a945bc | |||
| 0a56c0dcf0 | |||
| 15d32134e2 | |||
| eff98ea5eb | |||
| a47306825a | |||
|
|
9b35fec931 | ||
| e20e2b637f | |||
| ebd2e8aa75 | |||
| cb268fe26d | |||
| 23bd49d940 | |||
| 32adb984e2 | |||
| c1d453600b | |||
| 02eab2d932 | |||
| d5c8b7a1ad | |||
|
|
4053064a22 | ||
|
|
089e28f913 | ||
| cf9ab03b17 | |||
| d332650bfa | |||
| 840983ac94 | |||
|
|
86673d7be3 | ||
|
|
3753a916f5 | ||
|
|
0556f77870 | ||
|
|
b185c156ca | ||
|
|
a48308dcbf | ||
| e37f6a70f9 | |||
|
|
28629ccd35 | ||
|
|
fbd7f0be78 | ||
|
|
763f05da84 | ||
|
|
8c74d45332 | ||
| 8d62c0461b | |||
| 58936c957d | |||
| 062c4a92b8 | |||
| fb9f85e967 | |||
| 38ef377cbd | |||
| 240d5dc3f7 | |||
| 82702f16e0 | |||
| 0b4b63dfbe | |||
| b4422a0dca | |||
| d8627df2dd | |||
| 09ca077559 | |||
| 3091fc7337 | |||
| b0850257c8 | |||
| fa2884b320 | |||
| 941054734f | |||
| 8d69dc3c00 | |||
| 2157806ba5 | |||
| 2236cbea36 | |||
| 2128e717e7 | |||
| 1311e87e13 | |||
| ddf1553846 | |||
| 5d82800976 | |||
| 0c35044231 | |||
| 61f4020487 | |||
| aeb6b95970 | |||
| b5ce854eb6 | |||
| 4d4828ea71 | |||
| 10e738edd9 | |||
| 88a4e58130 | |||
| 76c324b0df | |||
| a65e8dd2cc | |||
| 1ac9b5ae0b | |||
| 8f77fe8bc9 | |||
| b567747901 | |||
| ed7004ae85 | |||
| d1670b79a0 | |||
| 54cde91aac | |||
| 7974bdc51c | |||
| 91cb465962 | |||
| 1b2c248fa2 | |||
| 1c16d6ba0f | |||
| 49b8a975a8 | |||
| d17a502da1 | |||
| 430adc2112 | |||
| 5f5c47f528 | |||
| 92d74c47ce | |||
| 5d8e7b667f | |||
| 58449fc2f9 | |||
| 4c541f43b9 | |||
| 9a037ae446 | |||
| bb0eb60eae | |||
| cf5dbc6133 | |||
| 5f6fa50000 | |||
| 08b2e76d47 | |||
| 5ffeab8999 | |||
| fc6640b846 | |||
| 8914c8b143 |
26
.trae/documents/plan_20251231_062502.md
Normal file
26
.trae/documents/plan_20251231_062502.md
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
# 修复门诊预约界面专家号查询结果显示问题
|
||||||
|
|
||||||
|
## 问题分析
|
||||||
|
1. 前端传递的参数正确:`type=expert`,后端正确转换为`ticketType=专家`
|
||||||
|
2. 实际查询返回了5条记录,但COUNT查询只返回了1条记录
|
||||||
|
3. 这导致前端只显示了1条记录,而不是全部5条
|
||||||
|
4. 原因:MyBatis-Plus自动生成的COUNT查询和实际查询使用了不同的条件,特别是逻辑删除条件
|
||||||
|
|
||||||
|
## 解决方案
|
||||||
|
1. 修改TicketMapper.xml中的自定义COUNT查询,显式添加`delete_flag = '0'`条件
|
||||||
|
2. 在selectTicketPage和selectTicketPage_mpCount查询中都添加逻辑删除条件
|
||||||
|
3. 确保两个查询使用完全相同的WHERE条件
|
||||||
|
|
||||||
|
## 修复步骤
|
||||||
|
1. 修改`selectTicketPage`查询,添加逻辑删除条件`and delete_flag = '0'`
|
||||||
|
2. 修改`selectTicketPage_mpCount`查询,添加逻辑删除条件`and delete_flag = '0'`
|
||||||
|
3. 确保两个查询的WHERE条件完全一致
|
||||||
|
4. 测试修复后的功能,确保专家号能正确显示全部5条记录
|
||||||
|
|
||||||
|
## 代码修改点
|
||||||
|
- 文件:`d:/work/openhis-server-new/openhis-domain/src/main/resources/mapper/clinical/TicketMapper.xml`
|
||||||
|
- 查询:`selectTicketPage` 和 `selectTicketPage_mpCount`
|
||||||
|
- 修改内容:添加逻辑删除条件`and delete_flag = '0'`
|
||||||
|
|
||||||
|
## 预期效果
|
||||||
|
修复后,COUNT查询和实际查询将使用完全相同的条件,包括逻辑删除条件,从而确保COUNT查询返回正确的总记录数,前端能显示所有5条专家号记录。
|
||||||
30
.trae/documents/plan_20251231_063300.md
Normal file
30
.trae/documents/plan_20251231_063300.md
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
# 修复门诊预约界面专家号查询COUNT结果不正确问题
|
||||||
|
|
||||||
|
## 问题分析
|
||||||
|
1. 前端传递的参数正确:`type=expert`,后端正确转换为`ticketType=专家`
|
||||||
|
2. COUNT查询和实际查询的WHERE条件完全相同:`WHERE delete_flag = '0' AND ticket_type = '专家'`
|
||||||
|
3. 但COUNT查询只返回1条记录,而实际查询返回5条记录
|
||||||
|
4. 原因:MyBatis-Plus的分页插件在处理自定义COUNT查询时,存在bug,导致COUNT查询结果不正确
|
||||||
|
|
||||||
|
## 解决方案
|
||||||
|
修改`TicketAppServiceImpl.java`中的`listTicket`方法,不使用MyBatis-Plus的自动分页功能,而是手动实现分页查询:
|
||||||
|
1. 直接调用`ticketService.countTickets`方法获取总记录数
|
||||||
|
2. 手动构建查询条件
|
||||||
|
3. 确保COUNT查询和实际查询使用完全相同的条件
|
||||||
|
|
||||||
|
## 修复步骤
|
||||||
|
1. 修改`TicketAppServiceImpl.java`中的`listTicket`方法
|
||||||
|
2. 手动实现分页查询,包括:
|
||||||
|
- 构建查询条件
|
||||||
|
- 调用`countTickets`获取总记录数
|
||||||
|
- 调用`selectTicketList`获取分页数据
|
||||||
|
- 手动组装分页结果
|
||||||
|
3. 测试修复后的功能,确保专家号能正确显示全部5条记录
|
||||||
|
|
||||||
|
## 代码修改点
|
||||||
|
- 文件:`d:/work/openhis-server-new/openhis-application/src/main/java/com/openhis/web/appointmentmanage/appservice/impl/TicketAppServiceImpl.java`
|
||||||
|
- 方法:`listTicket`
|
||||||
|
- 修改内容:替换MyBatis-Plus的自动分页,改为手动分页实现
|
||||||
|
|
||||||
|
## 预期效果
|
||||||
|
修复后,COUNT查询和实际查询将使用完全相同的条件,COUNT查询将返回正确的总记录数(5条),前端能显示所有5条专家号记录。
|
||||||
32
.trae/documents/修复号源列表显示问题.md
Normal file
32
.trae/documents/修复号源列表显示问题.md
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
## 问题分析
|
||||||
|
根据日志和代码分析,发现号源列表显示"没有更多数据了"的问题原因:
|
||||||
|
|
||||||
|
1. **后端查询正常**:成功查询到5条符合条件的专家号源记录
|
||||||
|
2. **数据转换失败**:在`convertToDto`方法中,`fee`字段类型转换错误
|
||||||
|
3. **响应返回空列表**:由于转换异常,最终返回给前端的号源列表为空
|
||||||
|
|
||||||
|
## 问题根源
|
||||||
|
- `Ticket`实体类的`fee`字段为**BigDecimal类型**(数据库存储)
|
||||||
|
- `TicketDto`类的`fee`字段为**String类型**(前端展示)
|
||||||
|
- 在`convertToDto`方法中,直接将BigDecimal类型的`fee`赋值给String类型的`fee`,导致**ClassCastException**
|
||||||
|
|
||||||
|
## 修复方案
|
||||||
|
修改`TicketAppServiceImpl.java`文件中的`convertToDto`方法,将BigDecimal类型的`fee`转换为String类型:
|
||||||
|
|
||||||
|
```java
|
||||||
|
// 原代码
|
||||||
|
dto.setFee(ticket.getFee());
|
||||||
|
|
||||||
|
// 修复后代码
|
||||||
|
dto.setFee(ticket.getFee().toString());
|
||||||
|
```
|
||||||
|
|
||||||
|
## 预期效果
|
||||||
|
1. 修复后,后端能成功将`Ticket`实体转换为`TicketDto`
|
||||||
|
2. 前端能接收到包含5条专家号源的完整列表
|
||||||
|
3. 页面显示正常,不再出现"没有更多数据了"的提示
|
||||||
|
|
||||||
|
## 验证方法
|
||||||
|
1. 重新启动项目,访问号源管理页面
|
||||||
|
2. 选择"专家号"类型,查看是否能正确显示5条号源记录
|
||||||
|
3. 检查日志,确认没有类型转换异常
|
||||||
23
.trae/documents/修复门诊预约界面专家号查询问题.md
Normal file
23
.trae/documents/修复门诊预约界面专家号查询问题.md
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
# 修复门诊预约界面专家号查询问题
|
||||||
|
|
||||||
|
## 问题分析
|
||||||
|
从日志中发现关键问题:
|
||||||
|
- 前端传递的ticket_type值是英文:`general` (普通号) 和 `expert` (专家号)
|
||||||
|
- 数据库中存储的ticket_type值是中文:`普通` 和 `专家`
|
||||||
|
- 导致查询条件不匹配,无法查询到数据
|
||||||
|
|
||||||
|
## 解决方案
|
||||||
|
需要在后端添加类型映射转换,将前端传递的英文类型转换为数据库中存储的中文类型。
|
||||||
|
|
||||||
|
## 修复步骤
|
||||||
|
1. 修改 `TicketAppServiceImpl.java` 文件,在处理type参数时添加映射转换逻辑
|
||||||
|
2. 添加从英文类型到中文类型的映射关系
|
||||||
|
3. 测试修复后的功能,确保普通号和专家号都能正确查询
|
||||||
|
|
||||||
|
## 代码修改点
|
||||||
|
- 文件:`d:/work/openhis-server-new/openhis-application/src/main/java/com/openhis/web/appointmentmanage/appservice/impl/TicketAppServiceImpl.java`
|
||||||
|
- 方法:`listTicket` 中的type参数处理部分
|
||||||
|
- 修改内容:添加类型映射转换,将 "general" 转换为 "普通","expert" 转换为 "专家"
|
||||||
|
|
||||||
|
## 预期效果
|
||||||
|
修复后,前端选择"普通号"或"专家号"时,系统能正确查询到对应的号源数据,不再出现"没有更多数据了"的提示。
|
||||||
23
.trae/documents/修复门诊预约界面只显示1条数据的问题.md
Normal file
23
.trae/documents/修复门诊预约界面只显示1条数据的问题.md
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
**问题分析**:
|
||||||
|
后端返回的响应格式是`{code: 200, msg: "操作成功", data: {total: 5, limit: 20, page: 1, list: [5条记录]}}`,而前端可能期望直接访问`list`属性,导致只能显示1条数据。
|
||||||
|
|
||||||
|
**修复方案**:
|
||||||
|
|
||||||
|
1. 修改`TicketAppServiceImpl.java`的`listTicket`方法,确保返回的分页数据格式正确
|
||||||
|
2. 调整响应结构,使其更符合前端期望
|
||||||
|
3. 保持与现有代码的兼容性
|
||||||
|
|
||||||
|
**修改点**:
|
||||||
|
|
||||||
|
* `TicketAppServiceImpl.java`:优化`listTicket`方法的响应格式
|
||||||
|
|
||||||
|
* 确保分页信息和列表数据都能正确返回给前端
|
||||||
|
|
||||||
|
**预期效果**:
|
||||||
|
|
||||||
|
* 后端返回正确格式的响应数据
|
||||||
|
|
||||||
|
* 前端能够正确显示所有5条专家号数据
|
||||||
|
|
||||||
|
* 保持与现有代码的兼容性
|
||||||
|
|
||||||
0
.trae/rules/project_rules.md
Normal file
0
.trae/rules/project_rules.md
Normal file
2
LICENSE
2
LICENSE
@@ -1,4 +1,4 @@
|
|||||||
GNU GENERAL PUBLIC LICENSE
|
GNU GENERAL PUBLIC LICENSE
|
||||||
Version 3, 29 June 2007
|
Version 3, 29 June 2007
|
||||||
|
|
||||||
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||||
|
|||||||
68
README.md
68
README.md
@@ -1,68 +0,0 @@
|
|||||||
# 平台介绍
|
|
||||||
|
|
||||||
## 🏠【关于我们】
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
天天开源致⼒于打造中国应⽤管理 软件开源⽣态,⾯向医疗、企业、教育三⼤⾏业信息化需求,提供优质的开源软件产品与解决⽅案。平台现已发布OpenHIS、OpenCOM、OpenEDU系列开源产品,并持续招募⽣态合作伙伴,期待共同构建开源创新的⾏业协作模式,加速⾏业的数字化进程。
|
|
||||||
|
|
||||||
天天开源的前⾝是新致开源,最早于2022年6⽉发布开源医疗软件平台OpenHIS.org.cn,于2023年6⽉发布开源企业软件平台OpenCOM.com.cn。2025年7⽉,新致开源品牌更新为天天开源,我们始终秉持开源、专业、协作的理念,致⼒于为医疗、教育、中⼩企业等⾏业提供优质的开源解决⽅案。
|
|
||||||
|
|
||||||
了解我们a:https://open.tntlinking.com/about?site=gitee
|
|
||||||
|
|
||||||
## 💾【部署包下载】
|
|
||||||
|
|
||||||
请访问官网产品中心下载部署包:https://open.tntlinking.com/resource/productCenter?site=gitee
|
|
||||||
|
|
||||||
## 📚【支持文档】
|
|
||||||
|
|
||||||
技术支持资源:https://open.tntlinking.com/resource/openProductDoc?site=gitee
|
|
||||||
(含演示环境、操作手册、部署手册、开发手册、常见问题等)
|
|
||||||
|
|
||||||
产品介绍:https://open.tntlinking.com/resource/productPresentation?site=gitee
|
|
||||||
|
|
||||||
操作教程:https://open.tntlinking.com/resource/operationTutorial?site=gitee
|
|
||||||
|
|
||||||
沙龙回顾:https://open.tntlinking.com/resource/openSourceSalon#23?site=gitee
|
|
||||||
|
|
||||||
## 🤝【合作方式】
|
|
||||||
|
|
||||||
产品服务价格:https://open.tntlinking.com/cost?site=gitee
|
|
||||||
|
|
||||||
加入生态伙伴:https://open.tntlinking.com/ecology/becomePartner?site=gitee
|
|
||||||
|
|
||||||
## 🤗【技术社区】
|
|
||||||
|
|
||||||
请访问官网扫码加入技术社区交流:https://open.tntlinking.com/ecology/joinCommunity?site=gitee
|
|
||||||
|
|
||||||
请关注公众号【天天开源软件】以便获得最新产品更新信息。
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# 项目介绍
|
|
||||||
|
|
||||||
OpenHIS医院系统(信创版)集十大核心模块于一体,涵盖目录管理、基础数据配置、个性化设置、门诊/住院全流程管理、药房药库智能管控、精细化耗材管理、财务核算体系、医保合规对接及多维报表分析等功能模块,共计372项标准化功能。
|
|
||||||
|
|
||||||
系统深度适配民营及公立一二级医院业务场景,支持单体医院、集团化运营及区域医疗协同等多种部署模式,并通过国家信创认证体系,确保全栈技术自主可控。如有项目需求,可联系官方平台合作。
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## 运行环境
|
|
||||||
|
|
||||||
jdk17 (必须)
|
|
||||||
node.js-v16.15 (推荐)
|
|
||||||
PostgreSQL-v16.2 (必须)
|
|
||||||
redis (常用稳定版本即可)
|
|
||||||
|
|
||||||
## 开发提示
|
|
||||||
|
|
||||||
需要修改数据库和redis的连接信息,详见:
|
|
||||||
application.yml
|
|
||||||
application-druid.yml
|
|
||||||
|
|
||||||
## 目录解释
|
|
||||||
|
|
||||||
前端: openhis-ui-vue3
|
|
||||||
后端: openhis-server
|
|
||||||
启动类: OpenHisApplication
|
|
||||||
|
|
||||||
@@ -1,39 +0,0 @@
|
|||||||
import java.io.IOException;
|
|
||||||
import java.net.HttpURLConnection;
|
|
||||||
import java.net.URL;
|
|
||||||
import java.util.Scanner;
|
|
||||||
|
|
||||||
public class TestDeleteInspectionType {
|
|
||||||
public static void main(String[] args) {
|
|
||||||
try {
|
|
||||||
// 测试删除ID为1的检验类型
|
|
||||||
long inspectionTypeId = 1;
|
|
||||||
URL url = new URL("http://localhost:8080/system/inspection-type/" + inspectionTypeId);
|
|
||||||
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
|
|
||||||
connection.setRequestMethod("DELETE");
|
|
||||||
connection.setRequestProperty("Content-Type", "application/json");
|
|
||||||
connection.setRequestProperty("Accept", "application/json");
|
|
||||||
|
|
||||||
// 发送请求
|
|
||||||
int responseCode = connection.getResponseCode();
|
|
||||||
System.out.println("响应代码: " + responseCode);
|
|
||||||
|
|
||||||
// 读取响应
|
|
||||||
Scanner scanner;
|
|
||||||
if (responseCode >= 200 && responseCode < 300) {
|
|
||||||
scanner = new Scanner(connection.getInputStream());
|
|
||||||
} else {
|
|
||||||
scanner = new Scanner(connection.getErrorStream());
|
|
||||||
}
|
|
||||||
|
|
||||||
String response = scanner.useDelimiter("\\A").next();
|
|
||||||
System.out.println("响应内容: " + response);
|
|
||||||
|
|
||||||
scanner.close();
|
|
||||||
connection.disconnect();
|
|
||||||
|
|
||||||
} catch (IOException e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
104
check_display_order.sql
Normal file
104
check_display_order.sql
Normal file
@@ -0,0 +1,104 @@
|
|||||||
|
-- 检查流水号(display_order)是否按“科室+医生+当天”正确递增
|
||||||
|
--
|
||||||
|
-- 说明:
|
||||||
|
-- 1. display_order 存的是纯数字(1, 2, 3...),不带时间戳前缀
|
||||||
|
-- 2. 时间戳前缀(如 20260109)是在前端显示时加上的
|
||||||
|
-- 3. 后端用 Redis key "ORG-{科室ID}-DOC-{医生ID}" 按天自增
|
||||||
|
--
|
||||||
|
-- 如何判断逻辑是否正确:
|
||||||
|
-- 同一科室、同一医生、同一天的记录,display_order 应该递增(1, 2, 3...)
|
||||||
|
-- 不同科室、不同医生、不同天的记录,可能都是 1(这是正常的)
|
||||||
|
|
||||||
|
-- ========================================
|
||||||
|
-- 查询1:按“科室+医生+日期”分组,看每组内的 display_order 是否递增
|
||||||
|
-- ========================================
|
||||||
|
SELECT
|
||||||
|
DATE(start_time) AS 日期,
|
||||||
|
organization_id AS 科室ID,
|
||||||
|
registrar_id AS 医生ID,
|
||||||
|
COUNT(*) AS 该组记录数,
|
||||||
|
MIN(display_order) AS 最小序号,
|
||||||
|
MAX(display_order) AS 最大序号,
|
||||||
|
STRING_AGG(display_order::text, ', ' ORDER BY start_time) AS 序号列表,
|
||||||
|
STRING_AGG(id::text, ', ' ORDER BY start_time) AS 记录ID列表
|
||||||
|
FROM adm_encounter
|
||||||
|
WHERE delete_flag = '0'
|
||||||
|
AND start_time >= CURRENT_DATE - INTERVAL '7 days' -- 只看最近7天
|
||||||
|
AND display_order IS NOT NULL
|
||||||
|
GROUP BY DATE(start_time), organization_id, registrar_id
|
||||||
|
ORDER BY 日期 DESC, 科室ID, 医生ID;
|
||||||
|
|
||||||
|
-- ========================================
|
||||||
|
-- 查询2:详细查看每条记录,看同组内的序号是否连续
|
||||||
|
-- ========================================
|
||||||
|
SELECT
|
||||||
|
id AS 记录ID,
|
||||||
|
DATE(start_time) AS 日期,
|
||||||
|
organization_id AS 科室ID,
|
||||||
|
registrar_id AS 医生ID,
|
||||||
|
start_time AS 挂号时间,
|
||||||
|
display_order AS 流水号,
|
||||||
|
-- 计算:同组内的序号应该是 1, 2, 3...,看是否有重复或跳号
|
||||||
|
ROW_NUMBER() OVER (
|
||||||
|
PARTITION BY DATE(start_time), organization_id, registrar_id
|
||||||
|
ORDER BY start_time
|
||||||
|
) AS 应该是第几个,
|
||||||
|
CASE
|
||||||
|
WHEN display_order = ROW_NUMBER() OVER (
|
||||||
|
PARTITION BY DATE(start_time), organization_id, registrar_id
|
||||||
|
ORDER BY start_time
|
||||||
|
) THEN '✓ 正常'
|
||||||
|
ELSE '✗ 异常'
|
||||||
|
END AS 是否正常
|
||||||
|
FROM adm_encounter
|
||||||
|
WHERE delete_flag = '0'
|
||||||
|
AND start_time >= CURRENT_DATE - INTERVAL '7 days'
|
||||||
|
AND display_order IS NOT NULL
|
||||||
|
ORDER BY DATE(start_time) DESC, organization_id, registrar_id, start_time;
|
||||||
|
|
||||||
|
-- ========================================
|
||||||
|
-- 查询3:只看今天的数据(最直观)
|
||||||
|
-- ========================================
|
||||||
|
SELECT
|
||||||
|
id AS 记录ID,
|
||||||
|
organization_id AS 科室ID,
|
||||||
|
registrar_id AS 医生ID,
|
||||||
|
start_time AS 挂号时间,
|
||||||
|
display_order AS 流水号
|
||||||
|
FROM adm_encounter
|
||||||
|
WHERE delete_flag = '0'
|
||||||
|
AND DATE(start_time) = CURRENT_DATE
|
||||||
|
AND display_order IS NOT NULL
|
||||||
|
ORDER BY organization_id, registrar_id, start_time;
|
||||||
|
|
||||||
|
-- ========================================
|
||||||
|
-- 查询4:发现问题 - 找出同组内 display_order 重复的记录
|
||||||
|
-- ========================================
|
||||||
|
WITH ranked AS (
|
||||||
|
SELECT
|
||||||
|
id,
|
||||||
|
DATE(start_time) AS reg_date,
|
||||||
|
organization_id,
|
||||||
|
registrar_id,
|
||||||
|
start_time,
|
||||||
|
display_order,
|
||||||
|
ROW_NUMBER() OVER (
|
||||||
|
PARTITION BY DATE(start_time), organization_id, registrar_id
|
||||||
|
ORDER BY start_time
|
||||||
|
) AS should_be_order
|
||||||
|
FROM adm_encounter
|
||||||
|
WHERE delete_flag = '0'
|
||||||
|
AND start_time >= CURRENT_DATE - INTERVAL '7 days'
|
||||||
|
AND display_order IS NOT NULL
|
||||||
|
)
|
||||||
|
SELECT
|
||||||
|
reg_date AS 日期,
|
||||||
|
organization_id AS 科室ID,
|
||||||
|
registrar_id AS 医生ID,
|
||||||
|
COUNT(*) AS 重复数量,
|
||||||
|
STRING_AGG(id::text || '->' || display_order::text, ', ') AS 问题记录
|
||||||
|
FROM ranked
|
||||||
|
WHERE display_order != should_be_order
|
||||||
|
GROUP BY reg_date, organization_id, registrar_id
|
||||||
|
ORDER BY reg_date DESC;
|
||||||
|
|
||||||
10
md/test.html
Normal file
10
md/test.html
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<title>测试合并11112</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
332
md/前端UI规范文档.md
Normal file
332
md/前端UI规范文档.md
Normal file
@@ -0,0 +1,332 @@
|
|||||||
|
# OpenHIS UI 风格规范文档
|
||||||
|
|
||||||
|
## 1. 整体布局
|
||||||
|
|
||||||
|
### 1.1 容器结构
|
||||||
|
```
|
||||||
|
<div class="app-container [page-name]-container">
|
||||||
|
<div class="components-container">
|
||||||
|
<!-- 查询表单 -->
|
||||||
|
<el-form class="query-form">...</el-form>
|
||||||
|
|
||||||
|
<!-- 操作按钮 -->
|
||||||
|
<el-row class="button-group">...</el-row>
|
||||||
|
|
||||||
|
<!-- 数据表格 -->
|
||||||
|
<el-table border>...</el-table>
|
||||||
|
|
||||||
|
<!-- 分页 -->
|
||||||
|
<div class="pagination-container">...</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
```
|
||||||
|
|
||||||
|
### 1.2 样式说明
|
||||||
|
- `app-container`: 最外层容器,全屏背景
|
||||||
|
- `components-container`: 白色卡片容器,带阴影
|
||||||
|
- `query-form`: 查询表单,底部无间距
|
||||||
|
- `button-group`: 按钮组,间距 8px
|
||||||
|
- `pagination-container`: 分页容器,顶部间距 16px
|
||||||
|
|
||||||
|
## 2. 统一样式规范
|
||||||
|
|
||||||
|
### 2.1 颜色规范
|
||||||
|
```scss
|
||||||
|
// 主色调
|
||||||
|
--color-primary: #409EFF;
|
||||||
|
--color-success: #67C23A;
|
||||||
|
--color-warning: #E6A23C;
|
||||||
|
--color-danger: #F56C6C;
|
||||||
|
--color-info: #909399;
|
||||||
|
|
||||||
|
// 文字颜色
|
||||||
|
--text-regular: #606266; // 常规文字
|
||||||
|
--text-secondary: #909399; // 次要文字
|
||||||
|
--text-placeholder: #A8ABB2; // 占位符
|
||||||
|
```
|
||||||
|
|
||||||
|
### 2.2 间距规范
|
||||||
|
```scss
|
||||||
|
// 容器内边距
|
||||||
|
$spacing-xs: 4px;
|
||||||
|
$spacing-sm: 8px;
|
||||||
|
$spacing-md: 16px;
|
||||||
|
$spacing-lg: 20px;
|
||||||
|
$spacing-xl: 24px;
|
||||||
|
|
||||||
|
// 表单项间距
|
||||||
|
$form-item-margin-bottom: 18px;
|
||||||
|
```
|
||||||
|
|
||||||
|
### 2.3 圆角规范
|
||||||
|
```scss
|
||||||
|
$border-radius-sm: 4px; // 小圆角 - 按钮、输入框
|
||||||
|
$border-radius-md: 8px; // 中圆角 - 卡片、对话框
|
||||||
|
$border-radius-lg: 12px; // 大圆角 - 特殊组件
|
||||||
|
```
|
||||||
|
|
||||||
|
### 2.4 阴影规范
|
||||||
|
```scss
|
||||||
|
// 卡片阴影
|
||||||
|
$box-shadow-card: 0 2px 8px rgba(0, 0, 0, 0.08);
|
||||||
|
|
||||||
|
// 表格阴影
|
||||||
|
$box-shadow-table: 0 1px 4px rgba(0, 0, 0, 0.05);
|
||||||
|
|
||||||
|
// 浮动元素阴影
|
||||||
|
$box-shadow-float: 0 2px 12px rgba(0, 0, 0, 0.1);
|
||||||
|
```
|
||||||
|
|
||||||
|
### 2.5 字体规范
|
||||||
|
```scss
|
||||||
|
$font-size-base: 14px; // 基础字号
|
||||||
|
$font-size-sm: 12px; // 小字号
|
||||||
|
$font-size-lg: 16px; // 大字号
|
||||||
|
$font-size-xl: 18px; // 特大字号
|
||||||
|
|
||||||
|
$font-weight-regular: 400; // 常规
|
||||||
|
$font-weight-medium: 500; // 中等
|
||||||
|
$font-weight-bold: 600; // 加粗
|
||||||
|
```
|
||||||
|
|
||||||
|
## 3. 组件规范
|
||||||
|
|
||||||
|
### 3.1 表单组件
|
||||||
|
|
||||||
|
#### 输入框
|
||||||
|
```vue
|
||||||
|
<el-input
|
||||||
|
v-model="value"
|
||||||
|
placeholder="请输入xxx"
|
||||||
|
clearable
|
||||||
|
style="width: 200px"
|
||||||
|
@keyup.enter="handleQuery"
|
||||||
|
/>
|
||||||
|
```
|
||||||
|
|
||||||
|
#### 下拉框
|
||||||
|
```vue
|
||||||
|
<el-select
|
||||||
|
v-model="value"
|
||||||
|
placeholder="请选择xxx"
|
||||||
|
clearable
|
||||||
|
style="width: 200px"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="dict in dictList"
|
||||||
|
:key="dict.value"
|
||||||
|
:label="dict.label"
|
||||||
|
:value="dict.value"
|
||||||
|
/>
|
||||||
|
</el-select>
|
||||||
|
```
|
||||||
|
|
||||||
|
#### 按钮规范
|
||||||
|
```vue
|
||||||
|
<!-- 主按钮 -->
|
||||||
|
<el-button type="primary" icon="IconName">按钮文字</el-button>
|
||||||
|
|
||||||
|
<!-- 次要按钮 -->
|
||||||
|
<el-button type="success">按钮文字</el-button>
|
||||||
|
<el-button type="warning">按钮文字</el-button>
|
||||||
|
<el-button type="danger">按钮文字</el-button>
|
||||||
|
|
||||||
|
<!-- 次要按钮(plain) -->
|
||||||
|
<el-button type="primary" plain icon="IconName">按钮文字</el-button>
|
||||||
|
|
||||||
|
<!-- 链接按钮(table内) -->
|
||||||
|
<el-button link type="primary" class="action-button">文字</el-button>
|
||||||
|
```
|
||||||
|
|
||||||
|
### 3.2 表格组件
|
||||||
|
|
||||||
|
```vue
|
||||||
|
<el-table
|
||||||
|
v-loading="loading"
|
||||||
|
:data="tableData"
|
||||||
|
@selection-change="handleSelectionChange"
|
||||||
|
border
|
||||||
|
>
|
||||||
|
<!-- 复选列 -->
|
||||||
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
|
|
||||||
|
<!-- 序号列 -->
|
||||||
|
<el-table-column label="序号" align="center" prop="id" width="80" />
|
||||||
|
|
||||||
|
<!-- 普通列 -->
|
||||||
|
<el-table-column
|
||||||
|
label="列名"
|
||||||
|
align="center"
|
||||||
|
prop="fieldName"
|
||||||
|
min-width="200"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<!-- 带标签列 -->
|
||||||
|
<el-table-column label="状态" align="center" prop="status" width="90">
|
||||||
|
<template #default="scope">
|
||||||
|
<dict-tag :options="dictType" :value="scope.row.status" />
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
|
||||||
|
<!-- 操作列 -->
|
||||||
|
<el-table-column label="操作" align="center" min-width="280">
|
||||||
|
<template #default="scope">
|
||||||
|
<el-button link type="primary" @click="handleEdit(scope.row)" class="action-button">编辑</el-button>
|
||||||
|
<el-button link type="danger" @click="handleDelete(scope.row)" class="action-button">删除</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
```
|
||||||
|
|
||||||
|
### 3.3 对话框组件
|
||||||
|
|
||||||
|
```vue
|
||||||
|
<el-dialog
|
||||||
|
:title="dialogTitle"
|
||||||
|
v-model="dialogVisible"
|
||||||
|
width="800px"
|
||||||
|
destroy-on-close
|
||||||
|
>
|
||||||
|
<el-form :model="form" :rules="rules" label-width="80px">
|
||||||
|
<!-- 表单内容 -->
|
||||||
|
</el-form>
|
||||||
|
|
||||||
|
<template #footer>
|
||||||
|
<div class="dialog-footer">
|
||||||
|
<el-button type="primary" @click="handleSubmit">确 定</el-button>
|
||||||
|
<el-button @click="handleCancel">取 消</el-button>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
</el-dialog>
|
||||||
|
```
|
||||||
|
|
||||||
|
## 4. 响应式设计
|
||||||
|
|
||||||
|
### 4.1 断点规范
|
||||||
|
```scss
|
||||||
|
$screen-xs: 480px;
|
||||||
|
$screen-sm: 768px;
|
||||||
|
$screen-md: 992px;
|
||||||
|
$screen-lg: 1200px;
|
||||||
|
```
|
||||||
|
|
||||||
|
### 4.2 响应式规范
|
||||||
|
```vue
|
||||||
|
<!-- 栅格系统 -->
|
||||||
|
<el-row :gutter="10">
|
||||||
|
<el-col :span="6" :xs="12" :sm="8">...</el-col>
|
||||||
|
<el-col :span="18" :xs="12" :sm="16">...</el-col>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<!-- 移动端表单 -->
|
||||||
|
<el-form :label-width="isMobile ? '80px' : '120px'">
|
||||||
|
```
|
||||||
|
|
||||||
|
## 5. 交互规范
|
||||||
|
|
||||||
|
### 5.1 加载状态
|
||||||
|
```vue
|
||||||
|
<!-- 表格加载 -->
|
||||||
|
<el-table v-loading="loading" :data="tableData">
|
||||||
|
|
||||||
|
<!-- 按钮加载 -->
|
||||||
|
<el-button :loading="saving">保存</el-button>
|
||||||
|
|
||||||
|
<!-- 全屏加载 -->
|
||||||
|
<el-button type="primary" :loading="true">提交</el-button>
|
||||||
|
```
|
||||||
|
|
||||||
|
### 5.2 空状态
|
||||||
|
```vue
|
||||||
|
<el-empty
|
||||||
|
description="暂无数据"
|
||||||
|
:image="emptyImage"
|
||||||
|
/>
|
||||||
|
```
|
||||||
|
|
||||||
|
### 5.3 确认对话框
|
||||||
|
```vue
|
||||||
|
<el-dialog title="确认提示" v-model="confirmVisible">
|
||||||
|
<p>{{ confirmMessage }}</p>
|
||||||
|
<template #footer>
|
||||||
|
<el-button @click="confirmVisible = false">取 消</el-button>
|
||||||
|
<el-button type="danger" @click="handleConfirm">确 定</el-button>
|
||||||
|
</template>
|
||||||
|
</el-dialog>
|
||||||
|
```
|
||||||
|
|
||||||
|
## 6. 命名规范
|
||||||
|
|
||||||
|
### 6.1 CSS 类名
|
||||||
|
- 使用 kebab-case(短横线命名)
|
||||||
|
- 遵循 BEM 命名规范
|
||||||
|
- 示例:`notice-container`, `button-group`, `action-button`
|
||||||
|
|
||||||
|
### 6.2 变量命名
|
||||||
|
- Vue:使用 camelCase
|
||||||
|
- 事件处理:以 `handle` 开头
|
||||||
|
- 数据获取:以 `get`/`load` 开头
|
||||||
|
- 示例:`handleQuery`, `loadData`, `handleSubmit`
|
||||||
|
|
||||||
|
### 6.3 组件命名
|
||||||
|
- 使用 PascalCase
|
||||||
|
- 多个单词时使用驼峰命名
|
||||||
|
- 示例:`NoticePanel`, `TableHeader`, `SearchForm`
|
||||||
|
|
||||||
|
## 7. 国际化规范
|
||||||
|
|
||||||
|
```vue
|
||||||
|
<!-- 使用字典标签 -->
|
||||||
|
<dict-tag :options="dictType" :value="row.status" />
|
||||||
|
|
||||||
|
<!-- 使用占位符 -->
|
||||||
|
<el-input :placeholder="$t('common.placeholder')"/>
|
||||||
|
```
|
||||||
|
|
||||||
|
## 8. 性能优化
|
||||||
|
|
||||||
|
### 8.1 图片优化
|
||||||
|
- 使用 WebP 格式
|
||||||
|
- 图片懒加载
|
||||||
|
- 响应式图片
|
||||||
|
|
||||||
|
### 8.2 列表优化
|
||||||
|
- 虚拟滚动(大列表)
|
||||||
|
- 分页加载
|
||||||
|
- 骨架屏
|
||||||
|
|
||||||
|
### 8.3 缓存策略
|
||||||
|
- 使用 Vuex/Pinia 缓存用户数据
|
||||||
|
- 本地存储持久化配置
|
||||||
|
- 请求去重
|
||||||
|
|
||||||
|
## 9. 无障碍规范
|
||||||
|
|
||||||
|
### 9.1 语义化标签
|
||||||
|
```vue
|
||||||
|
<nav> <!-- 导航 -->
|
||||||
|
<main> <!-- 主内容 -->
|
||||||
|
<header> <!-- 头部 -->
|
||||||
|
<footer> <!-- 底部 -->
|
||||||
|
```
|
||||||
|
|
||||||
|
### 9.2 ARIA 属性
|
||||||
|
```vue
|
||||||
|
<el-button aria-label="提交按钮">提交</el-button>
|
||||||
|
<el-input aria-label="搜索框" />
|
||||||
|
```
|
||||||
|
|
||||||
|
### 9.3 键盘导航
|
||||||
|
- 支持键盘操作
|
||||||
|
- Tab 键焦点管理
|
||||||
|
- 快捷键支持
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
**注意事项:**
|
||||||
|
1. 所有新增页面必须遵循此规范
|
||||||
|
2. 修改现有页面时尽量统一样式
|
||||||
|
3. 保持与系统整体风格一致
|
||||||
|
4. 优先使用已有的组件和样式
|
||||||
|
5. 遵循响应式设计原则
|
||||||
287
md/需求/94-手术室维护界面_2026-1-9.md
Normal file
287
md/需求/94-手术室维护界面_2026-1-9.md
Normal file
@@ -0,0 +1,287 @@
|
|||||||
|
## 手术室维护界面PRD文档
|
||||||
|
|
||||||
|
### 一、页面概述
|
||||||
|
|
||||||
|
**页面名称**:手术室维护界面
|
||||||
|
**页面目标**:提供手术室基础数据的维护功能,包括新增、编辑、启用/停用手术室信息,为手术安排提供基础数据支持
|
||||||
|
**适用场景**:医院管理员需要新增、修改、启用/停用手术室信息时使用
|
||||||
|
**页面类型**:列表页+表单页(含模态框)
|
||||||
|
|
||||||
|
**原型图地址:**https://static.pm-ai.cn/prototype/20260104/ee5d222231effefcb39624d1646a2e20/index.html
|
||||||
|
|
||||||
|
**核心功能**:
|
||||||
|
|
||||||
|
1. 手术室列表展示与查询
|
||||||
|
2. 新增手术室信息
|
||||||
|
3. 编辑现有手术室信息
|
||||||
|
4. 启用/停用手术室状态
|
||||||
|
5. 数据有效性校验
|
||||||
|
|
||||||
|
**用户价值**:
|
||||||
|
|
||||||
|
- 管理员可集中管理所有手术室基础信息
|
||||||
|
- 确保手术安排时能获取准确的手术室数据
|
||||||
|
- 通过状态管理控制手术室可用性
|
||||||
|
|
||||||
|
**流程图:**
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
```mermaid
|
||||||
|
flowchart TD
|
||||||
|
A[手术室维护界面] --> B[手术室列表展示]
|
||||||
|
|
||||||
|
B --> C[新增手术室]
|
||||||
|
|
||||||
|
B --> D[编辑手术室]
|
||||||
|
|
||||||
|
B --> E[启用/停用手术室]
|
||||||
|
|
||||||
|
B --> F[查询手术室]
|
||||||
|
|
||||||
|
C --> G[点击新增按钮]
|
||||||
|
|
||||||
|
G --> H[打开新增模态框]
|
||||||
|
|
||||||
|
H --> I[填写表单字段]
|
||||||
|
|
||||||
|
I --> J{必填字段校验}
|
||||||
|
|
||||||
|
J -->|通过| K[提交数据]
|
||||||
|
|
||||||
|
J -->|不通过| L[提示请填写所有必填项]
|
||||||
|
|
||||||
|
K --> M[表格新增数据行]
|
||||||
|
|
||||||
|
D --> N[点击修改按钮]
|
||||||
|
|
||||||
|
N --> O[打开编辑模态框]
|
||||||
|
|
||||||
|
O --> P[修改表单字段]
|
||||||
|
|
||||||
|
P --> Q{必填字段校验}
|
||||||
|
|
||||||
|
Q -->|通过| R[保存数据]
|
||||||
|
|
||||||
|
Q -->|不通过| S[提示请填写所有必填项]
|
||||||
|
|
||||||
|
R --> T[更新表格对应行]
|
||||||
|
|
||||||
|
E --> U[点击启用/停用按钮]
|
||||||
|
|
||||||
|
U --> V{二次确认}
|
||||||
|
|
||||||
|
V -->|确认| W[切换状态标签]
|
||||||
|
|
||||||
|
V -->|取消| X[取消操作]
|
||||||
|
|
||||||
|
W --> Y[更新按钮状态]
|
||||||
|
|
||||||
|
F --> Z[输入查询条件]
|
||||||
|
|
||||||
|
Z --> AA[筛选表格数据]
|
||||||
|
|
||||||
|
K --> AB{房间号重复校验}
|
||||||
|
|
||||||
|
AB -->|不重复| AC[提示房间号已存在]
|
||||||
|
|
||||||
|
AB -->|重复| AD[更新按钮状态]
|
||||||
|
```
|
||||||
|
|
||||||
|
### 二、整体布局分析
|
||||||
|
|
||||||
|
**页面宽度**:自适应布局
|
||||||
|
**主要区域划分**:
|
||||||
|
|
||||||
|
1. 页头区域(15%高度)
|
||||||
|
2. 表格展示区(85%高度)
|
||||||
|
**布局特点**:上下布局,表格采用固定表头+滚动内容区设计
|
||||||
|
**响应式要求**:移动端适配时改为纵向堆叠布局,操作按钮组变为纵向排列
|
||||||
|
|
||||||
|
### 三、页面区域详细描述
|
||||||
|
|
||||||
|
#### 1. 页头区域
|
||||||
|
|
||||||
|
**区域位置**:页面顶部
|
||||||
|
**区域尺寸**:高度60px,宽度100%
|
||||||
|
**区域功能**:展示标题和主要操作入口
|
||||||
|
**包含元素**:
|
||||||
|
|
||||||
|
- **标题文本**
|
||||||
|
- 元素类型:H1标题
|
||||||
|
- 显示内容:"手术室列表"
|
||||||
|
- 样式特征:1.75rem/600字重,深灰色(#333)
|
||||||
|
- **新增按钮**
|
||||||
|
- 元素类型:主要操作按钮
|
||||||
|
- 显示内容:"新增"(带+图标)
|
||||||
|
- 交互行为:点击触发新增模态框
|
||||||
|
- 样式特征:蓝色背景(#5a7cff),白色文字,8px圆角,悬停上浮1px
|
||||||
|
|
||||||
|
#### 2. 表格展示区(手术室列表表格)
|
||||||
|
|
||||||
|
**区域位置**:页头下方
|
||||||
|
**区域尺寸**:高度自适应,宽度100%
|
||||||
|
**区域功能**:展示手术室数据并支持行级操作
|
||||||
|
**包含元素**:
|
||||||
|
|
||||||
|
- **数据表格**
|
||||||
|
- 展示方式:固定表头表格
|
||||||
|
- 数据字段:
|
||||||
|
- 房间号:文本 - OR01 - 不可操作
|
||||||
|
- 手术室名称:文本 - 第一手术室 - 不可操作
|
||||||
|
- 类型:文本 - 普通/日间/复合 - 不可操作
|
||||||
|
- 所属科室:文本 - 外科 - 不可操作
|
||||||
|
- 状态:标签 - 有效/无效 - 通过操作按钮切换
|
||||||
|
- 操作功能:每行包含"修改"和"状态切换(停用-黄色/启用-绿色)"按钮
|
||||||
|
- **表格样式**:
|
||||||
|
- 表头:浅灰色背景(#f8f9fa),大写字母,14px字号
|
||||||
|
- 行悬停:浅灰色背景(#f8f9fa)
|
||||||
|
- 状态标签:
|
||||||
|
- 有效:绿色背景+文字(#28a745)
|
||||||
|
- 无效:灰色背景+文字(#6c757d)
|
||||||
|
|
||||||
|
#### 3. 新增手术室弹窗
|
||||||
|
|
||||||
|
**区域位置**:页面居中模态弹窗
|
||||||
|
**区域功能**:收集新增手术室所需信息
|
||||||
|
**包含元素**:
|
||||||
|
|
||||||
|
- 表单字段:
|
||||||
|
1. 房间号输入框
|
||||||
|
2. 类型:文本输入
|
||||||
|
3. 必填:是
|
||||||
|
4. 示例值:OR04
|
||||||
|
5. 校验规则:非空校验
|
||||||
|
6. 手术室名称输入框
|
||||||
|
- 类型:文本输入
|
||||||
|
- 必填:是
|
||||||
|
- 示例值:第四手术室
|
||||||
|
1. 手术室类型下拉框
|
||||||
|
- 类型:单选下拉
|
||||||
|
- 选项:普通/日间/复合/特殊
|
||||||
|
- 默认值:普通
|
||||||
|
1. 所属科室下拉框
|
||||||
|
- 类型:单选下拉
|
||||||
|
- 必填:是
|
||||||
|
- 选项:外科/妇产科等8个科室
|
||||||
|
- 默认提示:"请选择科室"
|
||||||
|
- 操作按钮:
|
||||||
|
- 取消按钮(灰色边框)
|
||||||
|
- 确认按钮(蓝色填充)
|
||||||
|
- 校验逻辑:必填字段非空校验
|
||||||
|
- 成功反馈:提示"手术室添加成功"
|
||||||
|
- 失败反馈:提示"请填写所有必填项"
|
||||||
|
|
||||||
|
#### 4. 编辑手术室弹窗
|
||||||
|
|
||||||
|
**区域位置**:页面居中模态弹窗
|
||||||
|
**区域功能**:修改现有手术室信息
|
||||||
|
**包含元素**:
|
||||||
|
|
||||||
|
- 表单字段(同新增弹窗,带初始值)
|
||||||
|
- 操作按钮:
|
||||||
|
- 取消按钮
|
||||||
|
- 保存按钮
|
||||||
|
- 校验逻辑:同新增弹窗
|
||||||
|
- 成功反馈:提示"手术室信息已更新"
|
||||||
|
|
||||||
|
### 四、交互功能详细说明
|
||||||
|
|
||||||
|
#### 1. 新增手术室
|
||||||
|
|
||||||
|
**功能描述**:添加新的手术室记录
|
||||||
|
**触发条件**:点击页头"新增"按钮
|
||||||
|
**操作流程**:
|
||||||
|
|
||||||
|
1. 打开新增模态框
|
||||||
|
2. 填写必填字段(房间号、名称、科室)
|
||||||
|
3. 点击确认提交(插入his_or_room表)
|
||||||
|
4. 表格末尾新增数据行
|
||||||
|
**异常处理**:
|
||||||
|
- 必填项为空时弹出"请填写所有必填项"提示
|
||||||
|
- 房间号重复需在后端校验并提示
|
||||||
|
|
||||||
|
#### 2. 编辑手术室
|
||||||
|
|
||||||
|
**功能描述**:修改现有手术室信息
|
||||||
|
**触发条件**:点击行内"修改"按钮
|
||||||
|
**操作流程**:
|
||||||
|
|
||||||
|
1. 打开编辑模态框(自动填充当前行数据)
|
||||||
|
2. 用户修改数据
|
||||||
|
3. 点击"保存"时校验并更新对应行数据
|
||||||
|
**状态保持**:记录当前编辑行索引确保数据更新准确
|
||||||
|
|
||||||
|
#### 3. 状态切换
|
||||||
|
|
||||||
|
**功能描述**:启用/停用手术室
|
||||||
|
**触发条件**:点击"停用"或"启用"按钮
|
||||||
|
**操作流程**:
|
||||||
|
|
||||||
|
1. 弹出二次确认对话框
|
||||||
|
2. 用户确认后切换状态标签
|
||||||
|
3. 按钮变为相反操作(停用↔启用)
|
||||||
|
4. 、停用手术室
|
||||||
|
- **步骤**:
|
||||||
|
1. 查询需要停用的手术室记录。
|
||||||
|
2. 将 valid_flag 设置为 0(无效)。
|
||||||
|
- **示例**:
|
||||||
|
|
||||||
|
UPDATE his_or_room
|
||||||
|
|
||||||
|
SET valid_flag = '0'
|
||||||
|
|
||||||
|
WHERE room_code = 'OR06';
|
||||||
|
|
||||||
|
5\. 启用手术室
|
||||||
|
|
||||||
|
**步骤**:
|
||||||
|
|
||||||
|
1. 查询需要启用的手术室记录。
|
||||||
|
1. 将 valid_flag 设置为 1(有效)。
|
||||||
|
- **示例**:
|
||||||
|
|
||||||
|
UPDATE his_or_room
|
||||||
|
|
||||||
|
SET valid_flag = '1'
|
||||||
|
|
||||||
|
WHERE room_code = 'OR06';
|
||||||
|
|
||||||
|
**防误操作**:所有状态变更需二次确认
|
||||||
|
|
||||||
|
### 五、数据结构说明(HIS_OR_ROOM手术室字典表)
|
||||||
|
|
||||||
|
| **字段名称** | **数据类型** | **是否为空** | **说明/典型值** | **外键/来源** |
|
||||||
|
|--------------|--------------|--------------|-----------------|-------------------------------|
|
||||||
|
| room_id | VARCHAR(10) | N | 主键 | 自增主键 |
|
||||||
|
| room_code | VARCHAR(10) | N | 手术室房间号 | 自定义编码,如 OR01、OR02 |
|
||||||
|
| room_name | VARCHAR(100) | N | 手术室名称 | 如 "第一手术室"、"第二手术室" |
|
||||||
|
| room_type | VARCHAR(10) | N | 手术室类型 | 普通、日间、复合 |
|
||||||
|
| dept_code | VARCHAR(10) | N | 所属科室 | FK → 科室管理的科室代码 |
|
||||||
|
| valid_flag | CHAR(1) | N | 是否有效 | 1有效,0无效 |
|
||||||
|
| created_time | DATETIME | N | 创建时间 | 默认当前时间 |
|
||||||
|
| updated_time | DATETIME | N | 更新时间 | 默认当前时间,自动更新 |
|
||||||
|
|
||||||
|
### 六、开发实现要点
|
||||||
|
|
||||||
|
**样式规范**:
|
||||||
|
|
||||||
|
- 主色调:#5a7cff(按钮/交互元素)
|
||||||
|
- 辅助色:#7b8a8b(次要文本)
|
||||||
|
- 字体:
|
||||||
|
- 标题:1.75rem/600字重
|
||||||
|
- 正文:0.875rem/400字重
|
||||||
|
- 间距系统:
|
||||||
|
- 卡片内边距:24px
|
||||||
|
- 表单字段间距:16px
|
||||||
|
|
||||||
|
**技术要求**:
|
||||||
|
|
||||||
|
**注意事项**:
|
||||||
|
|
||||||
|
1. 数据安全:
|
||||||
|
- 所有变更操作需记录操作日志
|
||||||
|
- 停用状态的手术室需在前端标记不可预约
|
||||||
|
2. 性能优化:
|
||||||
|
- 表格数据分页加载
|
||||||
|
- 模态框使用懒加载
|
||||||
@@ -61,7 +61,25 @@ public class SysConfigController extends BaseController {
|
|||||||
*/
|
*/
|
||||||
@GetMapping(value = "/configKey/{configKey}")
|
@GetMapping(value = "/configKey/{configKey}")
|
||||||
public AjaxResult getConfigKey(@PathVariable String configKey) {
|
public AjaxResult getConfigKey(@PathVariable String configKey) {
|
||||||
return success(configService.selectConfigByKey(configKey));
|
String configValue = configService.selectConfigByKey(configKey);
|
||||||
|
// 确保即使返回 null 或空字符串,也明确设置 data 字段
|
||||||
|
// 如果 configValue 是 null,转换为空字符串
|
||||||
|
if (configValue == null) {
|
||||||
|
configValue = "";
|
||||||
|
}
|
||||||
|
// 直接创建 AjaxResult 并明确设置 data 字段,确保 data 字段始终存在
|
||||||
|
AjaxResult result = new AjaxResult();
|
||||||
|
result.put("code", 200);
|
||||||
|
result.put("msg", "操作成功");
|
||||||
|
result.put("data", configValue); // 明确设置 data 字段,即使值为空字符串
|
||||||
|
System.out.println("=== getConfigKey 调试信息 ===");
|
||||||
|
System.out.println("configKey: " + configKey);
|
||||||
|
System.out.println("configValue: [" + configValue + "]");
|
||||||
|
System.out.println("result.data: " + result.get("data"));
|
||||||
|
System.out.println("result.msg: " + result.get("msg"));
|
||||||
|
System.out.println("result.code: " + result.get("code"));
|
||||||
|
System.out.println("============================");
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ import com.core.framework.web.service.SysLoginService;
|
|||||||
import com.core.framework.web.service.SysPermissionService;
|
import com.core.framework.web.service.SysPermissionService;
|
||||||
import com.core.framework.web.service.TokenService;
|
import com.core.framework.web.service.TokenService;
|
||||||
import com.core.system.service.ISysMenuService;
|
import com.core.system.service.ISysMenuService;
|
||||||
|
import com.core.system.service.ISysTenantService;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
@@ -39,6 +40,9 @@ public class SysLoginController {
|
|||||||
@Autowired
|
@Autowired
|
||||||
private TokenService tokenService;
|
private TokenService tokenService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private ISysTenantService tenantService;
|
||||||
|
|
||||||
/**已评审
|
/**已评审
|
||||||
* 登录方法
|
* 登录方法
|
||||||
*
|
*
|
||||||
@@ -72,12 +76,22 @@ public class SysLoginController {
|
|||||||
loginUser.setPermissions(permissions);
|
loginUser.setPermissions(permissions);
|
||||||
tokenService.refreshToken(loginUser);
|
tokenService.refreshToken(loginUser);
|
||||||
}
|
}
|
||||||
|
// 获取租户名称
|
||||||
|
String tenantName = null;
|
||||||
|
if (loginUser.getTenantId() != null) {
|
||||||
|
com.core.system.domain.SysTenant tenant = tenantService.getById(loginUser.getTenantId());
|
||||||
|
if (tenant != null) {
|
||||||
|
tenantName = tenant.getTenantName();
|
||||||
|
}
|
||||||
|
}
|
||||||
AjaxResult ajax = AjaxResult.success();
|
AjaxResult ajax = AjaxResult.success();
|
||||||
ajax.put("optionJson", loginUser.getOptionJson());
|
ajax.put("optionJson", loginUser.getOptionJson());
|
||||||
|
ajax.put("optionMap", loginUser.getOptionMap());
|
||||||
ajax.put("practitionerId", String.valueOf(loginUser.getPractitionerId()));
|
ajax.put("practitionerId", String.valueOf(loginUser.getPractitionerId()));
|
||||||
ajax.put("user", user);
|
ajax.put("user", user);
|
||||||
ajax.put("roles", roles);
|
ajax.put("roles", roles);
|
||||||
ajax.put("permissions", permissions);
|
ajax.put("permissions", permissions);
|
||||||
|
ajax.put("tenantName", tenantName);
|
||||||
return ajax;
|
return ajax;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3,9 +3,12 @@ package com.core.web.controller.system;
|
|||||||
import com.core.common.annotation.Log;
|
import com.core.common.annotation.Log;
|
||||||
import com.core.common.core.controller.BaseController;
|
import com.core.common.core.controller.BaseController;
|
||||||
import com.core.common.core.domain.AjaxResult;
|
import com.core.common.core.domain.AjaxResult;
|
||||||
|
import com.core.common.core.domain.entity.SysUser;
|
||||||
|
import com.core.common.core.domain.model.LoginUser;
|
||||||
import com.core.common.core.page.TableDataInfo;
|
import com.core.common.core.page.TableDataInfo;
|
||||||
import com.core.common.enums.BusinessType;
|
import com.core.common.enums.BusinessType;
|
||||||
import com.core.system.domain.SysNotice;
|
import com.core.system.domain.SysNotice;
|
||||||
|
import com.core.system.service.ISysNoticeReadService;
|
||||||
import com.core.system.service.ISysNoticeService;
|
import com.core.system.service.ISysNoticeService;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.security.access.prepost.PreAuthorize;
|
import org.springframework.security.access.prepost.PreAuthorize;
|
||||||
@@ -25,6 +28,9 @@ public class SysNoticeController extends BaseController {
|
|||||||
@Autowired
|
@Autowired
|
||||||
private ISysNoticeService noticeService;
|
private ISysNoticeService noticeService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private ISysNoticeReadService noticeReadService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取通知公告列表
|
* 获取通知公告列表
|
||||||
*/
|
*/
|
||||||
@@ -36,6 +42,108 @@ public class SysNoticeController extends BaseController {
|
|||||||
return getDataTable(list);
|
return getDataTable(list);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取当前用户的公告列表(公开接口)
|
||||||
|
* 公告类型:通常 noticeType = '1' 代表通知,noticeType = '2' 代表公告
|
||||||
|
*/
|
||||||
|
@GetMapping("/public/list")
|
||||||
|
public TableDataInfo getPublicList(SysNotice notice) {
|
||||||
|
// 只查询状态为正常(0)且已发布(1)的公告
|
||||||
|
notice.setStatus("0");
|
||||||
|
notice.setPublishStatus("1");
|
||||||
|
// 公告类型设置为 '2'(公告)
|
||||||
|
notice.setNoticeType("2");
|
||||||
|
// 设置分页参数
|
||||||
|
startPage();
|
||||||
|
List<SysNotice> list = noticeService.selectNoticeList(notice);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取当前用户的通知列表(公开接口)
|
||||||
|
* 通知类型:通常 noticeType = '1' 代表通知,noticeType = '2' 代表公告
|
||||||
|
* 返回已发布且状态正常的所有公告和通知,并标注已读状态
|
||||||
|
* 按优先级排序,高优先级在前
|
||||||
|
*/
|
||||||
|
@GetMapping("/public/notice")
|
||||||
|
public AjaxResult getUserNotices() {
|
||||||
|
// 获取当前用户信息
|
||||||
|
LoginUser loginUser = getLoginUser();
|
||||||
|
SysUser currentUser = loginUser.getUser();
|
||||||
|
|
||||||
|
// 查询已发布且状态正常的所有公告和通知
|
||||||
|
SysNotice notice = new SysNotice();
|
||||||
|
notice.setStatus("0");
|
||||||
|
notice.setPublishStatus("1");
|
||||||
|
|
||||||
|
List<SysNotice> list = noticeService.selectNoticeList(notice);
|
||||||
|
|
||||||
|
// 按优先级排序(1高 2中 3低),相同优先级按创建时间降序
|
||||||
|
list.sort((a, b) -> {
|
||||||
|
String priorityA = a.getPriority() != null ? a.getPriority() : "3";
|
||||||
|
String priorityB = b.getPriority() != null ? b.getPriority() : "3";
|
||||||
|
int priorityCompare = priorityA.compareTo(priorityB);
|
||||||
|
if (priorityCompare != 0) {
|
||||||
|
return priorityCompare;
|
||||||
|
}
|
||||||
|
// 相同优先级,按创建时间降序
|
||||||
|
return b.getCreateTime().compareTo(a.getCreateTime());
|
||||||
|
});
|
||||||
|
|
||||||
|
// 获取用户已读的公告/通知ID列表
|
||||||
|
List<Long> readIds = noticeReadService.selectReadNoticeIdsByUserId(currentUser.getUserId());
|
||||||
|
|
||||||
|
// 为每个公告/通知添加已读状态
|
||||||
|
for (SysNotice item : list) {
|
||||||
|
boolean isRead = readIds.contains(item.getNoticeId());
|
||||||
|
item.setIsRead(isRead);
|
||||||
|
}
|
||||||
|
|
||||||
|
return success(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取用户未读公告/通知数量(公开接口)
|
||||||
|
*/
|
||||||
|
@GetMapping("/public/unread/count")
|
||||||
|
public AjaxResult getUnreadCount() {
|
||||||
|
LoginUser loginUser = getLoginUser();
|
||||||
|
SysUser currentUser = loginUser.getUser();
|
||||||
|
int count = noticeReadService.getUnreadCount(currentUser.getUserId());
|
||||||
|
return success(count);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 标记公告/通知为已读(公开接口)
|
||||||
|
*/
|
||||||
|
@PostMapping("/public/read/{noticeId}")
|
||||||
|
public AjaxResult markAsRead(@PathVariable Long noticeId) {
|
||||||
|
LoginUser loginUser = getLoginUser();
|
||||||
|
SysUser currentUser = loginUser.getUser();
|
||||||
|
return noticeReadService.markAsRead(noticeId, currentUser.getUserId());
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量标记公告/通知为已读(公开接口)
|
||||||
|
*/
|
||||||
|
@PostMapping("/public/read/all")
|
||||||
|
public AjaxResult markAllAsRead(@RequestBody Long[] noticeIds) {
|
||||||
|
LoginUser loginUser = getLoginUser();
|
||||||
|
SysUser currentUser = loginUser.getUser();
|
||||||
|
return noticeReadService.markAllAsRead(noticeIds, currentUser.getUserId());
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取用户已读公告/通知ID列表(公开接口)
|
||||||
|
*/
|
||||||
|
@GetMapping("/public/read/ids")
|
||||||
|
public AjaxResult getReadNoticeIds() {
|
||||||
|
LoginUser loginUser = getLoginUser();
|
||||||
|
SysUser currentUser = loginUser.getUser();
|
||||||
|
List<Long> readIds = noticeReadService.selectReadNoticeIdsByUserId(currentUser.getUserId());
|
||||||
|
return success(readIds);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据通知公告编号获取详细信息
|
* 根据通知公告编号获取详细信息
|
||||||
*/
|
*/
|
||||||
@@ -53,6 +161,14 @@ public class SysNoticeController extends BaseController {
|
|||||||
@PostMapping
|
@PostMapping
|
||||||
public AjaxResult add(@Validated @RequestBody SysNotice notice) {
|
public AjaxResult add(@Validated @RequestBody SysNotice notice) {
|
||||||
notice.setCreateBy(getUsername());
|
notice.setCreateBy(getUsername());
|
||||||
|
// 新建的公告默认为未发布状态
|
||||||
|
if (notice.getPublishStatus() == null || notice.getPublishStatus().isEmpty()) {
|
||||||
|
notice.setPublishStatus("0");
|
||||||
|
}
|
||||||
|
// 设置默认优先级为中(2)
|
||||||
|
if (notice.getPriority() == null || notice.getPriority().isEmpty()) {
|
||||||
|
notice.setPriority("2");
|
||||||
|
}
|
||||||
return toAjax(noticeService.insertNotice(notice));
|
return toAjax(noticeService.insertNotice(notice));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -76,4 +192,42 @@ public class SysNoticeController extends BaseController {
|
|||||||
public AjaxResult remove(@PathVariable Long[] noticeIds) {
|
public AjaxResult remove(@PathVariable Long[] noticeIds) {
|
||||||
return toAjax(noticeService.deleteNoticeByIds(noticeIds));
|
return toAjax(noticeService.deleteNoticeByIds(noticeIds));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 发布公告/通知
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('system:notice:edit')")
|
||||||
|
@Log(title = "发布公告", businessType = BusinessType.UPDATE)
|
||||||
|
@PutMapping("/publish/{noticeId}")
|
||||||
|
public AjaxResult publish(@PathVariable Long noticeId) {
|
||||||
|
SysNotice notice = noticeService.selectNoticeById(noticeId);
|
||||||
|
if (notice == null) {
|
||||||
|
return error("公告不存在");
|
||||||
|
}
|
||||||
|
if ("1".equals(notice.getPublishStatus())) {
|
||||||
|
return error("该公告已发布");
|
||||||
|
}
|
||||||
|
notice.setPublishStatus("1");
|
||||||
|
notice.setUpdateBy(getUsername());
|
||||||
|
return toAjax(noticeService.updateNotice(notice));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 取消发布公告/通知
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('system:notice:edit')")
|
||||||
|
@Log(title = "取消发布", businessType = BusinessType.UPDATE)
|
||||||
|
@PutMapping("/unpublish/{noticeId}")
|
||||||
|
public AjaxResult unpublish(@PathVariable Long noticeId) {
|
||||||
|
SysNotice notice = noticeService.selectNoticeById(noticeId);
|
||||||
|
if (notice == null) {
|
||||||
|
return error("公告不存在");
|
||||||
|
}
|
||||||
|
if ("0".equals(notice.getPublishStatus())) {
|
||||||
|
return error("该公告未发布");
|
||||||
|
}
|
||||||
|
notice.setPublishStatus("0");
|
||||||
|
notice.setUpdateBy(getUsername());
|
||||||
|
return toAjax(noticeService.updateNotice(notice));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -76,6 +76,25 @@ public class SecurityUtils {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 安全获取用户名(失败时返回默认值)
|
||||||
|
**/
|
||||||
|
public static String getUsernameSafe() {
|
||||||
|
try {
|
||||||
|
Authentication authentication = getAuthentication();
|
||||||
|
if (authentication != null && authentication.getPrincipal() != null) {
|
||||||
|
if (authentication.getPrincipal() instanceof LoginUser) {
|
||||||
|
return ((LoginUser) authentication.getPrincipal()).getUsername();
|
||||||
|
} else {
|
||||||
|
return authentication.getPrincipal().toString();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
// 静默处理异常,返回默认值
|
||||||
|
}
|
||||||
|
return "anonymous";
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取Authentication
|
* 获取Authentication
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -1,12 +1,10 @@
|
|||||||
package com.core.flowable.common.expand.el;
|
package com.core.flowable.common.expand.el;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import com.core.system.service.ISysDeptService;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
import com.core.system.service.ISysDeptService;
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
import lombok.extern.slf4j.Slf4j;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 扩展表达式
|
* 扩展表达式
|
||||||
|
|||||||
@@ -1,22 +1,5 @@
|
|||||||
package com.core.flowable.controller;
|
package com.core.flowable.controller;
|
||||||
|
|
||||||
import java.awt.image.BufferedImage;
|
|
||||||
import java.io.ByteArrayInputStream;
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.io.InputStream;
|
|
||||||
import java.io.OutputStream;
|
|
||||||
import java.nio.charset.StandardCharsets;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
|
||||||
import javax.imageio.ImageIO;
|
|
||||||
import javax.servlet.http.HttpServletResponse;
|
|
||||||
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.web.bind.annotation.*;
|
|
||||||
import org.springframework.web.multipart.MultipartFile;
|
|
||||||
|
|
||||||
import com.core.common.annotation.Log;
|
import com.core.common.annotation.Log;
|
||||||
import com.core.common.core.controller.BaseController;
|
import com.core.common.core.controller.BaseController;
|
||||||
import com.core.common.core.domain.AjaxResult;
|
import com.core.common.core.domain.AjaxResult;
|
||||||
@@ -30,11 +13,25 @@ import com.core.system.domain.SysExpression;
|
|||||||
import com.core.system.service.ISysExpressionService;
|
import com.core.system.service.ISysExpressionService;
|
||||||
import com.core.system.service.ISysRoleService;
|
import com.core.system.service.ISysRoleService;
|
||||||
import com.core.system.service.ISysUserService;
|
import com.core.system.service.ISysUserService;
|
||||||
|
|
||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
import io.swagger.annotations.ApiParam;
|
import io.swagger.annotations.ApiParam;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
import org.springframework.web.multipart.MultipartFile;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
import javax.imageio.ImageIO;
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
import java.awt.image.BufferedImage;
|
||||||
|
import java.io.ByteArrayInputStream;
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.io.InputStream;
|
||||||
|
import java.io.OutputStream;
|
||||||
|
import java.nio.charset.StandardCharsets;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>
|
* <p>
|
||||||
|
|||||||
@@ -1,21 +1,19 @@
|
|||||||
package com.core.flowable.controller;
|
package com.core.flowable.controller;
|
||||||
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.web.bind.annotation.*;
|
|
||||||
|
|
||||||
import com.core.common.annotation.Log;
|
import com.core.common.annotation.Log;
|
||||||
import com.core.common.core.controller.BaseController;
|
import com.core.common.core.controller.BaseController;
|
||||||
import com.core.common.core.domain.AjaxResult;
|
import com.core.common.core.domain.AjaxResult;
|
||||||
import com.core.common.enums.BusinessType;
|
import com.core.common.enums.BusinessType;
|
||||||
import com.core.flowable.domain.vo.FlowTaskVo;
|
import com.core.flowable.domain.vo.FlowTaskVo;
|
||||||
import com.core.flowable.service.IFlowInstanceService;
|
import com.core.flowable.service.IFlowInstanceService;
|
||||||
|
|
||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
import io.swagger.annotations.ApiParam;
|
import io.swagger.annotations.ApiParam;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>
|
* <p>
|
||||||
|
|||||||
@@ -1,16 +1,5 @@
|
|||||||
package com.core.flowable.controller;
|
package com.core.flowable.controller;
|
||||||
|
|
||||||
import java.awt.image.BufferedImage;
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.io.InputStream;
|
|
||||||
import java.io.OutputStream;
|
|
||||||
|
|
||||||
import javax.imageio.ImageIO;
|
|
||||||
import javax.servlet.http.HttpServletResponse;
|
|
||||||
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.web.bind.annotation.*;
|
|
||||||
|
|
||||||
import com.core.common.annotation.Log;
|
import com.core.common.annotation.Log;
|
||||||
import com.core.common.core.controller.BaseController;
|
import com.core.common.core.controller.BaseController;
|
||||||
import com.core.common.core.domain.AjaxResult;
|
import com.core.common.core.domain.AjaxResult;
|
||||||
@@ -19,11 +8,19 @@ import com.core.flowable.domain.dto.FlowTaskDto;
|
|||||||
import com.core.flowable.domain.vo.FlowQueryVo;
|
import com.core.flowable.domain.vo.FlowQueryVo;
|
||||||
import com.core.flowable.domain.vo.FlowTaskVo;
|
import com.core.flowable.domain.vo.FlowTaskVo;
|
||||||
import com.core.flowable.service.IFlowTaskService;
|
import com.core.flowable.service.IFlowTaskService;
|
||||||
|
|
||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
import io.swagger.annotations.ApiParam;
|
import io.swagger.annotations.ApiParam;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import javax.imageio.ImageIO;
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
import java.awt.image.BufferedImage;
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.io.InputStream;
|
||||||
|
import java.io.OutputStream;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>
|
* <p>
|
||||||
|
|||||||
@@ -1,13 +1,5 @@
|
|||||||
package com.core.flowable.controller;
|
package com.core.flowable.controller;
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import javax.servlet.http.HttpServletResponse;
|
|
||||||
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.security.access.prepost.PreAuthorize;
|
|
||||||
import org.springframework.web.bind.annotation.*;
|
|
||||||
|
|
||||||
import com.core.common.annotation.Log;
|
import com.core.common.annotation.Log;
|
||||||
import com.core.common.core.controller.BaseController;
|
import com.core.common.core.controller.BaseController;
|
||||||
import com.core.common.core.domain.AjaxResult;
|
import com.core.common.core.domain.AjaxResult;
|
||||||
@@ -16,6 +8,12 @@ import com.core.common.enums.BusinessType;
|
|||||||
import com.core.common.utils.poi.ExcelUtil;
|
import com.core.common.utils.poi.ExcelUtil;
|
||||||
import com.core.system.domain.SysExpression;
|
import com.core.system.domain.SysExpression;
|
||||||
import com.core.system.service.ISysExpressionService;
|
import com.core.system.service.ISysExpressionService;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.security.access.prepost.PreAuthorize;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 流程达式Controller
|
* 流程达式Controller
|
||||||
|
|||||||
@@ -1,11 +1,5 @@
|
|||||||
package com.core.flowable.controller;
|
package com.core.flowable.controller;
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.security.access.prepost.PreAuthorize;
|
|
||||||
import org.springframework.web.bind.annotation.*;
|
|
||||||
|
|
||||||
import com.core.common.annotation.Log;
|
import com.core.common.annotation.Log;
|
||||||
import com.core.common.core.controller.BaseController;
|
import com.core.common.core.controller.BaseController;
|
||||||
import com.core.common.core.domain.AjaxResult;
|
import com.core.common.core.domain.AjaxResult;
|
||||||
@@ -16,6 +10,11 @@ import com.core.flowable.service.ISysDeployFormService;
|
|||||||
import com.core.flowable.service.ISysFormService;
|
import com.core.flowable.service.ISysFormService;
|
||||||
import com.core.system.domain.SysDeployForm;
|
import com.core.system.domain.SysDeployForm;
|
||||||
import com.core.system.domain.SysForm;
|
import com.core.system.domain.SysForm;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.security.access.prepost.PreAuthorize;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 流程表单Controller
|
* 流程表单Controller
|
||||||
|
|||||||
@@ -1,13 +1,5 @@
|
|||||||
package com.core.flowable.controller;
|
package com.core.flowable.controller;
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import javax.servlet.http.HttpServletResponse;
|
|
||||||
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.security.access.prepost.PreAuthorize;
|
|
||||||
import org.springframework.web.bind.annotation.*;
|
|
||||||
|
|
||||||
import com.core.common.annotation.Log;
|
import com.core.common.annotation.Log;
|
||||||
import com.core.common.core.controller.BaseController;
|
import com.core.common.core.controller.BaseController;
|
||||||
import com.core.common.core.domain.AjaxResult;
|
import com.core.common.core.domain.AjaxResult;
|
||||||
@@ -16,6 +8,12 @@ import com.core.common.enums.BusinessType;
|
|||||||
import com.core.common.utils.poi.ExcelUtil;
|
import com.core.common.utils.poi.ExcelUtil;
|
||||||
import com.core.system.domain.SysListener;
|
import com.core.system.domain.SysListener;
|
||||||
import com.core.system.service.ISysListenerService;
|
import com.core.system.service.ISysListenerService;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.security.access.prepost.PreAuthorize;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 流程监听Controller
|
* 流程监听Controller
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
package com.core.flowable.domain.dto;
|
package com.core.flowable.domain.dto;
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
|
|
||||||
import lombok.Builder;
|
import lombok.Builder;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author system
|
* @author system
|
||||||
* @date 2021/3/28 15:50
|
* @date 2021/3/28 15:50
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
package com.core.flowable.domain.dto;
|
package com.core.flowable.domain.dto;
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author system
|
* @author system
|
||||||
* @date 2021/3/31 23:20
|
* @date 2021/3/31 23:20
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
package com.core.flowable.domain.dto;
|
package com.core.flowable.domain.dto;
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 动态人员、组
|
* 动态人员、组
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
package com.core.flowable.domain.dto;
|
package com.core.flowable.domain.dto;
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author system
|
* @author system
|
||||||
* @date 2021/3/28 19:48
|
* @date 2021/3/28 19:48
|
||||||
|
|||||||
@@ -1,15 +1,14 @@
|
|||||||
package com.core.flowable.domain.dto;
|
package com.core.flowable.domain.dto;
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.util.Date;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.Setter;
|
import lombok.Setter;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>
|
* <p>
|
||||||
* 工作流任务
|
* 工作流任务
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
package com.core.flowable.domain.dto;
|
package com.core.flowable.domain.dto;
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author system
|
* @author system
|
||||||
* @date 2021/4/21 20:55
|
* @date 2021/4/21 20:55
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
package com.core.flowable.domain.vo;
|
package com.core.flowable.domain.vo;
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>
|
* <p>
|
||||||
* 流程任务
|
* 流程任务
|
||||||
|
|||||||
@@ -1,12 +1,11 @@
|
|||||||
package com.core.flowable.factory;
|
package com.core.flowable.factory;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import lombok.Getter;
|
||||||
|
|
||||||
import org.flowable.engine.*;
|
import org.flowable.engine.*;
|
||||||
import org.springframework.beans.factory.annotation.Qualifier;
|
import org.springframework.beans.factory.annotation.Qualifier;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
import lombok.Getter;
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* flowable 引擎注入封装
|
* flowable 引擎注入封装
|
||||||
|
|||||||
@@ -1,5 +1,11 @@
|
|||||||
package com.core.flowable.flow;
|
package com.core.flowable.flow;
|
||||||
|
|
||||||
|
import org.flowable.bpmn.model.AssociationDirection;
|
||||||
|
import org.flowable.bpmn.model.GraphicInfo;
|
||||||
|
import org.flowable.image.impl.DefaultProcessDiagramCanvas;
|
||||||
|
import org.flowable.image.util.ReflectUtil;
|
||||||
|
|
||||||
|
import javax.imageio.ImageIO;
|
||||||
import java.awt.*;
|
import java.awt.*;
|
||||||
import java.awt.font.FontRenderContext;
|
import java.awt.font.FontRenderContext;
|
||||||
import java.awt.font.LineBreakMeasurer;
|
import java.awt.font.LineBreakMeasurer;
|
||||||
@@ -13,13 +19,6 @@ import java.io.IOException;
|
|||||||
import java.text.AttributedCharacterIterator;
|
import java.text.AttributedCharacterIterator;
|
||||||
import java.text.AttributedString;
|
import java.text.AttributedString;
|
||||||
|
|
||||||
import javax.imageio.ImageIO;
|
|
||||||
|
|
||||||
import org.flowable.bpmn.model.AssociationDirection;
|
|
||||||
import org.flowable.bpmn.model.GraphicInfo;
|
|
||||||
import org.flowable.image.impl.DefaultProcessDiagramCanvas;
|
|
||||||
import org.flowable.image.util.ReflectUtil;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author system
|
* @author system
|
||||||
* @date 2021/4/4 23:58
|
* @date 2021/4/4 23:58
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
package com.core.flowable.flow;
|
package com.core.flowable.flow;
|
||||||
|
|
||||||
import java.util.Iterator;
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import org.flowable.bpmn.model.*;
|
import org.flowable.bpmn.model.*;
|
||||||
import org.flowable.bpmn.model.Process;
|
import org.flowable.bpmn.model.Process;
|
||||||
import org.flowable.image.impl.DefaultProcessDiagramCanvas;
|
import org.flowable.image.impl.DefaultProcessDiagramCanvas;
|
||||||
import org.flowable.image.impl.DefaultProcessDiagramGenerator;
|
import org.flowable.image.impl.DefaultProcessDiagramGenerator;
|
||||||
|
|
||||||
|
import java.util.Iterator;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author system
|
* @author system
|
||||||
* @date 2021/4/5 0:31
|
* @date 2021/4/5 0:31
|
||||||
|
|||||||
@@ -1,17 +1,16 @@
|
|||||||
package com.core.flowable.flow;
|
package com.core.flowable.flow;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import com.googlecode.aviator.AviatorEvaluator;
|
||||||
import java.util.Collection;
|
import com.googlecode.aviator.Expression;
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
import org.flowable.bpmn.model.*;
|
import org.flowable.bpmn.model.*;
|
||||||
import org.flowable.bpmn.model.Process;
|
import org.flowable.bpmn.model.Process;
|
||||||
import org.flowable.engine.RepositoryService;
|
import org.flowable.engine.RepositoryService;
|
||||||
import org.flowable.engine.repository.ProcessDefinition;
|
import org.flowable.engine.repository.ProcessDefinition;
|
||||||
|
|
||||||
import com.googlecode.aviator.AviatorEvaluator;
|
import java.util.ArrayList;
|
||||||
import com.googlecode.aviator.Expression;
|
import java.util.Collection;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author system
|
* @author system
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
package com.core.flowable.flow;
|
package com.core.flowable.flow;
|
||||||
|
|
||||||
import java.util.*;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import java.util.stream.Collectors;
|
|
||||||
|
|
||||||
import org.flowable.bpmn.model.*;
|
import org.flowable.bpmn.model.*;
|
||||||
import org.flowable.engine.RepositoryService;
|
import org.flowable.engine.RepositoryService;
|
||||||
import org.flowable.engine.impl.bpmn.behavior.ParallelMultiInstanceBehavior;
|
import org.flowable.engine.impl.bpmn.behavior.ParallelMultiInstanceBehavior;
|
||||||
@@ -10,7 +8,8 @@ import org.flowable.engine.impl.bpmn.behavior.SequentialMultiInstanceBehavior;
|
|||||||
import org.flowable.engine.repository.ProcessDefinition;
|
import org.flowable.engine.repository.ProcessDefinition;
|
||||||
import org.flowable.task.api.history.HistoricTaskInstance;
|
import org.flowable.task.api.history.HistoricTaskInstance;
|
||||||
|
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import java.util.*;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author system
|
* @author system
|
||||||
|
|||||||
@@ -1,12 +1,11 @@
|
|||||||
package com.core.flowable.listener;
|
package com.core.flowable.listener;
|
||||||
|
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.flowable.common.engine.api.delegate.Expression;
|
import org.flowable.common.engine.api.delegate.Expression;
|
||||||
import org.flowable.engine.delegate.DelegateExecution;
|
import org.flowable.engine.delegate.DelegateExecution;
|
||||||
import org.flowable.engine.delegate.ExecutionListener;
|
import org.flowable.engine.delegate.ExecutionListener;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
import lombok.extern.slf4j.Slf4j;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 执行监听器
|
* 执行监听器
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1,11 +1,10 @@
|
|||||||
package com.core.flowable.listener;
|
package com.core.flowable.listener;
|
||||||
|
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.flowable.engine.delegate.TaskListener;
|
import org.flowable.engine.delegate.TaskListener;
|
||||||
import org.flowable.task.service.delegate.DelegateTask;
|
import org.flowable.task.service.delegate.DelegateTask;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
import lombok.extern.slf4j.Slf4j;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 任务监听器
|
* 任务监听器
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
package com.core.flowable.service;
|
package com.core.flowable.service;
|
||||||
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.io.InputStream;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
import com.core.common.core.domain.AjaxResult;
|
import com.core.common.core.domain.AjaxResult;
|
||||||
import com.core.system.domain.FlowProcDefDto;
|
import com.core.system.domain.FlowProcDefDto;
|
||||||
|
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.io.InputStream;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author system
|
* @author system
|
||||||
* @date 2021-04-03 14:41
|
* @date 2021-04-03 14:41
|
||||||
|
|||||||
@@ -1,11 +1,10 @@
|
|||||||
package com.core.flowable.service;
|
package com.core.flowable.service;
|
||||||
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
import org.flowable.engine.history.HistoricProcessInstance;
|
|
||||||
|
|
||||||
import com.core.common.core.domain.AjaxResult;
|
import com.core.common.core.domain.AjaxResult;
|
||||||
import com.core.flowable.domain.vo.FlowTaskVo;
|
import com.core.flowable.domain.vo.FlowTaskVo;
|
||||||
|
import org.flowable.engine.history.HistoricProcessInstance;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author system
|
* @author system
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
package com.core.flowable.service;
|
package com.core.flowable.service;
|
||||||
|
|
||||||
import java.io.InputStream;
|
|
||||||
|
|
||||||
import com.core.common.core.domain.AjaxResult;
|
import com.core.common.core.domain.AjaxResult;
|
||||||
import com.core.flowable.domain.vo.FlowQueryVo;
|
import com.core.flowable.domain.vo.FlowQueryVo;
|
||||||
import com.core.flowable.domain.vo.FlowTaskVo;
|
import com.core.flowable.domain.vo.FlowTaskVo;
|
||||||
|
|
||||||
|
import java.io.InputStream;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author system
|
* @author system
|
||||||
* @date 2021-04-03 14:42
|
* @date 2021-04-03 14:42
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
package com.core.flowable.service;
|
package com.core.flowable.service;
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import com.core.system.domain.SysDeployForm;
|
import com.core.system.domain.SysDeployForm;
|
||||||
import com.core.system.domain.SysForm;
|
import com.core.system.domain.SysForm;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 流程实例关联表单Service接口
|
* 流程实例关联表单Service接口
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
package com.core.flowable.service;
|
package com.core.flowable.service;
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import com.core.system.domain.SysForm;
|
import com.core.system.domain.SysForm;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 表单
|
* 表单
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1,25 +1,5 @@
|
|||||||
package com.core.flowable.service.impl;
|
package com.core.flowable.service.impl;
|
||||||
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.io.InputStream;
|
|
||||||
import java.nio.charset.StandardCharsets;
|
|
||||||
import java.util.Collections;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
import java.util.Objects;
|
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
|
||||||
|
|
||||||
import org.apache.commons.io.IOUtils;
|
|
||||||
import org.flowable.bpmn.model.BpmnModel;
|
|
||||||
import org.flowable.engine.repository.Deployment;
|
|
||||||
import org.flowable.engine.repository.ProcessDefinition;
|
|
||||||
import org.flowable.engine.repository.ProcessDefinitionQuery;
|
|
||||||
import org.flowable.engine.runtime.ProcessInstance;
|
|
||||||
import org.flowable.image.impl.DefaultProcessDiagramGenerator;
|
|
||||||
import org.flowable.task.api.Task;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
import com.core.common.core.domain.AjaxResult;
|
import com.core.common.core.domain.AjaxResult;
|
||||||
import com.core.common.core.domain.entity.SysUser;
|
import com.core.common.core.domain.entity.SysUser;
|
||||||
@@ -37,8 +17,25 @@ import com.core.system.service.ISysDeptService;
|
|||||||
import com.core.system.service.ISysUserService;
|
import com.core.system.service.ISysUserService;
|
||||||
import com.github.pagehelper.PageHelper;
|
import com.github.pagehelper.PageHelper;
|
||||||
import com.github.pagehelper.PageInfo;
|
import com.github.pagehelper.PageInfo;
|
||||||
|
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.apache.commons.io.IOUtils;
|
||||||
|
import org.flowable.bpmn.model.BpmnModel;
|
||||||
|
import org.flowable.engine.repository.Deployment;
|
||||||
|
import org.flowable.engine.repository.ProcessDefinition;
|
||||||
|
import org.flowable.engine.repository.ProcessDefinitionQuery;
|
||||||
|
import org.flowable.engine.runtime.ProcessInstance;
|
||||||
|
import org.flowable.image.impl.DefaultProcessDiagramGenerator;
|
||||||
|
import org.flowable.task.api.Task;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.io.InputStream;
|
||||||
|
import java.nio.charset.StandardCharsets;
|
||||||
|
import java.util.Collections;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.Objects;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 流程定义
|
* 流程定义
|
||||||
|
|||||||
@@ -1,20 +1,18 @@
|
|||||||
package com.core.flowable.service.impl;
|
package com.core.flowable.service.impl;
|
||||||
|
|
||||||
import java.util.Map;
|
|
||||||
import java.util.Objects;
|
|
||||||
|
|
||||||
import org.flowable.common.engine.api.FlowableObjectNotFoundException;
|
|
||||||
import org.flowable.engine.history.HistoricProcessInstance;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
|
||||||
|
|
||||||
import com.core.common.core.domain.AjaxResult;
|
import com.core.common.core.domain.AjaxResult;
|
||||||
import com.core.common.utils.SecurityUtils;
|
import com.core.common.utils.SecurityUtils;
|
||||||
import com.core.flowable.domain.vo.FlowTaskVo;
|
import com.core.flowable.domain.vo.FlowTaskVo;
|
||||||
import com.core.flowable.factory.FlowServiceFactory;
|
import com.core.flowable.factory.FlowServiceFactory;
|
||||||
import com.core.flowable.service.IFlowInstanceService;
|
import com.core.flowable.service.IFlowInstanceService;
|
||||||
|
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.flowable.common.engine.api.FlowableObjectNotFoundException;
|
||||||
|
import org.flowable.engine.history.HistoricProcessInstance;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.Objects;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>
|
* <p>
|
||||||
|
|||||||
@@ -1,43 +1,5 @@
|
|||||||
package com.core.flowable.service.impl;
|
package com.core.flowable.service.impl;
|
||||||
|
|
||||||
import java.io.InputStream;
|
|
||||||
import java.lang.reflect.Field;
|
|
||||||
import java.nio.charset.StandardCharsets;
|
|
||||||
import java.util.*;
|
|
||||||
import java.util.concurrent.ConcurrentHashMap;
|
|
||||||
import java.util.function.Function;
|
|
||||||
import java.util.function.Predicate;
|
|
||||||
import java.util.stream.Collectors;
|
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
|
||||||
|
|
||||||
import org.apache.commons.collections4.CollectionUtils;
|
|
||||||
import org.apache.commons.io.IOUtils;
|
|
||||||
import org.apache.commons.lang3.StringUtils;
|
|
||||||
import org.flowable.bpmn.model.*;
|
|
||||||
import org.flowable.bpmn.model.Process;
|
|
||||||
import org.flowable.common.engine.api.FlowableException;
|
|
||||||
import org.flowable.common.engine.api.FlowableObjectNotFoundException;
|
|
||||||
import org.flowable.engine.ProcessEngineConfiguration;
|
|
||||||
import org.flowable.engine.history.HistoricActivityInstance;
|
|
||||||
import org.flowable.engine.history.HistoricProcessInstance;
|
|
||||||
import org.flowable.engine.history.HistoricProcessInstanceQuery;
|
|
||||||
import org.flowable.engine.impl.cmd.AddMultiInstanceExecutionCmd;
|
|
||||||
import org.flowable.engine.impl.cmd.DeleteMultiInstanceExecutionCmd;
|
|
||||||
import org.flowable.engine.repository.ProcessDefinition;
|
|
||||||
import org.flowable.engine.runtime.Execution;
|
|
||||||
import org.flowable.engine.runtime.ProcessInstance;
|
|
||||||
import org.flowable.engine.task.Comment;
|
|
||||||
import org.flowable.identitylink.api.history.HistoricIdentityLink;
|
|
||||||
import org.flowable.image.ProcessDiagramGenerator;
|
|
||||||
import org.flowable.task.api.DelegationState;
|
|
||||||
import org.flowable.task.api.Task;
|
|
||||||
import org.flowable.task.api.TaskQuery;
|
|
||||||
import org.flowable.task.api.history.HistoricTaskInstance;
|
|
||||||
import org.flowable.task.api.history.HistoricTaskInstanceQuery;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
|
||||||
|
|
||||||
import com.alibaba.fastjson2.JSON;
|
import com.alibaba.fastjson2.JSON;
|
||||||
import com.alibaba.fastjson2.JSONObject;
|
import com.alibaba.fastjson2.JSONObject;
|
||||||
import com.alibaba.fastjson2.TypeReference;
|
import com.alibaba.fastjson2.TypeReference;
|
||||||
@@ -65,8 +27,43 @@ import com.core.flowable.service.ISysFormService;
|
|||||||
import com.core.system.domain.SysForm;
|
import com.core.system.domain.SysForm;
|
||||||
import com.core.system.service.ISysRoleService;
|
import com.core.system.service.ISysRoleService;
|
||||||
import com.core.system.service.ISysUserService;
|
import com.core.system.service.ISysUserService;
|
||||||
|
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.apache.commons.collections4.CollectionUtils;
|
||||||
|
import org.apache.commons.io.IOUtils;
|
||||||
|
import org.apache.commons.lang3.StringUtils;
|
||||||
|
import org.flowable.bpmn.model.*;
|
||||||
|
import org.flowable.bpmn.model.Process;
|
||||||
|
import org.flowable.common.engine.api.FlowableException;
|
||||||
|
import org.flowable.common.engine.api.FlowableObjectNotFoundException;
|
||||||
|
import org.flowable.engine.ProcessEngineConfiguration;
|
||||||
|
import org.flowable.engine.history.HistoricActivityInstance;
|
||||||
|
import org.flowable.engine.history.HistoricProcessInstance;
|
||||||
|
import org.flowable.engine.history.HistoricProcessInstanceQuery;
|
||||||
|
import org.flowable.engine.impl.cmd.AddMultiInstanceExecutionCmd;
|
||||||
|
import org.flowable.engine.impl.cmd.DeleteMultiInstanceExecutionCmd;
|
||||||
|
import org.flowable.engine.repository.ProcessDefinition;
|
||||||
|
import org.flowable.engine.runtime.Execution;
|
||||||
|
import org.flowable.engine.runtime.ProcessInstance;
|
||||||
|
import org.flowable.engine.task.Comment;
|
||||||
|
import org.flowable.identitylink.api.history.HistoricIdentityLink;
|
||||||
|
import org.flowable.image.ProcessDiagramGenerator;
|
||||||
|
import org.flowable.task.api.DelegationState;
|
||||||
|
import org.flowable.task.api.Task;
|
||||||
|
import org.flowable.task.api.TaskQuery;
|
||||||
|
import org.flowable.task.api.history.HistoricTaskInstance;
|
||||||
|
import org.flowable.task.api.history.HistoricTaskInstanceQuery;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
import java.io.InputStream;
|
||||||
|
import java.lang.reflect.Field;
|
||||||
|
import java.nio.charset.StandardCharsets;
|
||||||
|
import java.util.*;
|
||||||
|
import java.util.concurrent.ConcurrentHashMap;
|
||||||
|
import java.util.function.Function;
|
||||||
|
import java.util.function.Predicate;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author system
|
* @author system
|
||||||
|
|||||||
@@ -1,15 +1,14 @@
|
|||||||
package com.core.flowable.service.impl;
|
package com.core.flowable.service.impl;
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Objects;
|
|
||||||
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
|
|
||||||
import com.core.flowable.service.ISysDeployFormService;
|
import com.core.flowable.service.ISysDeployFormService;
|
||||||
import com.core.system.domain.SysDeployForm;
|
import com.core.system.domain.SysDeployForm;
|
||||||
import com.core.system.domain.SysForm;
|
import com.core.system.domain.SysForm;
|
||||||
import com.core.system.mapper.SysDeployFormMapper;
|
import com.core.system.mapper.SysDeployFormMapper;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Objects;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 流程实例关联表单Service业务层处理
|
* 流程实例关联表单Service业务层处理
|
||||||
|
|||||||
@@ -1,14 +1,13 @@
|
|||||||
package com.core.flowable.service.impl;
|
package com.core.flowable.service.impl;
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
|
|
||||||
import com.core.common.utils.DateUtils;
|
import com.core.common.utils.DateUtils;
|
||||||
import com.core.flowable.service.ISysFormService;
|
import com.core.flowable.service.ISysFormService;
|
||||||
import com.core.system.domain.SysForm;
|
import com.core.system.domain.SysForm;
|
||||||
import com.core.system.mapper.SysFormMapper;
|
import com.core.system.mapper.SysFormMapper;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 流程表单Service业务层处理
|
* 流程表单Service业务层处理
|
||||||
|
|||||||
@@ -60,6 +60,17 @@
|
|||||||
<artifactId>core-system</artifactId>
|
<artifactId>core-system</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.core</groupId>
|
||||||
|
<artifactId>core-common</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<!-- JSQLParser - 用于MyBatis Plus -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.github.jsqlparser</groupId>
|
||||||
|
<artifactId>jsqlparser</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
@@ -1,13 +1,5 @@
|
|||||||
package com.core.framework.aspectj;
|
package com.core.framework.aspectj;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import org.aspectj.lang.JoinPoint;
|
|
||||||
import org.aspectj.lang.annotation.Aspect;
|
|
||||||
import org.aspectj.lang.annotation.Before;
|
|
||||||
import org.springframework.stereotype.Component;
|
|
||||||
|
|
||||||
import com.core.common.annotation.DataScope;
|
import com.core.common.annotation.DataScope;
|
||||||
import com.core.common.constant.UserConstants;
|
import com.core.common.constant.UserConstants;
|
||||||
import com.core.common.core.domain.BaseEntity;
|
import com.core.common.core.domain.BaseEntity;
|
||||||
@@ -18,6 +10,13 @@ import com.core.common.core.text.Convert;
|
|||||||
import com.core.common.utils.SecurityUtils;
|
import com.core.common.utils.SecurityUtils;
|
||||||
import com.core.common.utils.StringUtils;
|
import com.core.common.utils.StringUtils;
|
||||||
import com.core.framework.security.context.PermissionContextHolder;
|
import com.core.framework.security.context.PermissionContextHolder;
|
||||||
|
import org.aspectj.lang.JoinPoint;
|
||||||
|
import org.aspectj.lang.annotation.Aspect;
|
||||||
|
import org.aspectj.lang.annotation.Before;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 数据过滤处理
|
* 数据过滤处理
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
package com.core.framework.aspectj;
|
package com.core.framework.aspectj;
|
||||||
|
|
||||||
import java.util.Objects;
|
import com.core.common.annotation.DataSource;
|
||||||
|
import com.core.common.utils.StringUtils;
|
||||||
|
import com.core.framework.datasource.DynamicDataSourceContextHolder;
|
||||||
import org.aspectj.lang.ProceedingJoinPoint;
|
import org.aspectj.lang.ProceedingJoinPoint;
|
||||||
import org.aspectj.lang.annotation.Around;
|
import org.aspectj.lang.annotation.Around;
|
||||||
import org.aspectj.lang.annotation.Aspect;
|
import org.aspectj.lang.annotation.Aspect;
|
||||||
@@ -13,9 +14,7 @@ import org.springframework.core.annotation.AnnotationUtils;
|
|||||||
import org.springframework.core.annotation.Order;
|
import org.springframework.core.annotation.Order;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
import com.core.common.annotation.DataSource;
|
import java.util.Objects;
|
||||||
import com.core.common.utils.StringUtils;
|
|
||||||
import com.core.framework.datasource.DynamicDataSourceContextHolder;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 多数据源处理
|
* 多数据源处理
|
||||||
|
|||||||
@@ -1,24 +1,5 @@
|
|||||||
package com.core.framework.aspectj;
|
package com.core.framework.aspectj;
|
||||||
|
|
||||||
import java.util.Collection;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
import javax.servlet.http.HttpServletRequest;
|
|
||||||
import javax.servlet.http.HttpServletResponse;
|
|
||||||
|
|
||||||
import org.apache.commons.lang3.ArrayUtils;
|
|
||||||
import org.aspectj.lang.JoinPoint;
|
|
||||||
import org.aspectj.lang.annotation.AfterReturning;
|
|
||||||
import org.aspectj.lang.annotation.AfterThrowing;
|
|
||||||
import org.aspectj.lang.annotation.Aspect;
|
|
||||||
import org.aspectj.lang.annotation.Before;
|
|
||||||
import org.slf4j.Logger;
|
|
||||||
import org.slf4j.LoggerFactory;
|
|
||||||
import org.springframework.core.NamedThreadLocal;
|
|
||||||
import org.springframework.stereotype.Component;
|
|
||||||
import org.springframework.validation.BindingResult;
|
|
||||||
import org.springframework.web.multipart.MultipartFile;
|
|
||||||
|
|
||||||
import com.alibaba.fastjson2.JSON;
|
import com.alibaba.fastjson2.JSON;
|
||||||
import com.core.common.annotation.Log;
|
import com.core.common.annotation.Log;
|
||||||
import com.core.common.core.domain.entity.SysUser;
|
import com.core.common.core.domain.entity.SysUser;
|
||||||
@@ -33,6 +14,23 @@ import com.core.common.utils.ip.IpUtils;
|
|||||||
import com.core.framework.manager.AsyncManager;
|
import com.core.framework.manager.AsyncManager;
|
||||||
import com.core.framework.manager.factory.AsyncFactory;
|
import com.core.framework.manager.factory.AsyncFactory;
|
||||||
import com.core.system.domain.SysOperLog;
|
import com.core.system.domain.SysOperLog;
|
||||||
|
import org.apache.commons.lang3.ArrayUtils;
|
||||||
|
import org.aspectj.lang.JoinPoint;
|
||||||
|
import org.aspectj.lang.annotation.AfterReturning;
|
||||||
|
import org.aspectj.lang.annotation.AfterThrowing;
|
||||||
|
import org.aspectj.lang.annotation.Aspect;
|
||||||
|
import org.aspectj.lang.annotation.Before;
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
|
import org.springframework.core.NamedThreadLocal;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
import org.springframework.validation.BindingResult;
|
||||||
|
import org.springframework.web.multipart.MultipartFile;
|
||||||
|
|
||||||
|
import javax.servlet.http.HttpServletRequest;
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
import java.util.Collection;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 操作日志记录处理
|
* 操作日志记录处理
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
package com.core.framework.aspectj;
|
package com.core.framework.aspectj;
|
||||||
|
|
||||||
import java.lang.reflect.Method;
|
import com.core.common.annotation.RateLimiter;
|
||||||
import java.util.Collections;
|
import com.core.common.enums.LimitType;
|
||||||
import java.util.List;
|
import com.core.common.exception.ServiceException;
|
||||||
|
import com.core.common.utils.StringUtils;
|
||||||
|
import com.core.common.utils.ip.IpUtils;
|
||||||
import org.aspectj.lang.JoinPoint;
|
import org.aspectj.lang.JoinPoint;
|
||||||
import org.aspectj.lang.annotation.Aspect;
|
import org.aspectj.lang.annotation.Aspect;
|
||||||
import org.aspectj.lang.annotation.Before;
|
import org.aspectj.lang.annotation.Before;
|
||||||
@@ -15,11 +16,9 @@ import org.springframework.data.redis.core.RedisTemplate;
|
|||||||
import org.springframework.data.redis.core.script.RedisScript;
|
import org.springframework.data.redis.core.script.RedisScript;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
import com.core.common.annotation.RateLimiter;
|
import java.lang.reflect.Method;
|
||||||
import com.core.common.enums.LimitType;
|
import java.util.Collections;
|
||||||
import com.core.common.exception.ServiceException;
|
import java.util.List;
|
||||||
import com.core.common.utils.StringUtils;
|
|
||||||
import com.core.common.utils.ip.IpUtils;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 限流处理
|
* 限流处理
|
||||||
|
|||||||
@@ -11,9 +11,10 @@ import org.springframework.transaction.support.DefaultTransactionDefinition;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 事务处理
|
* 事务处理
|
||||||
|
* 已注释:与 @Transactional 注解冲突,导致事务回滚错误
|
||||||
*/
|
*/
|
||||||
@Aspect
|
//@Aspect
|
||||||
@Component
|
//@Component
|
||||||
public class TransactionAspect {
|
public class TransactionAspect {
|
||||||
|
|
||||||
private final PlatformTransactionManager transactionManager;
|
private final PlatformTransactionManager transactionManager;
|
||||||
@@ -23,19 +24,19 @@ public class TransactionAspect {
|
|||||||
this.transactionManager = transactionManager;
|
this.transactionManager = transactionManager;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Before("@annotation(org.springframework.web.bind.annotation.PostMapping) || " +
|
//@Before("@annotation(org.springframework.web.bind.annotation.PostMapping) || " +
|
||||||
"@annotation(org.springframework.web.bind.annotation.GetMapping) || " +
|
// "@annotation(org.springframework.web.bind.annotation.GetMapping) || " +
|
||||||
"@annotation(org.springframework.web.bind.annotation.PutMapping) || " +
|
// "@annotation(org.springframework.web.bind.annotation.PutMapping) || " +
|
||||||
"@annotation(org.springframework.web.bind.annotation.DeleteMapping)")
|
// "@annotation(org.springframework.web.bind.annotation.DeleteMapping)")
|
||||||
public void beginTransaction() {
|
public void beginTransaction() {
|
||||||
TransactionStatus status = transactionManager.getTransaction(new DefaultTransactionDefinition());
|
TransactionStatus status = transactionManager.getTransaction(new DefaultTransactionDefinition());
|
||||||
transactionStatus.set(status);
|
transactionStatus.set(status);
|
||||||
}
|
}
|
||||||
|
|
||||||
@AfterReturning("@annotation(org.springframework.web.bind.annotation.PostMapping) || " +
|
//@AfterReturning("@annotation(org.springframework.web.bind.annotation.PostMapping) || " +
|
||||||
"@annotation(org.springframework.web.bind.annotation.GetMapping) || " +
|
// "@annotation(org.springframework.web.bind.annotation.GetMapping) || " +
|
||||||
"@annotation(org.springframework.web.bind.annotation.PutMapping) || " +
|
// "@annotation(org.springframework.web.bind.annotation.PutMapping) || " +
|
||||||
"@annotation(org.springframework.web.bind.annotation.DeleteMapping)")
|
// "@annotation(org.springframework.web.bind.annotation.DeleteMapping)")
|
||||||
public void commitTransaction() {
|
public void commitTransaction() {
|
||||||
TransactionStatus status = transactionStatus.get();
|
TransactionStatus status = transactionStatus.get();
|
||||||
if (status != null && !status.isCompleted()) {
|
if (status != null && !status.isCompleted()) {
|
||||||
@@ -44,11 +45,11 @@ public class TransactionAspect {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@AfterThrowing(pointcut = "@annotation(org.springframework.web.bind.annotation.PostMapping) || " +
|
//@AfterThrowing(pointcut = "@annotation(org.springframework.web.bind.annotation.PostMapping) || " +
|
||||||
"@annotation(org.springframework.web.bind.annotation.GetMapping) || " +
|
// "@annotation(org.springframework.web.bind.annotation.GetMapping) || " +
|
||||||
"@annotation(org.springframework.web.bind.annotation.PutMapping) || " +
|
// "@annotation(org.springframework.web.bind.annotation.PutMapping) || " +
|
||||||
"@annotation(org.springframework.web.bind.annotation.DeleteMapping)",
|
// "@annotation(org.springframework.web.bind.annotation.DeleteMapping)",
|
||||||
throwing = "ex")
|
// throwing = "ex")
|
||||||
public void rollbackTransaction(Exception ex) {
|
public void rollbackTransaction(Exception ex) {
|
||||||
TransactionStatus status = transactionStatus.get();
|
TransactionStatus status = transactionStatus.get();
|
||||||
if (status != null && !status.isCompleted()) {
|
if (status != null && !status.isCompleted()) {
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
package com.core.framework.config;
|
package com.core.framework.config;
|
||||||
|
|
||||||
import java.util.TimeZone;
|
|
||||||
|
|
||||||
import org.mybatis.spring.annotation.MapperScan;
|
import org.mybatis.spring.annotation.MapperScan;
|
||||||
import org.springframework.boot.autoconfigure.jackson.Jackson2ObjectMapperBuilderCustomizer;
|
import org.springframework.boot.autoconfigure.jackson.Jackson2ObjectMapperBuilderCustomizer;
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
import org.springframework.context.annotation.EnableAspectJAutoProxy;
|
import org.springframework.context.annotation.EnableAspectJAutoProxy;
|
||||||
|
|
||||||
|
import java.util.TimeZone;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 程序注解配置
|
* 程序注解配置
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1,14 +1,13 @@
|
|||||||
package com.core.framework.config;
|
package com.core.framework.config;
|
||||||
|
|
||||||
import static com.google.code.kaptcha.Constants.*;
|
|
||||||
|
|
||||||
import java.util.Properties;
|
|
||||||
|
|
||||||
import org.springframework.context.annotation.Bean;
|
|
||||||
import org.springframework.context.annotation.Configuration;
|
|
||||||
|
|
||||||
import com.google.code.kaptcha.impl.DefaultKaptcha;
|
import com.google.code.kaptcha.impl.DefaultKaptcha;
|
||||||
import com.google.code.kaptcha.util.Config;
|
import com.google.code.kaptcha.util.Config;
|
||||||
|
import org.springframework.context.annotation.Bean;
|
||||||
|
import org.springframework.context.annotation.Configuration;
|
||||||
|
|
||||||
|
import java.util.Properties;
|
||||||
|
|
||||||
|
import static com.google.code.kaptcha.Constants.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 验证码配置
|
* 验证码配置
|
||||||
|
|||||||
@@ -1,19 +1,5 @@
|
|||||||
package com.core.framework.config;
|
package com.core.framework.config;
|
||||||
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
import javax.servlet.*;
|
|
||||||
import javax.sql.DataSource;
|
|
||||||
|
|
||||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
|
||||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
|
||||||
import org.springframework.boot.web.servlet.FilterRegistrationBean;
|
|
||||||
import org.springframework.context.annotation.Bean;
|
|
||||||
import org.springframework.context.annotation.Configuration;
|
|
||||||
import org.springframework.context.annotation.Primary;
|
|
||||||
|
|
||||||
import com.alibaba.druid.pool.DruidDataSource;
|
import com.alibaba.druid.pool.DruidDataSource;
|
||||||
import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceBuilder;
|
import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceBuilder;
|
||||||
import com.alibaba.druid.spring.boot.autoconfigure.properties.DruidStatProperties;
|
import com.alibaba.druid.spring.boot.autoconfigure.properties.DruidStatProperties;
|
||||||
@@ -22,6 +8,18 @@ import com.core.common.enums.DataSourceType;
|
|||||||
import com.core.common.utils.spring.SpringUtils;
|
import com.core.common.utils.spring.SpringUtils;
|
||||||
import com.core.framework.config.properties.DruidProperties;
|
import com.core.framework.config.properties.DruidProperties;
|
||||||
import com.core.framework.datasource.DynamicDataSource;
|
import com.core.framework.datasource.DynamicDataSource;
|
||||||
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
||||||
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||||
|
import org.springframework.boot.web.servlet.FilterRegistrationBean;
|
||||||
|
import org.springframework.context.annotation.Bean;
|
||||||
|
import org.springframework.context.annotation.Configuration;
|
||||||
|
import org.springframework.context.annotation.Primary;
|
||||||
|
|
||||||
|
import javax.servlet.*;
|
||||||
|
import javax.sql.DataSource;
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* druid 配置多数据源
|
* druid 配置多数据源
|
||||||
|
|||||||
@@ -1,15 +1,14 @@
|
|||||||
package com.core.framework.config;
|
package com.core.framework.config;
|
||||||
|
|
||||||
import java.nio.charset.Charset;
|
|
||||||
|
|
||||||
import org.springframework.data.redis.serializer.RedisSerializer;
|
|
||||||
import org.springframework.data.redis.serializer.SerializationException;
|
|
||||||
|
|
||||||
import com.alibaba.fastjson2.JSON;
|
import com.alibaba.fastjson2.JSON;
|
||||||
import com.alibaba.fastjson2.JSONReader;
|
import com.alibaba.fastjson2.JSONReader;
|
||||||
import com.alibaba.fastjson2.JSONWriter;
|
import com.alibaba.fastjson2.JSONWriter;
|
||||||
import com.alibaba.fastjson2.filter.Filter;
|
import com.alibaba.fastjson2.filter.Filter;
|
||||||
import com.core.common.constant.Constants;
|
import com.core.common.constant.Constants;
|
||||||
|
import org.springframework.data.redis.serializer.RedisSerializer;
|
||||||
|
import org.springframework.data.redis.serializer.SerializationException;
|
||||||
|
|
||||||
|
import java.nio.charset.Charset;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Redis使用FastJson序列化
|
* Redis使用FastJson序列化
|
||||||
|
|||||||
@@ -1,19 +1,17 @@
|
|||||||
package com.core.framework.config;
|
package com.core.framework.config;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import com.core.common.filter.RepeatableFilter;
|
||||||
import java.util.Map;
|
import com.core.common.filter.XssFilter;
|
||||||
|
import com.core.common.utils.StringUtils;
|
||||||
import javax.servlet.DispatcherType;
|
|
||||||
|
|
||||||
import org.springframework.beans.factory.annotation.Value;
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
||||||
import org.springframework.boot.web.servlet.FilterRegistrationBean;
|
import org.springframework.boot.web.servlet.FilterRegistrationBean;
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
|
|
||||||
import com.core.common.filter.RepeatableFilter;
|
import javax.servlet.DispatcherType;
|
||||||
import com.core.common.filter.XssFilter;
|
import java.util.HashMap;
|
||||||
import com.core.common.utils.StringUtils;
|
import java.util.Map;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Filter配置
|
* Filter配置
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package com.core.framework.config;
|
package com.core.framework.config;
|
||||||
|
|
||||||
|
import com.core.common.constant.Constants;
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
import org.springframework.web.servlet.LocaleResolver;
|
import org.springframework.web.servlet.LocaleResolver;
|
||||||
@@ -8,8 +9,6 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
|
|||||||
import org.springframework.web.servlet.i18n.LocaleChangeInterceptor;
|
import org.springframework.web.servlet.i18n.LocaleChangeInterceptor;
|
||||||
import org.springframework.web.servlet.i18n.SessionLocaleResolver;
|
import org.springframework.web.servlet.i18n.SessionLocaleResolver;
|
||||||
|
|
||||||
import com.core.common.constant.Constants;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 资源文件配置加载
|
* 资源文件配置加载
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
package com.core.framework.config;
|
package com.core.framework.config;
|
||||||
|
|
||||||
import java.util.Random;
|
|
||||||
|
|
||||||
import com.google.code.kaptcha.text.impl.DefaultTextCreator;
|
import com.google.code.kaptcha.text.impl.DefaultTextCreator;
|
||||||
|
|
||||||
|
import java.util.Random;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 验证码文本生成器
|
* 验证码文本生成器
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1,17 +1,5 @@
|
|||||||
package com.core.framework.config;
|
package com.core.framework.config;
|
||||||
|
|
||||||
import java.util.Arrays;
|
|
||||||
import java.util.HashSet;
|
|
||||||
import java.util.Set;
|
|
||||||
|
|
||||||
import javax.servlet.http.HttpServletRequest;
|
|
||||||
|
|
||||||
import org.springframework.context.annotation.Bean;
|
|
||||||
import org.springframework.context.annotation.Configuration;
|
|
||||||
import org.springframework.transaction.annotation.EnableTransactionManagement;
|
|
||||||
import org.springframework.web.context.request.RequestContextHolder;
|
|
||||||
import org.springframework.web.context.request.ServletRequestAttributes;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.DbType;
|
import com.baomidou.mybatisplus.annotation.DbType;
|
||||||
import com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor;
|
import com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor;
|
||||||
import com.baomidou.mybatisplus.extension.plugins.handler.TenantLineHandler;
|
import com.baomidou.mybatisplus.extension.plugins.handler.TenantLineHandler;
|
||||||
@@ -20,9 +8,18 @@ import com.baomidou.mybatisplus.extension.plugins.inner.OptimisticLockerInnerInt
|
|||||||
import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor;
|
import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor;
|
||||||
import com.baomidou.mybatisplus.extension.plugins.inner.TenantLineInnerInterceptor;
|
import com.baomidou.mybatisplus.extension.plugins.inner.TenantLineInnerInterceptor;
|
||||||
import com.core.common.utils.SecurityUtils;
|
import com.core.common.utils.SecurityUtils;
|
||||||
|
|
||||||
import net.sf.jsqlparser.expression.Expression;
|
import net.sf.jsqlparser.expression.Expression;
|
||||||
import net.sf.jsqlparser.expression.LongValue;
|
import net.sf.jsqlparser.expression.LongValue;
|
||||||
|
import org.springframework.context.annotation.Bean;
|
||||||
|
import org.springframework.context.annotation.Configuration;
|
||||||
|
import org.springframework.transaction.annotation.EnableTransactionManagement;
|
||||||
|
import org.springframework.web.context.request.RequestContextHolder;
|
||||||
|
import org.springframework.web.context.request.ServletRequestAttributes;
|
||||||
|
|
||||||
|
import javax.servlet.http.HttpServletRequest;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.HashSet;
|
||||||
|
import java.util.Set;
|
||||||
|
|
||||||
@EnableTransactionManagement(proxyTargetClass = true)
|
@EnableTransactionManagement(proxyTargetClass = true)
|
||||||
@Configuration
|
@Configuration
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
package com.core.framework.config;
|
package com.core.framework.config;
|
||||||
|
|
||||||
import java.util.concurrent.TimeUnit;
|
import com.core.common.config.CoreConfig;
|
||||||
|
import com.core.common.constant.Constants;
|
||||||
|
import com.core.framework.interceptor.RepeatSubmitInterceptor;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
@@ -13,9 +14,7 @@ import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
|
|||||||
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
|
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
|
||||||
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
|
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
|
||||||
|
|
||||||
import com.core.common.config.CoreConfig;
|
import java.util.concurrent.TimeUnit;
|
||||||
import com.core.common.constant.Constants;
|
|
||||||
import com.core.framework.interceptor.RepeatSubmitInterceptor;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通用配置
|
* 通用配置
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
package com.core.framework.config;
|
package com.core.framework.config;
|
||||||
|
|
||||||
|
import com.core.framework.config.properties.PermitAllUrlProperties;
|
||||||
|
import com.core.framework.security.filter.JwtAuthenticationTokenFilter;
|
||||||
|
import com.core.framework.security.handle.AuthenticationEntryPointImpl;
|
||||||
|
import com.core.framework.security.handle.LogoutSuccessHandlerImpl;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
@@ -17,11 +21,6 @@ import org.springframework.security.web.authentication.UsernamePasswordAuthentic
|
|||||||
import org.springframework.security.web.authentication.logout.LogoutFilter;
|
import org.springframework.security.web.authentication.logout.LogoutFilter;
|
||||||
import org.springframework.web.filter.CorsFilter;
|
import org.springframework.web.filter.CorsFilter;
|
||||||
|
|
||||||
import com.core.framework.config.properties.PermitAllUrlProperties;
|
|
||||||
import com.core.framework.security.filter.JwtAuthenticationTokenFilter;
|
|
||||||
import com.core.framework.security.handle.AuthenticationEntryPointImpl;
|
|
||||||
import com.core.framework.security.handle.LogoutSuccessHandlerImpl;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* spring security配置
|
* spring security配置
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1,10 +1,9 @@
|
|||||||
package com.core.framework.config;
|
package com.core.framework.config;
|
||||||
|
|
||||||
import javax.servlet.http.HttpServletRequest;
|
import com.core.common.utils.ServletUtils;
|
||||||
|
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
import com.core.common.utils.ServletUtils;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 服务相关配置
|
* 服务相关配置
|
||||||
|
|||||||
@@ -1,15 +1,14 @@
|
|||||||
package com.core.framework.config;
|
package com.core.framework.config;
|
||||||
|
|
||||||
import java.util.concurrent.ScheduledExecutorService;
|
import com.core.common.utils.Threads;
|
||||||
import java.util.concurrent.ScheduledThreadPoolExecutor;
|
|
||||||
import java.util.concurrent.ThreadPoolExecutor;
|
|
||||||
|
|
||||||
import org.apache.commons.lang3.concurrent.BasicThreadFactory;
|
import org.apache.commons.lang3.concurrent.BasicThreadFactory;
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
|
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
|
||||||
|
|
||||||
import com.core.common.utils.Threads;
|
import java.util.concurrent.ScheduledExecutorService;
|
||||||
|
import java.util.concurrent.ScheduledThreadPoolExecutor;
|
||||||
|
import java.util.concurrent.ThreadPoolExecutor;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 线程池配置
|
* 线程池配置
|
||||||
|
|||||||
@@ -1,10 +1,9 @@
|
|||||||
package com.core.framework.config.properties;
|
package com.core.framework.config.properties;
|
||||||
|
|
||||||
|
import com.alibaba.druid.pool.DruidDataSource;
|
||||||
import org.springframework.beans.factory.annotation.Value;
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
|
|
||||||
import com.alibaba.druid.pool.DruidDataSource;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* druid 配置属性
|
* druid 配置属性
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
package com.core.framework.config.properties;
|
package com.core.framework.config.properties;
|
||||||
|
|
||||||
import java.util.*;
|
import com.core.common.annotation.Anonymous;
|
||||||
import java.util.regex.Pattern;
|
|
||||||
|
|
||||||
import org.apache.commons.lang3.RegExUtils;
|
import org.apache.commons.lang3.RegExUtils;
|
||||||
import org.springframework.beans.BeansException;
|
import org.springframework.beans.BeansException;
|
||||||
import org.springframework.beans.factory.InitializingBean;
|
import org.springframework.beans.factory.InitializingBean;
|
||||||
@@ -14,7 +12,8 @@ import org.springframework.web.method.HandlerMethod;
|
|||||||
import org.springframework.web.servlet.mvc.method.RequestMappingInfo;
|
import org.springframework.web.servlet.mvc.method.RequestMappingInfo;
|
||||||
import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping;
|
import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping;
|
||||||
|
|
||||||
import com.core.common.annotation.Anonymous;
|
import java.util.*;
|
||||||
|
import java.util.regex.Pattern;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 设置Anonymous注解允许匿名访问的url
|
* 设置Anonymous注解允许匿名访问的url
|
||||||
|
|||||||
@@ -1,10 +1,9 @@
|
|||||||
package com.core.framework.datasource;
|
package com.core.framework.datasource;
|
||||||
|
|
||||||
import java.util.Map;
|
import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;
|
||||||
|
|
||||||
import javax.sql.DataSource;
|
import javax.sql.DataSource;
|
||||||
|
import java.util.Map;
|
||||||
import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 动态数据源
|
* 动态数据源
|
||||||
|
|||||||
@@ -1,18 +1,16 @@
|
|||||||
package com.core.framework.handler;
|
package com.core.framework.handler;
|
||||||
|
|
||||||
import java.util.Date;
|
|
||||||
|
|
||||||
import javax.servlet.http.HttpServletRequest;
|
|
||||||
|
|
||||||
import org.apache.ibatis.reflection.MetaObject;
|
|
||||||
import org.springframework.stereotype.Component;
|
|
||||||
import org.springframework.web.context.request.RequestContextHolder;
|
|
||||||
import org.springframework.web.context.request.ServletRequestAttributes;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.core.handlers.MetaObjectHandler;
|
import com.baomidou.mybatisplus.core.handlers.MetaObjectHandler;
|
||||||
import com.core.common.core.domain.model.LoginUser;
|
import com.core.common.core.domain.model.LoginUser;
|
||||||
import com.core.common.utils.SecurityUtils;
|
import com.core.common.utils.SecurityUtils;
|
||||||
import com.core.framework.config.TenantContext;
|
import com.core.framework.config.TenantContext;
|
||||||
|
import org.apache.ibatis.reflection.MetaObject;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
import org.springframework.web.context.request.RequestContextHolder;
|
||||||
|
import org.springframework.web.context.request.ServletRequestAttributes;
|
||||||
|
|
||||||
|
import javax.servlet.http.HttpServletRequest;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
@Component
|
@Component
|
||||||
public class MybastisColumnsHandler implements MetaObjectHandler {
|
public class MybastisColumnsHandler implements MetaObjectHandler {
|
||||||
|
|||||||
@@ -1,18 +1,16 @@
|
|||||||
package com.core.framework.interceptor;
|
package com.core.framework.interceptor;
|
||||||
|
|
||||||
import java.lang.reflect.Method;
|
|
||||||
|
|
||||||
import javax.servlet.http.HttpServletRequest;
|
|
||||||
import javax.servlet.http.HttpServletResponse;
|
|
||||||
|
|
||||||
import org.springframework.stereotype.Component;
|
|
||||||
import org.springframework.web.method.HandlerMethod;
|
|
||||||
import org.springframework.web.servlet.HandlerInterceptor;
|
|
||||||
|
|
||||||
import com.alibaba.fastjson2.JSON;
|
import com.alibaba.fastjson2.JSON;
|
||||||
import com.core.common.annotation.RepeatSubmit;
|
import com.core.common.annotation.RepeatSubmit;
|
||||||
import com.core.common.core.domain.AjaxResult;
|
import com.core.common.core.domain.AjaxResult;
|
||||||
import com.core.common.utils.ServletUtils;
|
import com.core.common.utils.ServletUtils;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
import org.springframework.web.method.HandlerMethod;
|
||||||
|
import org.springframework.web.servlet.HandlerInterceptor;
|
||||||
|
|
||||||
|
import javax.servlet.http.HttpServletRequest;
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
import java.lang.reflect.Method;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 防止重复提交拦截器
|
* 防止重复提交拦截器
|
||||||
|
|||||||
@@ -1,15 +1,5 @@
|
|||||||
package com.core.framework.interceptor.impl;
|
package com.core.framework.interceptor.impl;
|
||||||
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.Map;
|
|
||||||
import java.util.concurrent.TimeUnit;
|
|
||||||
|
|
||||||
import javax.servlet.http.HttpServletRequest;
|
|
||||||
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.beans.factory.annotation.Value;
|
|
||||||
import org.springframework.stereotype.Component;
|
|
||||||
|
|
||||||
import com.alibaba.fastjson2.JSON;
|
import com.alibaba.fastjson2.JSON;
|
||||||
import com.core.common.annotation.RepeatSubmit;
|
import com.core.common.annotation.RepeatSubmit;
|
||||||
import com.core.common.constant.CacheConstants;
|
import com.core.common.constant.CacheConstants;
|
||||||
@@ -18,6 +8,14 @@ import com.core.common.filter.RepeatedlyRequestWrapper;
|
|||||||
import com.core.common.utils.StringUtils;
|
import com.core.common.utils.StringUtils;
|
||||||
import com.core.common.utils.http.HttpHelper;
|
import com.core.common.utils.http.HttpHelper;
|
||||||
import com.core.framework.interceptor.RepeatSubmitInterceptor;
|
import com.core.framework.interceptor.RepeatSubmitInterceptor;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
import javax.servlet.http.HttpServletRequest;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.concurrent.TimeUnit;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 判断请求url和数据是否和上一次相同, 如果和上次相同,则是重复提交表单。 有效时间为10秒内。
|
* 判断请求url和数据是否和上一次相同, 如果和上次相同,则是重复提交表单。 有效时间为10秒内。
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
package com.core.framework.manager;
|
package com.core.framework.manager;
|
||||||
|
|
||||||
|
import com.core.common.utils.Threads;
|
||||||
|
import com.core.common.utils.spring.SpringUtils;
|
||||||
|
|
||||||
import java.util.TimerTask;
|
import java.util.TimerTask;
|
||||||
import java.util.concurrent.ScheduledExecutorService;
|
import java.util.concurrent.ScheduledExecutorService;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
|
|
||||||
import com.core.common.utils.Threads;
|
|
||||||
import com.core.common.utils.spring.SpringUtils;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 异步任务管理器
|
* 异步任务管理器
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
package com.core.framework.manager;
|
package com.core.framework.manager;
|
||||||
|
|
||||||
import javax.annotation.PreDestroy;
|
|
||||||
|
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
import javax.annotation.PreDestroy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 确保应用退出时能关闭后台线程
|
* 确保应用退出时能关闭后台线程
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1,10 +1,5 @@
|
|||||||
package com.core.framework.manager.factory;
|
package com.core.framework.manager.factory;
|
||||||
|
|
||||||
import java.util.TimerTask;
|
|
||||||
|
|
||||||
import org.slf4j.Logger;
|
|
||||||
import org.slf4j.LoggerFactory;
|
|
||||||
|
|
||||||
import com.core.common.constant.Constants;
|
import com.core.common.constant.Constants;
|
||||||
import com.core.common.utils.LogUtils;
|
import com.core.common.utils.LogUtils;
|
||||||
import com.core.common.utils.ServletUtils;
|
import com.core.common.utils.ServletUtils;
|
||||||
@@ -16,8 +11,11 @@ import com.core.system.domain.SysLogininfor;
|
|||||||
import com.core.system.domain.SysOperLog;
|
import com.core.system.domain.SysOperLog;
|
||||||
import com.core.system.service.ISysLogininforService;
|
import com.core.system.service.ISysLogininforService;
|
||||||
import com.core.system.service.ISysOperLogService;
|
import com.core.system.service.ISysOperLogService;
|
||||||
|
|
||||||
import eu.bitwalker.useragentutils.UserAgent;
|
import eu.bitwalker.useragentutils.UserAgent;
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
|
import java.util.TimerTask;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 异步工厂(产生任务用)
|
* 异步工厂(产生任务用)
|
||||||
|
|||||||
@@ -1,10 +1,9 @@
|
|||||||
package com.core.framework.security.context;
|
package com.core.framework.security.context;
|
||||||
|
|
||||||
|
import com.core.common.core.text.Convert;
|
||||||
import org.springframework.web.context.request.RequestAttributes;
|
import org.springframework.web.context.request.RequestAttributes;
|
||||||
import org.springframework.web.context.request.RequestContextHolder;
|
import org.springframework.web.context.request.RequestContextHolder;
|
||||||
|
|
||||||
import com.core.common.core.text.Convert;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 权限信息
|
* 权限信息
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1,12 +1,9 @@
|
|||||||
package com.core.framework.security.filter;
|
package com.core.framework.security.filter;
|
||||||
|
|
||||||
import java.io.IOException;
|
import com.core.common.core.domain.model.LoginUser;
|
||||||
|
import com.core.common.utils.SecurityUtils;
|
||||||
import javax.servlet.FilterChain;
|
import com.core.common.utils.StringUtils;
|
||||||
import javax.servlet.ServletException;
|
import com.core.framework.web.service.TokenService;
|
||||||
import javax.servlet.http.HttpServletRequest;
|
|
||||||
import javax.servlet.http.HttpServletResponse;
|
|
||||||
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
|
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
|
||||||
import org.springframework.security.core.context.SecurityContextHolder;
|
import org.springframework.security.core.context.SecurityContextHolder;
|
||||||
@@ -14,10 +11,11 @@ import org.springframework.security.web.authentication.WebAuthenticationDetailsS
|
|||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
import org.springframework.web.filter.OncePerRequestFilter;
|
import org.springframework.web.filter.OncePerRequestFilter;
|
||||||
|
|
||||||
import com.core.common.core.domain.model.LoginUser;
|
import javax.servlet.FilterChain;
|
||||||
import com.core.common.utils.SecurityUtils;
|
import javax.servlet.ServletException;
|
||||||
import com.core.common.utils.StringUtils;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
import com.core.framework.web.service.TokenService;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
import java.io.IOException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* token过滤器 验证token有效性
|
* token过滤器 验证token有效性
|
||||||
|
|||||||
@@ -1,20 +1,18 @@
|
|||||||
package com.core.framework.security.handle;
|
package com.core.framework.security.handle;
|
||||||
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.io.Serializable;
|
|
||||||
|
|
||||||
import javax.servlet.http.HttpServletRequest;
|
|
||||||
import javax.servlet.http.HttpServletResponse;
|
|
||||||
|
|
||||||
import org.springframework.security.core.AuthenticationException;
|
|
||||||
import org.springframework.security.web.AuthenticationEntryPoint;
|
|
||||||
import org.springframework.stereotype.Component;
|
|
||||||
|
|
||||||
import com.alibaba.fastjson2.JSON;
|
import com.alibaba.fastjson2.JSON;
|
||||||
import com.core.common.constant.HttpStatus;
|
import com.core.common.constant.HttpStatus;
|
||||||
import com.core.common.core.domain.AjaxResult;
|
import com.core.common.core.domain.AjaxResult;
|
||||||
import com.core.common.utils.ServletUtils;
|
import com.core.common.utils.ServletUtils;
|
||||||
import com.core.common.utils.StringUtils;
|
import com.core.common.utils.StringUtils;
|
||||||
|
import org.springframework.security.core.AuthenticationException;
|
||||||
|
import org.springframework.security.web.AuthenticationEntryPoint;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
import javax.servlet.http.HttpServletRequest;
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 认证失败处理类 返回未授权
|
* 认证失败处理类 返回未授权
|
||||||
|
|||||||
@@ -1,16 +1,5 @@
|
|||||||
package com.core.framework.security.handle;
|
package com.core.framework.security.handle;
|
||||||
|
|
||||||
import java.io.IOException;
|
|
||||||
|
|
||||||
import javax.servlet.ServletException;
|
|
||||||
import javax.servlet.http.HttpServletRequest;
|
|
||||||
import javax.servlet.http.HttpServletResponse;
|
|
||||||
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.context.annotation.Configuration;
|
|
||||||
import org.springframework.security.core.Authentication;
|
|
||||||
import org.springframework.security.web.authentication.logout.LogoutSuccessHandler;
|
|
||||||
|
|
||||||
import com.alibaba.fastjson2.JSON;
|
import com.alibaba.fastjson2.JSON;
|
||||||
import com.core.common.constant.Constants;
|
import com.core.common.constant.Constants;
|
||||||
import com.core.common.core.domain.AjaxResult;
|
import com.core.common.core.domain.AjaxResult;
|
||||||
@@ -21,6 +10,15 @@ import com.core.common.utils.StringUtils;
|
|||||||
import com.core.framework.manager.AsyncManager;
|
import com.core.framework.manager.AsyncManager;
|
||||||
import com.core.framework.manager.factory.AsyncFactory;
|
import com.core.framework.manager.factory.AsyncFactory;
|
||||||
import com.core.framework.web.service.TokenService;
|
import com.core.framework.web.service.TokenService;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.context.annotation.Configuration;
|
||||||
|
import org.springframework.security.core.Authentication;
|
||||||
|
import org.springframework.security.web.authentication.logout.LogoutSuccessHandler;
|
||||||
|
|
||||||
|
import javax.servlet.ServletException;
|
||||||
|
import javax.servlet.http.HttpServletRequest;
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
import java.io.IOException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 自定义退出处理类 返回成功
|
* 自定义退出处理类 返回成功
|
||||||
|
|||||||
@@ -1,14 +1,8 @@
|
|||||||
package com.core.framework.web.domain;
|
package com.core.framework.web.domain;
|
||||||
|
|
||||||
import java.net.UnknownHostException;
|
|
||||||
import java.util.LinkedList;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Properties;
|
|
||||||
|
|
||||||
import com.core.common.utils.Arith;
|
import com.core.common.utils.Arith;
|
||||||
import com.core.common.utils.ip.IpUtils;
|
import com.core.common.utils.ip.IpUtils;
|
||||||
import com.core.framework.web.domain.server.*;
|
import com.core.framework.web.domain.server.*;
|
||||||
|
|
||||||
import oshi.SystemInfo;
|
import oshi.SystemInfo;
|
||||||
import oshi.hardware.CentralProcessor;
|
import oshi.hardware.CentralProcessor;
|
||||||
import oshi.hardware.CentralProcessor.TickType;
|
import oshi.hardware.CentralProcessor.TickType;
|
||||||
@@ -19,6 +13,11 @@ import oshi.software.os.OSFileStore;
|
|||||||
import oshi.software.os.OperatingSystem;
|
import oshi.software.os.OperatingSystem;
|
||||||
import oshi.util.Util;
|
import oshi.util.Util;
|
||||||
|
|
||||||
|
import java.net.UnknownHostException;
|
||||||
|
import java.util.LinkedList;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Properties;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 服务器相关信息
|
* 服务器相关信息
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
package com.core.framework.web.domain.server;
|
package com.core.framework.web.domain.server;
|
||||||
|
|
||||||
import java.lang.management.ManagementFactory;
|
|
||||||
|
|
||||||
import com.core.common.utils.Arith;
|
import com.core.common.utils.Arith;
|
||||||
import com.core.common.utils.DateUtils;
|
import com.core.common.utils.DateUtils;
|
||||||
|
|
||||||
|
import java.lang.management.ManagementFactory;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* JVM相关信息
|
* JVM相关信息
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1,7 +1,13 @@
|
|||||||
package com.core.framework.web.exception;
|
package com.core.framework.web.exception;
|
||||||
|
|
||||||
import javax.servlet.http.HttpServletRequest;
|
import com.core.common.constant.HttpStatus;
|
||||||
|
import com.core.common.core.domain.AjaxResult;
|
||||||
|
import com.core.common.core.text.Convert;
|
||||||
|
import com.core.common.exception.DemoModeException;
|
||||||
|
import com.core.common.exception.NonCaptureException;
|
||||||
|
import com.core.common.exception.ServiceException;
|
||||||
|
import com.core.common.utils.StringUtils;
|
||||||
|
import com.core.common.utils.html.EscapeUtil;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
import org.springframework.security.access.AccessDeniedException;
|
import org.springframework.security.access.AccessDeniedException;
|
||||||
@@ -13,14 +19,7 @@ import org.springframework.web.bind.annotation.ExceptionHandler;
|
|||||||
import org.springframework.web.bind.annotation.RestControllerAdvice;
|
import org.springframework.web.bind.annotation.RestControllerAdvice;
|
||||||
import org.springframework.web.method.annotation.MethodArgumentTypeMismatchException;
|
import org.springframework.web.method.annotation.MethodArgumentTypeMismatchException;
|
||||||
|
|
||||||
import com.core.common.constant.HttpStatus;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
import com.core.common.core.domain.AjaxResult;
|
|
||||||
import com.core.common.core.text.Convert;
|
|
||||||
import com.core.common.exception.DemoModeException;
|
|
||||||
import com.core.common.exception.NonCaptureException;
|
|
||||||
import com.core.common.exception.ServiceException;
|
|
||||||
import com.core.common.utils.StringUtils;
|
|
||||||
import com.core.common.utils.html.EscapeUtil;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 全局异常处理器
|
* 全局异常处理器
|
||||||
|
|||||||
@@ -1,16 +1,15 @@
|
|||||||
package com.core.framework.web.service;
|
package com.core.framework.web.service;
|
||||||
|
|
||||||
import java.util.Set;
|
|
||||||
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
import org.springframework.util.CollectionUtils;
|
|
||||||
|
|
||||||
import com.core.common.constant.Constants;
|
import com.core.common.constant.Constants;
|
||||||
import com.core.common.core.domain.entity.SysRole;
|
import com.core.common.core.domain.entity.SysRole;
|
||||||
import com.core.common.core.domain.model.LoginUser;
|
import com.core.common.core.domain.model.LoginUser;
|
||||||
import com.core.common.utils.SecurityUtils;
|
import com.core.common.utils.SecurityUtils;
|
||||||
import com.core.common.utils.StringUtils;
|
import com.core.common.utils.StringUtils;
|
||||||
import com.core.framework.security.context.PermissionContextHolder;
|
import com.core.framework.security.context.PermissionContextHolder;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import org.springframework.util.CollectionUtils;
|
||||||
|
|
||||||
|
import java.util.Set;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 首创 自定义权限实现,ss取自SpringSecurity首字母
|
* 首创 自定义权限实现,ss取自SpringSecurity首字母
|
||||||
|
|||||||
@@ -1,19 +1,5 @@
|
|||||||
package com.core.framework.web.service;
|
package com.core.framework.web.service;
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
import java.util.Optional;
|
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
|
||||||
|
|
||||||
import com.core.common.enums.DelFlag;
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.security.authentication.AuthenticationManager;
|
|
||||||
import org.springframework.security.authentication.BadCredentialsException;
|
|
||||||
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
|
|
||||||
import org.springframework.security.core.Authentication;
|
|
||||||
import org.springframework.stereotype.Component;
|
|
||||||
|
|
||||||
import com.alibaba.fastjson2.JSONObject;
|
import com.alibaba.fastjson2.JSONObject;
|
||||||
import com.core.common.constant.CacheConstants;
|
import com.core.common.constant.CacheConstants;
|
||||||
import com.core.common.constant.Constants;
|
import com.core.common.constant.Constants;
|
||||||
@@ -24,6 +10,7 @@ import com.core.common.core.domain.entity.SysUser;
|
|||||||
import com.core.common.core.domain.model.LoginUser;
|
import com.core.common.core.domain.model.LoginUser;
|
||||||
import com.core.common.core.domain.model.LoginUserExtend;
|
import com.core.common.core.domain.model.LoginUserExtend;
|
||||||
import com.core.common.core.redis.RedisCache;
|
import com.core.common.core.redis.RedisCache;
|
||||||
|
import com.core.common.enums.DelFlag;
|
||||||
import com.core.common.enums.TenantStatus;
|
import com.core.common.enums.TenantStatus;
|
||||||
import com.core.common.exception.ServiceException;
|
import com.core.common.exception.ServiceException;
|
||||||
import com.core.common.exception.user.*;
|
import com.core.common.exception.user.*;
|
||||||
@@ -39,6 +26,17 @@ import com.core.system.service.ISysConfigService;
|
|||||||
import com.core.system.service.ISysTenantOptionService;
|
import com.core.system.service.ISysTenantOptionService;
|
||||||
import com.core.system.service.ISysTenantService;
|
import com.core.system.service.ISysTenantService;
|
||||||
import com.core.system.service.ISysUserService;
|
import com.core.system.service.ISysUserService;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.security.authentication.AuthenticationManager;
|
||||||
|
import org.springframework.security.authentication.BadCredentialsException;
|
||||||
|
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
|
||||||
|
import org.springframework.security.core.Authentication;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.Optional;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 登录校验方法
|
* 登录校验方法
|
||||||
|
|||||||
@@ -1,12 +1,5 @@
|
|||||||
package com.core.framework.web.service;
|
package com.core.framework.web.service;
|
||||||
|
|
||||||
import java.util.concurrent.TimeUnit;
|
|
||||||
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.beans.factory.annotation.Value;
|
|
||||||
import org.springframework.security.core.Authentication;
|
|
||||||
import org.springframework.stereotype.Component;
|
|
||||||
|
|
||||||
import com.core.common.constant.CacheConstants;
|
import com.core.common.constant.CacheConstants;
|
||||||
import com.core.common.core.domain.entity.SysUser;
|
import com.core.common.core.domain.entity.SysUser;
|
||||||
import com.core.common.core.redis.RedisCache;
|
import com.core.common.core.redis.RedisCache;
|
||||||
@@ -14,6 +7,12 @@ import com.core.common.exception.user.UserPasswordNotMatchException;
|
|||||||
import com.core.common.exception.user.UserPasswordRetryLimitExceedException;
|
import com.core.common.exception.user.UserPasswordRetryLimitExceedException;
|
||||||
import com.core.common.utils.SecurityUtils;
|
import com.core.common.utils.SecurityUtils;
|
||||||
import com.core.framework.security.context.AuthenticationContextHolder;
|
import com.core.framework.security.context.AuthenticationContextHolder;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
|
import org.springframework.security.core.Authentication;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
import java.util.concurrent.TimeUnit;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 登录密码方法
|
* 登录密码方法
|
||||||
|
|||||||
@@ -1,19 +1,18 @@
|
|||||||
package com.core.framework.web.service;
|
package com.core.framework.web.service;
|
||||||
|
|
||||||
import java.util.HashSet;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Set;
|
|
||||||
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.stereotype.Component;
|
|
||||||
import org.springframework.util.CollectionUtils;
|
|
||||||
|
|
||||||
import com.core.common.constant.UserConstants;
|
import com.core.common.constant.UserConstants;
|
||||||
import com.core.common.core.domain.entity.SysRole;
|
import com.core.common.core.domain.entity.SysRole;
|
||||||
import com.core.common.core.domain.entity.SysUser;
|
import com.core.common.core.domain.entity.SysUser;
|
||||||
import com.core.common.utils.StringUtils;
|
import com.core.common.utils.StringUtils;
|
||||||
import com.core.system.service.ISysMenuService;
|
import com.core.system.service.ISysMenuService;
|
||||||
import com.core.system.service.ISysRoleService;
|
import com.core.system.service.ISysRoleService;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
import org.springframework.util.CollectionUtils;
|
||||||
|
|
||||||
|
import java.util.HashSet;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Set;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用户权限处理
|
* 用户权限处理
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
package com.core.framework.web.service;
|
package com.core.framework.web.service;
|
||||||
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.stereotype.Component;
|
|
||||||
|
|
||||||
import com.core.common.constant.CacheConstants;
|
import com.core.common.constant.CacheConstants;
|
||||||
import com.core.common.constant.Constants;
|
import com.core.common.constant.Constants;
|
||||||
import com.core.common.constant.UserConstants;
|
import com.core.common.constant.UserConstants;
|
||||||
@@ -18,6 +15,8 @@ import com.core.framework.manager.AsyncManager;
|
|||||||
import com.core.framework.manager.factory.AsyncFactory;
|
import com.core.framework.manager.factory.AsyncFactory;
|
||||||
import com.core.system.service.ISysConfigService;
|
import com.core.system.service.ISysConfigService;
|
||||||
import com.core.system.service.ISysUserService;
|
import com.core.system.service.ISysUserService;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 注册校验方法
|
* 注册校验方法
|
||||||
|
|||||||
@@ -1,17 +1,5 @@
|
|||||||
package com.core.framework.web.service;
|
package com.core.framework.web.service;
|
||||||
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.Map;
|
|
||||||
import java.util.concurrent.TimeUnit;
|
|
||||||
|
|
||||||
import javax.servlet.http.HttpServletRequest;
|
|
||||||
|
|
||||||
import org.slf4j.Logger;
|
|
||||||
import org.slf4j.LoggerFactory;
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.beans.factory.annotation.Value;
|
|
||||||
import org.springframework.stereotype.Component;
|
|
||||||
|
|
||||||
import com.core.common.constant.CacheConstants;
|
import com.core.common.constant.CacheConstants;
|
||||||
import com.core.common.constant.Constants;
|
import com.core.common.constant.Constants;
|
||||||
import com.core.common.core.domain.model.LoginUser;
|
import com.core.common.core.domain.model.LoginUser;
|
||||||
@@ -21,11 +9,20 @@ import com.core.common.utils.StringUtils;
|
|||||||
import com.core.common.utils.ip.AddressUtils;
|
import com.core.common.utils.ip.AddressUtils;
|
||||||
import com.core.common.utils.ip.IpUtils;
|
import com.core.common.utils.ip.IpUtils;
|
||||||
import com.core.common.utils.uuid.IdUtils;
|
import com.core.common.utils.uuid.IdUtils;
|
||||||
|
|
||||||
import eu.bitwalker.useragentutils.UserAgent;
|
import eu.bitwalker.useragentutils.UserAgent;
|
||||||
import io.jsonwebtoken.Claims;
|
import io.jsonwebtoken.Claims;
|
||||||
import io.jsonwebtoken.Jwts;
|
import io.jsonwebtoken.Jwts;
|
||||||
import io.jsonwebtoken.SignatureAlgorithm;
|
import io.jsonwebtoken.SignatureAlgorithm;
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
import javax.servlet.http.HttpServletRequest;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.concurrent.TimeUnit;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* token验证处理
|
* token验证处理
|
||||||
|
|||||||
@@ -1,13 +1,5 @@
|
|||||||
package com.core.framework.web.service;
|
package com.core.framework.web.service;
|
||||||
|
|
||||||
import org.slf4j.Logger;
|
|
||||||
import org.slf4j.LoggerFactory;
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.security.core.userdetails.UserDetails;
|
|
||||||
import org.springframework.security.core.userdetails.UserDetailsService;
|
|
||||||
import org.springframework.security.core.userdetails.UsernameNotFoundException;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
|
|
||||||
import com.core.common.core.domain.entity.SysUser;
|
import com.core.common.core.domain.entity.SysUser;
|
||||||
import com.core.common.core.domain.model.LoginUser;
|
import com.core.common.core.domain.model.LoginUser;
|
||||||
import com.core.common.enums.UserStatus;
|
import com.core.common.enums.UserStatus;
|
||||||
@@ -15,6 +7,13 @@ import com.core.common.exception.ServiceException;
|
|||||||
import com.core.common.utils.MessageUtils;
|
import com.core.common.utils.MessageUtils;
|
||||||
import com.core.common.utils.StringUtils;
|
import com.core.common.utils.StringUtils;
|
||||||
import com.core.system.service.ISysUserService;
|
import com.core.system.service.ISysUserService;
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.security.core.userdetails.UserDetails;
|
||||||
|
import org.springframework.security.core.userdetails.UserDetailsService;
|
||||||
|
import org.springframework.security.core.userdetails.UsernameNotFoundException;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用户验证处理
|
* 用户验证处理
|
||||||
|
|||||||
@@ -1,24 +1,5 @@
|
|||||||
package com.core.generator.controller;
|
package com.core.generator.controller;
|
||||||
|
|
||||||
import java.io.BufferedWriter;
|
|
||||||
import java.io.FileWriter;
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.io.InputStream;
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
import javax.servlet.http.HttpServletResponse;
|
|
||||||
|
|
||||||
import org.apache.commons.io.IOUtils;
|
|
||||||
import org.apache.poi.ss.usermodel.*;
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.security.access.prepost.PreAuthorize;
|
|
||||||
import org.springframework.validation.annotation.Validated;
|
|
||||||
import org.springframework.web.bind.annotation.*;
|
|
||||||
import org.springframework.web.multipart.MultipartFile;
|
|
||||||
|
|
||||||
import com.alibaba.druid.DbType;
|
import com.alibaba.druid.DbType;
|
||||||
import com.alibaba.druid.sql.SQLUtils;
|
import com.alibaba.druid.sql.SQLUtils;
|
||||||
import com.alibaba.druid.sql.ast.SQLStatement;
|
import com.alibaba.druid.sql.ast.SQLStatement;
|
||||||
@@ -36,6 +17,23 @@ import com.core.generator.domain.GenTable;
|
|||||||
import com.core.generator.domain.GenTableColumn;
|
import com.core.generator.domain.GenTableColumn;
|
||||||
import com.core.generator.service.IGenTableColumnService;
|
import com.core.generator.service.IGenTableColumnService;
|
||||||
import com.core.generator.service.IGenTableService;
|
import com.core.generator.service.IGenTableService;
|
||||||
|
import org.apache.commons.io.IOUtils;
|
||||||
|
import org.apache.poi.ss.usermodel.*;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.security.access.prepost.PreAuthorize;
|
||||||
|
import org.springframework.validation.annotation.Validated;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
import org.springframework.web.multipart.MultipartFile;
|
||||||
|
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
import java.io.BufferedWriter;
|
||||||
|
import java.io.FileWriter;
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.io.InputStream;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 代码生成 操作处理
|
* 代码生成 操作处理
|
||||||
|
|||||||
@@ -1,15 +1,13 @@
|
|||||||
package com.core.generator.domain;
|
package com.core.generator.domain;
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import javax.validation.Valid;
|
|
||||||
import javax.validation.constraints.NotBlank;
|
|
||||||
|
|
||||||
import org.apache.commons.lang3.ArrayUtils;
|
|
||||||
|
|
||||||
import com.core.common.constant.GenConstants;
|
import com.core.common.constant.GenConstants;
|
||||||
import com.core.common.core.domain.BaseEntity;
|
import com.core.common.core.domain.BaseEntity;
|
||||||
import com.core.common.utils.StringUtils;
|
import com.core.common.utils.StringUtils;
|
||||||
|
import org.apache.commons.lang3.ArrayUtils;
|
||||||
|
|
||||||
|
import javax.validation.Valid;
|
||||||
|
import javax.validation.constraints.NotBlank;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 业务表 gen_table
|
* 业务表 gen_table
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
package com.core.generator.domain;
|
package com.core.generator.domain;
|
||||||
|
|
||||||
import javax.validation.constraints.NotBlank;
|
|
||||||
|
|
||||||
import com.core.common.core.domain.BaseEntity;
|
import com.core.common.core.domain.BaseEntity;
|
||||||
import com.core.common.utils.StringUtils;
|
import com.core.common.utils.StringUtils;
|
||||||
|
|
||||||
|
import javax.validation.constraints.NotBlank;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 代码生成业务字段表 gen_table_column
|
* 代码生成业务字段表 gen_table_column
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
package com.core.generator.mapper;
|
package com.core.generator.mapper;
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import com.core.generator.domain.GenTableColumn;
|
import com.core.generator.domain.GenTableColumn;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 业务字段 数据层
|
* 业务字段 数据层
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
package com.core.generator.mapper;
|
package com.core.generator.mapper;
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import com.core.generator.domain.GenTable;
|
import com.core.generator.domain.GenTable;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 业务 数据层
|
* 业务 数据层
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1,13 +1,12 @@
|
|||||||
package com.core.generator.service;
|
package com.core.generator.service;
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
|
|
||||||
import com.core.common.core.text.Convert;
|
import com.core.common.core.text.Convert;
|
||||||
import com.core.generator.domain.GenTableColumn;
|
import com.core.generator.domain.GenTableColumn;
|
||||||
import com.core.generator.mapper.GenTableColumnMapper;
|
import com.core.generator.mapper.GenTableColumnMapper;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 业务字段 服务层实现
|
* 业务字段 服务层实现
|
||||||
|
|||||||
@@ -1,28 +1,5 @@
|
|||||||
package com.core.generator.service;
|
package com.core.generator.service;
|
||||||
|
|
||||||
import java.io.ByteArrayOutputStream;
|
|
||||||
import java.io.File;
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.io.StringWriter;
|
|
||||||
import java.util.LinkedHashMap;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
import java.util.function.Function;
|
|
||||||
import java.util.stream.Collectors;
|
|
||||||
import java.util.zip.ZipEntry;
|
|
||||||
import java.util.zip.ZipOutputStream;
|
|
||||||
|
|
||||||
import org.apache.commons.io.FileUtils;
|
|
||||||
import org.apache.commons.io.IOUtils;
|
|
||||||
import org.apache.velocity.Template;
|
|
||||||
import org.apache.velocity.VelocityContext;
|
|
||||||
import org.apache.velocity.app.Velocity;
|
|
||||||
import org.slf4j.Logger;
|
|
||||||
import org.slf4j.LoggerFactory;
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
|
||||||
|
|
||||||
import com.alibaba.fastjson2.JSON;
|
import com.alibaba.fastjson2.JSON;
|
||||||
import com.alibaba.fastjson2.JSONObject;
|
import com.alibaba.fastjson2.JSONObject;
|
||||||
import com.core.common.constant.Constants;
|
import com.core.common.constant.Constants;
|
||||||
@@ -37,6 +14,28 @@ import com.core.generator.mapper.GenTableMapper;
|
|||||||
import com.core.generator.util.GenUtils;
|
import com.core.generator.util.GenUtils;
|
||||||
import com.core.generator.util.VelocityInitializer;
|
import com.core.generator.util.VelocityInitializer;
|
||||||
import com.core.generator.util.VelocityUtils;
|
import com.core.generator.util.VelocityUtils;
|
||||||
|
import org.apache.commons.io.FileUtils;
|
||||||
|
import org.apache.commons.io.IOUtils;
|
||||||
|
import org.apache.velocity.Template;
|
||||||
|
import org.apache.velocity.VelocityContext;
|
||||||
|
import org.apache.velocity.app.Velocity;
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
|
import java.io.ByteArrayOutputStream;
|
||||||
|
import java.io.File;
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.io.StringWriter;
|
||||||
|
import java.util.LinkedHashMap;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.function.Function;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
import java.util.zip.ZipEntry;
|
||||||
|
import java.util.zip.ZipOutputStream;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 业务 服务层实现
|
* 业务 服务层实现
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
package com.core.generator.service;
|
package com.core.generator.service;
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import com.core.generator.domain.GenTableColumn;
|
import com.core.generator.domain.GenTableColumn;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 业务字段 服务层
|
* 业务字段 服务层
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
package com.core.generator.service;
|
package com.core.generator.service;
|
||||||
|
|
||||||
|
import com.core.generator.domain.GenTable;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import com.core.generator.domain.GenTable;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 业务 服务层
|
* 业务 服务层
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1,14 +1,13 @@
|
|||||||
package com.core.generator.util;
|
package com.core.generator.util;
|
||||||
|
|
||||||
import java.util.Arrays;
|
|
||||||
|
|
||||||
import org.apache.commons.lang3.RegExUtils;
|
|
||||||
|
|
||||||
import com.core.common.constant.GenConstants;
|
import com.core.common.constant.GenConstants;
|
||||||
import com.core.common.utils.StringUtils;
|
import com.core.common.utils.StringUtils;
|
||||||
import com.core.generator.config.GenConfig;
|
import com.core.generator.config.GenConfig;
|
||||||
import com.core.generator.domain.GenTable;
|
import com.core.generator.domain.GenTable;
|
||||||
import com.core.generator.domain.GenTableColumn;
|
import com.core.generator.domain.GenTableColumn;
|
||||||
|
import org.apache.commons.lang3.RegExUtils;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 代码生成器 工具类
|
* 代码生成器 工具类
|
||||||
|
|||||||
@@ -1,10 +1,9 @@
|
|||||||
package com.core.generator.util;
|
package com.core.generator.util;
|
||||||
|
|
||||||
import java.util.Properties;
|
import com.core.common.constant.Constants;
|
||||||
|
|
||||||
import org.apache.velocity.app.Velocity;
|
import org.apache.velocity.app.Velocity;
|
||||||
|
|
||||||
import com.core.common.constant.Constants;
|
import java.util.Properties;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* VelocityEngine工厂
|
* VelocityEngine工厂
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user