Compare commits
335
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c52b3986e5 | ||
|
|
66025b661d | ||
|
|
74d99e6b60 | ||
|
|
c6dfad912d | ||
|
|
ce17f6ec90 | ||
|
|
5581ec5a8f | ||
|
|
ad3190c850 | ||
|
|
b8c25eccd7 | ||
|
|
4d991e6efd | ||
|
|
c429d14d43 | ||
|
|
7b4a5b52e7 | ||
|
|
fb1ab7fe46 | ||
|
|
efea836e50 | ||
|
|
c2fabdfbe4 | ||
|
|
4faad34c49 | ||
|
|
9a27919956 | ||
|
|
3faedcb033 | ||
|
|
16071c2a33 | ||
|
|
4cf7ea7768 | ||
|
|
56cfffbee4 | ||
|
|
31a04ab73b | ||
|
|
0ae7b493f7 | ||
|
|
9326b0e5e9 | ||
|
|
520f1eaa6a | ||
|
|
a9d2711532 | ||
|
|
515792a2f8 | ||
|
|
ede065a25b | ||
|
|
bc66fab897 | ||
|
|
0bdfeed86c | ||
|
|
fd320ffd22 | ||
|
|
fe24d44834 | ||
|
|
78337a0cc0 | ||
|
|
855d89df21 | ||
|
|
9c56e54f69 | ||
|
|
31e87a98d5 | ||
|
|
eda152c6f5 | ||
|
|
527e591619 | ||
|
|
d7e5802979 | ||
|
|
94afee5bb6 | ||
|
|
0a3721f35e | ||
|
|
8f0c40add1 | ||
|
|
273c34b44a | ||
|
|
527a12fd30 | ||
|
|
fe199a2a37 | ||
|
|
8a4b710bce | ||
|
|
06ec7b7706 | ||
|
|
971a0d4817 | ||
|
|
8113e1a7c3 | ||
|
|
7ad224ee4c | ||
|
|
84bd74d324 | ||
|
|
f135d5fc3c | ||
|
|
39d0c4f83f | ||
|
|
2b730a00c5 | ||
|
|
e82389d2dc | ||
|
|
ad41a38620 | ||
|
|
b7e75456ef | ||
|
|
a358522d4e | ||
|
|
d1e340af83 | ||
|
|
e6e99a5ea6 | ||
|
|
30510653a0 | ||
|
|
607c13c77c | ||
|
|
abf1e93ae3 | ||
|
|
df9ac8a574 | ||
|
|
763d60651d | ||
|
|
118145ab54 | ||
|
|
5119989f2e | ||
|
|
8d8ec86a8a | ||
|
|
98304d27b7 | ||
|
|
ed6a331e6e | ||
|
|
39ec2e3f59 | ||
|
|
f7a5a20549 | ||
|
|
e8eeed90fb | ||
|
|
1a862c3e2b | ||
|
|
c773ff8823 | ||
|
|
29b2e743ab | ||
|
|
e7d40a658c | ||
|
|
6fb8c71ee2 | ||
|
|
cc96117b7d | ||
|
|
caa4ec68c0 | ||
|
|
7f9e4e8034 | ||
|
|
08f8f19178 | ||
|
|
79d517d24c | ||
|
|
90dd340bad | ||
|
|
f4f8771378 | ||
|
|
c684905484 | ||
|
|
d0f00d1504 | ||
|
|
9043e8d698 | ||
|
|
b3bd36be60 | ||
|
|
d8d0e4fc9f | ||
|
|
e035219ed1 | ||
|
|
a83edf6a05 | ||
|
|
2b61492b15 | ||
|
|
a9f1e1f4d4 | ||
|
|
89de206bcb | ||
|
|
ab6aff8671 | ||
|
|
9a50476c62 | ||
|
|
1579a9a31c | ||
|
|
9b4c9854d5 | ||
|
|
d6996a20fc | ||
|
|
1c72dba543 | ||
|
|
2e1b887d66 | ||
|
|
f88c1c9836 | ||
|
|
8465bcd1c4 | ||
|
|
7fc388d049 | ||
|
|
fb40fce9cd | ||
|
|
02f9b46b22 | ||
|
|
2a70b54435 | ||
|
|
0bf4d47bf6 | ||
|
|
9fd7e0c656 | ||
|
|
2a4f2cbc69 | ||
|
|
54c5a33658 | ||
|
|
b731476302 | ||
|
|
1872025c95 | ||
|
|
3fabed19f2 | ||
|
|
68e2084f57 | ||
|
|
5e004678b6 | ||
|
|
80afc4045e | ||
|
|
c939713379 | ||
|
|
2697eac46b | ||
|
|
b86def053c | ||
|
|
5ee8c03671 | ||
|
|
fe8636ada2 | ||
|
|
a74ad64109 | ||
|
|
17bed2438f | ||
|
|
8990daf861 | ||
|
|
cb912a8c60 | ||
|
|
4921ab15ce | ||
|
|
358639a8ac | ||
|
|
0611f17b21 | ||
|
|
e119517d79 | ||
|
|
5f603bc69d | ||
|
|
7ce0185974 | ||
|
|
5102461a4c | ||
|
|
9702534db7 | ||
|
|
f0d50d53a9 | ||
|
|
f782c1fefb | ||
|
|
d62be7adc2 | ||
|
|
4f41f51def | ||
|
|
5e7f983624 | ||
|
|
46178e1a0e | ||
|
|
96ee918cb1 | ||
|
|
3b4e8eb02c | ||
|
|
c0746dfd0c | ||
|
|
dfacbdd72f | ||
|
|
4f7e4bf27f | ||
|
|
c910fc1916 | ||
|
|
464c166a70 | ||
|
|
68fe9c8e41 | ||
|
|
31001df0a7 | ||
|
|
e8434bd0ef | ||
|
|
a05dc8cda3 | ||
|
|
7ba5689e48 | ||
|
|
51bc53b1bf | ||
|
|
586c792e1e | ||
|
|
cb66f9f7e1 | ||
|
|
3ed189ca6c | ||
|
|
33177a56ac | ||
|
|
811b405ef3 | ||
|
|
680972f7c1 | ||
|
|
46c0976fdf | ||
|
|
1e6b799a51 | ||
|
|
e23eecdbfd | ||
|
|
e106e09fa5 | ||
|
|
ed7fc3fecc | ||
|
|
636003a8ea | ||
|
|
490f3a65cc | ||
|
|
caa112b0bd | ||
|
|
6a4af34561 | ||
|
|
a98eb63bcf | ||
|
|
7f75f35db0 | ||
|
|
a56e9c0ef7 | ||
|
|
cc500ccb1b | ||
|
|
030ab15cc2 | ||
|
|
2cb8fcf1e4 | ||
|
|
7ab9d15761 | ||
|
|
9f72363638 | ||
|
|
8a25b120e3 | ||
|
|
3c664413b9 | ||
|
|
40a240206b | ||
|
|
a15a0e7111 | ||
|
|
e44dd4496a | ||
|
|
4ba0457073 | ||
|
|
e226bd11c2 | ||
|
|
e419ed10f1 | ||
|
|
40e972572f | ||
|
|
cce34d8f06 | ||
|
|
6518a80148 | ||
|
|
9998468d2a | ||
|
|
c4fc11fd34 | ||
|
|
77beed2331 | ||
|
|
7da24748fb | ||
|
|
10a8e2a1ea | ||
|
|
839f682ca8 | ||
|
|
7aa0e6a32f | ||
|
|
1a0669e385 | ||
|
|
84db79fb22 | ||
|
|
eae7264ab9 | ||
|
|
4d8a02d45f | ||
|
|
e11fee3f53 | ||
|
|
97b8ac1263 | ||
|
|
37d15d17ef | ||
|
|
57ce4301fa | ||
|
|
cf12bc56cd | ||
|
|
84ddcac0ac | ||
|
|
a0ef9e2334 | ||
|
|
c6a779310d | ||
|
|
8e05e1335d | ||
|
|
d1169f4ffb | ||
|
|
35a8d33053 | ||
|
|
5afade11fa | ||
|
|
0ce6c412ae | ||
|
|
fee28d98ef | ||
|
|
a7f9338a71 | ||
|
|
69d784c70d | ||
|
|
78362e738c | ||
|
|
3de774517e | ||
|
|
2e4162a250 | ||
|
|
d27ea69389 | ||
|
|
7299cc0777 | ||
|
|
ba366587f4 | ||
|
|
af5438e1bc | ||
|
|
f6b02a9bd9 | ||
|
|
3a27f05122 | ||
|
|
96da469bef | ||
|
|
1235f019e4 | ||
|
|
65e2d4b92f | ||
|
|
ac0d185ae2 | ||
|
|
5cafcd3f43 | ||
|
|
a96b775e01 | ||
|
|
ff47d983e3 | ||
|
|
6bfc01d2fc | ||
|
|
621f3be143 | ||
|
|
7782b350c9 | ||
|
|
eaef798aef | ||
|
|
da9bf97667 | ||
|
|
66d09ef19c | ||
|
|
dbd4d4d198 | ||
|
|
b133788f01 | ||
|
|
c65bdaae47 | ||
|
|
9ca13415ee | ||
|
|
4c154ec746 | ||
|
|
3c604be299 | ||
|
|
7f3ebdaa5d | ||
|
|
23bb330f43 | ||
|
|
52d38807a7 | ||
|
|
6af0ab37d4 | ||
|
|
f475d940be | ||
|
|
84b6a87ca8 | ||
|
|
02175cad3f | ||
|
|
408b500b6a | ||
|
|
10ddfd6f75 | ||
|
|
df5e94886a | ||
|
|
af242be601 | ||
|
|
13d7a7acc5 | ||
|
|
de0cfd81f3 | ||
|
|
8ab20c7c9d | ||
|
|
01a7c33df2 | ||
|
|
e8fc85177a | ||
|
|
d4dd6426ce | ||
|
|
ee78b4030e | ||
|
|
bdd08300eb | ||
|
|
41a471de37 | ||
|
|
451a6488e0 | ||
|
|
186c8acd59 | ||
|
|
d262269862 | ||
|
|
dee8c01c99 | ||
|
|
717858fad1 | ||
|
|
b477c5913b | ||
|
|
094b763cfe | ||
|
|
925c915a9b | ||
|
|
20fa3ddd23 | ||
|
|
3175832c31 | ||
|
|
f1222850d8 | ||
|
|
45bea6622b | ||
|
|
d13d177ff8 | ||
|
|
b2abe0e761 | ||
|
|
7cae10800d | ||
|
|
d3a2f1c053 | ||
|
|
6999bb79a5 | ||
|
|
fd8d2f936f | ||
|
|
f58c38ae53 | ||
|
|
3b763b2e7f | ||
|
|
90a0dd6308 | ||
|
|
fcfa905a22 | ||
|
|
c4d74f9d21 | ||
|
|
7a75f7278d | ||
|
|
6d9d9f2124 | ||
|
|
4b850d35ea | ||
|
|
cec9adbd88 | ||
|
|
d9f3691f6b | ||
|
|
9cdc3ea908 | ||
|
|
4a9d625944 | ||
|
|
cf9f0f05d0 | ||
|
|
993fcc2fa4 | ||
|
|
8dc6298ee0 | ||
|
|
31c62956e8 | ||
|
|
626f2707fa | ||
|
|
6a0161e1dd | ||
|
|
0dd7f4a0d4 | ||
|
|
5aa8f61d71 | ||
|
|
4461e2b8c6 | ||
|
|
280c5bb544 | ||
|
|
667ae50972 | ||
|
|
72f949fc83 | ||
|
|
c571b7b894 | ||
|
|
6d4fa0f26e | ||
|
|
47a685f419 | ||
|
|
3cfa7cc82e | ||
|
|
56825ba89f | ||
|
|
63da239524 | ||
|
|
e4ca99ffb2 | ||
|
|
20e9e066bf | ||
|
|
603b5a584a | ||
|
|
fdcf22832a | ||
|
|
b830b201f7 | ||
|
|
3503558ebc | ||
|
|
50e44e24bd | ||
|
|
ea388107f8 | ||
|
|
9141be16d7 | ||
|
|
8d8827fa5c | ||
|
|
42be26d9f5 | ||
|
|
5fc45b31bc | ||
|
|
86b0158710 | ||
|
|
537b13e60e | ||
|
|
f203666186 | ||
|
|
ecc482ce13 | ||
|
|
3a48b6f34f | ||
|
|
44a4611736 | ||
|
|
ba869b62a5 | ||
|
|
c79c6c405c | ||
|
|
3ca3ee35fc | ||
|
|
9f6f6a1ce5 | ||
|
|
60f777b400 | ||
|
|
f9e472e0b6 | ||
|
|
d3ac51e988 |
@@ -0,0 +1,89 @@
|
|||||||
|
{
|
||||||
|
"permissions": {
|
||||||
|
"allow": [
|
||||||
|
"Read(/F:\\project\\go-fly-platform-services\\zlt-doc/**)",
|
||||||
|
"Read(/F:\\project\\go-fly-platform-services\\zlt-doc/**)",
|
||||||
|
"Read(/F:\\project\\go-fly-platform-services\\zlt-doc/**)",
|
||||||
|
"Read(/F:\\project\\go-fly-platform-services\\zlt-doc/**)",
|
||||||
|
"Read(/F:\\project\\go-fly-platform-services\\zlt-doc/**)",
|
||||||
|
"Read(/F:\\project\\go-fly-platform-services\\zlt-doc/**)",
|
||||||
|
"Read(/F:\\project\\go-fly-platform-services\\zlt-doc/**)",
|
||||||
|
"Read(/F:\\project\\go-fly-platform-services\\zlt-doc/**)",
|
||||||
|
"Bash(mvn compile:*)",
|
||||||
|
"Bash(java:*)",
|
||||||
|
"Bash(mvn spring-boot:run:*)",
|
||||||
|
"Bash(mvn clean:*)",
|
||||||
|
"Bash(npm install:*)",
|
||||||
|
"Bash(lsof:*)",
|
||||||
|
"Bash(findstr:*)",
|
||||||
|
"Bash(npm run start:*)",
|
||||||
|
"Bash(npm start)",
|
||||||
|
"Bash(npm run build:*)",
|
||||||
|
"Bash(dir:*)",
|
||||||
|
"Bash(git add:*)",
|
||||||
|
"Bash(git commit -m \"$(cat <<''EOF''\nfix: 修复首页分账计算模块显示问题\n\n- 显示被隐藏的分账计算模块(移除 display: ''none'')\n- 调整 platformSharePercent 状态变量定义顺序\n- 优化 Slider 组件:\n - 设置标记文字颜色为深灰色 (#666),避免看不清\n - 添加 tooltip 提示框,拖动时显示当前百分比\n - 设置 tooltip 背景为深色,文字为白色,确保清晰可见\n- 移除重复的 90% 标记,只保留 0%、50%、100%\n\n🤖 Generated with Claude Code\n\nCo-Authored-By: Claude <noreply@anthropic.com>\nEOF\n)\")",
|
||||||
|
"Bash(git commit:*)",
|
||||||
|
"Read(//f/**)",
|
||||||
|
"Bash(git checkout:*)",
|
||||||
|
"Bash(git diff:*)",
|
||||||
|
"Bash(grep:*)",
|
||||||
|
"Bash(npm run tsc:*)",
|
||||||
|
"Bash(node:*)",
|
||||||
|
"Bash(javac:*)",
|
||||||
|
"WebFetch(domain:github.com)",
|
||||||
|
"WebFetch(domain:gitee.com)",
|
||||||
|
"Bash(mkdir:*)",
|
||||||
|
"Bash(rd /s /q scenic-3d-visualization)",
|
||||||
|
"Bash(git clone:*)",
|
||||||
|
"Bash(pnpm:*)",
|
||||||
|
"Bash(npx tsc:*)",
|
||||||
|
"WebSearch",
|
||||||
|
"Bash(del srcmainjavacomcentraldevicewebsocketclientDeviceWebSocketClient.java)",
|
||||||
|
"Bash(del \"F:\\project\\go-fly-platform-services\\zlt-business\\device-center\\src\\main\\java\\com\\central\\device\\websocket\\client\\DeviceWebSocketClient.java\")",
|
||||||
|
"Bash(mvn dependency:resolve:*)",
|
||||||
|
"Bash(mvn dependency:tree:*)",
|
||||||
|
"Bash(ren:*)",
|
||||||
|
"Bash(move FireAlarmEventMessage.java DeviceStateEventMessage.java)",
|
||||||
|
"Bash(del TourismDevices.tsx TourismDevices.less DeviceDetail.tsx DeviceDetail.less)",
|
||||||
|
"Bash(find:*)",
|
||||||
|
"Bash(cat:*)",
|
||||||
|
"Bash(cd:*)",
|
||||||
|
"Bash(xcopy:*)",
|
||||||
|
"Bash(robocopy:*)",
|
||||||
|
"Bash(powershell:*)",
|
||||||
|
"Bash(curl:*)",
|
||||||
|
"Bash(del \"F:\\project\\go-fly-platform-services\\zlt-business\\device-center\\src\\main\\java\\com\\central\\device\\service\\MinioModelUploadService.java\")",
|
||||||
|
"Bash(cmd /c \"dir /s /b \"\"D:\\模型\\新建模型重建-2025-09-29 20_24_08 (UTC+08)\\model\\download\"\"\")",
|
||||||
|
"Bash(cmd /c \"dir \"\"D:\\模型\\新建模型重建-2025-09-29 20_24_08 (UTC+08)\\model\\download\"\"\")",
|
||||||
|
"Bash(del \"F:\\project\\go-fly-platform-services\\zlt-business\\device-center\\src\\main\\java\\com\\central\\device\\websocket\\config\\DeviceControlWebSocketConfig.java\")",
|
||||||
|
"Bash(del \"F:\\project\\go-fly-platform-services\\zlt-web\\react-web-next\\src\\services\\deviceControlWs.ts\")",
|
||||||
|
"Bash(del:*)",
|
||||||
|
"Bash(cmd /c del \"F:\\project\\go-fly-platform-services\\zlt-business\\device-center\\src\\main\\java\\com\\central\\device\\controller\\CdnProxyController.java\")",
|
||||||
|
"Bash(cmd /c del \"F:\\project\\go-fly-platform-services\\zlt-business\\device-center\\src\\main\\java\\com\\central\\device\\websocket\\config\\DeviceControlWebSocketConfig.java\")",
|
||||||
|
"Bash(cmd /c del \"F:\\project\\go-fly-platform-services\\zlt-business\\device-center\\src\\main\\java\\com\\central\\device\\websocket\\handler\\DeviceControlWebSocketHandler.java\")",
|
||||||
|
"Bash(tree:*)",
|
||||||
|
"Bash(move \"F:\\\\project\\\\go-fly-platform-services\\\\zlt-business\\\\order-center\\\\src\\\\main\\\\resources\\\\mapper\\\\mission\\\\MissionMapper.xml\" \"F:\\\\project\\\\go-fly-platform-services\\\\zlt-business\\\\order-center\\\\src\\\\main\\\\resources\\\\mapper\\\\MissionMapper.xml\")",
|
||||||
|
"Bash(cmd /c move:*)",
|
||||||
|
"Bash(set:*)",
|
||||||
|
"Bash(copy \"F:\\\\project\\\\go-fly-platform-services\\\\zlt-web\\\\react-web-next\\\\src\\\\assets\\\\logo.png\" \"F:\\\\project\\\\go-fly-platform-services\\\\zlt-web\\\\yingyan\\\\src\\\\assets\\\\logo.png\")",
|
||||||
|
"Bash(cmd /c copy \"F:\\\\project\\\\go-fly-platform-services\\\\zlt-web\\\\react-web-next\\\\src\\\\assets\\\\logo.png\" \"F:\\\\project\\\\go-fly-platform-services\\\\zlt-web\\\\yingyan\\\\src\\\\assets\\\\logo.png\")",
|
||||||
|
"Bash(xargs find)",
|
||||||
|
"Bash(for file in RouteToolbar.tsx RoutePreview.tsx WaypointEditor.tsx)",
|
||||||
|
"Bash(do if [ -f \"$file\" ])",
|
||||||
|
"Bash(else echo \"✗ $file NOT FOUND\")",
|
||||||
|
"Bash(fi)",
|
||||||
|
"Bash(done)",
|
||||||
|
"Bash(tasklist:*)",
|
||||||
|
"Bash(test:*)",
|
||||||
|
"WebFetch(domain:dev.qweather.com)",
|
||||||
|
"Bash(unzip:*)",
|
||||||
|
"Bash(pip install:*)",
|
||||||
|
"Bash(python3:*)",
|
||||||
|
"Bash(npx:*)",
|
||||||
|
"Bash(xargs head:*)",
|
||||||
|
"Bash(rm:*)"
|
||||||
|
],
|
||||||
|
"deny": [],
|
||||||
|
"ask": []
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -6,3 +6,7 @@ nacos/
|
|||||||
|
|
||||||
*.iml
|
*.iml
|
||||||
*.versionsBackup
|
*.versionsBackup
|
||||||
|
|
||||||
|
# Claude Code specific
|
||||||
|
.claude/agents/
|
||||||
|
.claude/team-collaboration-matrix.md
|
||||||
|
|||||||
@@ -0,0 +1,104 @@
|
|||||||
|
# Central Platform - 企业级微服务脚手架 AI 开发指南
|
||||||
|
|
||||||
|
## 项目概述
|
||||||
|
**项目类型**: 企业级Spring Cloud微服务脚手架
|
||||||
|
**主要功能**: 用户权限管理 + 文件存储 + 全文搜索 + 微服务基础设施
|
||||||
|
**技术栈**: Java 17 + Spring Cloud + React + MySQL + Redis + Elasticsearch
|
||||||
|
**定位**: 通用后台管理系统脚手架
|
||||||
|
|
||||||
|
## 核心模块
|
||||||
|
|
||||||
|
### 🏗️ 基础设施层
|
||||||
|
- **API网关** - Spring Cloud Gateway + Sentinel 限流熔断
|
||||||
|
- **认证中心** - OAuth2 + JWT + Spring Security
|
||||||
|
- **配置中心** - Nacos Config 集中配置管理
|
||||||
|
- **监控中心** - Spring Boot Admin 应用监控
|
||||||
|
|
||||||
|
### 📦 公共组件库
|
||||||
|
- **通用工具** - 核心工具类、通用配置
|
||||||
|
- **数据库集成** - MyBatis Plus + 多数据源
|
||||||
|
- **缓存集成** - Redis + Redisson 分布式锁
|
||||||
|
- **日志集成** - 集中式日志收集
|
||||||
|
- **搜索集成** - Elasticsearch 全文搜索
|
||||||
|
- **存储集成** - 多云对象存储(OSS、MinIO)
|
||||||
|
|
||||||
|
### 💼 业务模块
|
||||||
|
- **用户中心** - 用户、角色、权限、租户管理
|
||||||
|
- **文件中心** - 文件上传下载、多云存储
|
||||||
|
- **搜索中心** - 全文搜索服务
|
||||||
|
- **代码生成器** - 基于数据库表的代码生成
|
||||||
|
|
||||||
|
## 开发工作流
|
||||||
|
|
||||||
|
### 🎯 新功能开发
|
||||||
|
```bash
|
||||||
|
# 示例: 添加新的业务模块
|
||||||
|
参考 demo-center 示例模块创建新的业务服务
|
||||||
|
1. 创建模块目录结构
|
||||||
|
2. 配置 pom.xml 依赖
|
||||||
|
3. 实现业务逻辑
|
||||||
|
4. 注册到 Nacos
|
||||||
|
```
|
||||||
|
|
||||||
|
### 🔧 系统优化
|
||||||
|
```bash
|
||||||
|
# 示例: 微服务性能优化
|
||||||
|
1. 分析服务调用链路
|
||||||
|
2. 优化数据库查询
|
||||||
|
3. 添加缓存策略
|
||||||
|
4. 配置限流规则
|
||||||
|
```
|
||||||
|
|
||||||
|
### 🚨 问题排查
|
||||||
|
```bash
|
||||||
|
# 示例: 服务异常排查
|
||||||
|
1. 查看 Nacos 服务注册状态
|
||||||
|
2. 检查日志中心日志
|
||||||
|
3. 查看监控中心指标
|
||||||
|
4. 验证配置中心配置
|
||||||
|
```
|
||||||
|
|
||||||
|
## 技术规范
|
||||||
|
|
||||||
|
### 📋 开发标准
|
||||||
|
- **后端**: Spring Boot 3.1.6 + MyBatis Plus 3.5.4 + Java 17
|
||||||
|
- **前端**: React 17 + Ant Design 4.20 + UmiJS 3.5
|
||||||
|
- **数据库**: MySQL 8.0 + Redis 7.0 + Elasticsearch 7.13
|
||||||
|
- **部署**: Docker + Kubernetes + Nacos
|
||||||
|
|
||||||
|
### 🔒 安全要求
|
||||||
|
- OAuth2 + JWT 认证授权
|
||||||
|
- 多租户数据隔离
|
||||||
|
- API 访问频率限制
|
||||||
|
- 敏感数据加密存储
|
||||||
|
|
||||||
|
### 📊 性能指标
|
||||||
|
- 服务响应时间 < 200ms
|
||||||
|
- 数据库查询优化(避免 N+1 问题)
|
||||||
|
- 缓存命中率 > 80%
|
||||||
|
- 服务可用性 > 99.9%
|
||||||
|
|
||||||
|
## 快速开始
|
||||||
|
|
||||||
|
### 环境准备
|
||||||
|
1. JDK 17+
|
||||||
|
2. Maven 3.6+
|
||||||
|
3. MySQL 8.0+
|
||||||
|
4. Redis 7.0+
|
||||||
|
5. Nacos 2.0+
|
||||||
|
|
||||||
|
### 启动步骤
|
||||||
|
1. 初始化数据库: `mysql < zlt-doc/database/init.sql`
|
||||||
|
2. 启动 Nacos
|
||||||
|
3. 启动网关 (9900)
|
||||||
|
4. 启动认证中心 (8000)
|
||||||
|
5. 启动用户中心 (7000)
|
||||||
|
6. 启动文件中心 (5000)
|
||||||
|
|
||||||
|
### 默认账号
|
||||||
|
- 用户名: `admin`
|
||||||
|
- 密码: `admin123`
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
**🚀 企业级微服务脚手架,快速构建你的业务系统!**
|
||||||
+168
@@ -0,0 +1,168 @@
|
|||||||
|
# 快速开始指南
|
||||||
|
|
||||||
|
本指南将帮助你快速搭建和运行 Central Platform 微服务脚手架。
|
||||||
|
|
||||||
|
## 前置准备
|
||||||
|
|
||||||
|
### 1. 安装必要软件
|
||||||
|
|
||||||
|
- **JDK 17**: [下载地址](https://www.oracle.com/java/technologies/downloads/)
|
||||||
|
- **Maven 3.6+**: [下载地址](https://maven.apache.org/download.cgi)
|
||||||
|
- **MySQL 8.0+**: [下载地址](https://dev.mysql.com/downloads/mysql/)
|
||||||
|
- **Redis 7.0+**: [下载地址](https://redis.io/download)
|
||||||
|
- **Nacos 2.0+**: [下载地址](https://github.com/alibaba/nacos/releases)
|
||||||
|
|
||||||
|
### 2. 验证安装
|
||||||
|
|
||||||
|
```bash
|
||||||
|
java -version # 应显示 Java 17
|
||||||
|
mvn -version # 应显示 Maven 3.6+
|
||||||
|
mysql --version # 应显示 MySQL 8.0+
|
||||||
|
redis-server --version # 应显示 Redis 7.0+
|
||||||
|
```
|
||||||
|
|
||||||
|
## 第一步:数据库初始化
|
||||||
|
|
||||||
|
### 1. 创建数据库
|
||||||
|
|
||||||
|
```bash
|
||||||
|
mysql -u root -p
|
||||||
|
```
|
||||||
|
|
||||||
|
### 2. 执行初始化脚本
|
||||||
|
|
||||||
|
```bash
|
||||||
|
mysql -u root -p < zlt-doc/database/init.sql
|
||||||
|
```
|
||||||
|
|
||||||
|
脚本会自动创建:
|
||||||
|
- 数据库 `central_platform`
|
||||||
|
- 核心表(用户、角色、菜单等)
|
||||||
|
- 默认管理员账号(admin/admin123)
|
||||||
|
|
||||||
|
## 第二步:启动 Nacos
|
||||||
|
|
||||||
|
### 1. 下载并解压 Nacos
|
||||||
|
|
||||||
|
```bash
|
||||||
|
wget https://github.com/alibaba/nacos/releases/download/2.2.0/nacos-server-2.2.0.tar.gz
|
||||||
|
tar -xvf nacos-server-2.2.0.tar.gz
|
||||||
|
cd nacos
|
||||||
|
```
|
||||||
|
|
||||||
|
### 2. 单机模式启动
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Linux/Mac
|
||||||
|
sh bin/startup.sh -m standalone
|
||||||
|
|
||||||
|
# Windows
|
||||||
|
cmd bin/startup.cmd -m standalone
|
||||||
|
```
|
||||||
|
|
||||||
|
### 3. 访问控制台
|
||||||
|
|
||||||
|
- 地址: http://localhost:8848/nacos
|
||||||
|
- 账号: nacos
|
||||||
|
- 密码: nacos
|
||||||
|
|
||||||
|
## 第三步:启动 Redis
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Linux/Mac
|
||||||
|
redis-server
|
||||||
|
|
||||||
|
# Windows
|
||||||
|
redis-server.exe
|
||||||
|
```
|
||||||
|
|
||||||
|
## 第四步:编译项目
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cd central-platform
|
||||||
|
mvn clean install -DskipTests
|
||||||
|
```
|
||||||
|
|
||||||
|
## 第五步:启动服务
|
||||||
|
|
||||||
|
### 方式一:IDE 启动(推荐开发环境)
|
||||||
|
|
||||||
|
按以下顺序启动:
|
||||||
|
|
||||||
|
1. **网关服务** - `zlt-gateway/sc-gateway/src/main/java/com/central/gateway/GatewayApp.java`
|
||||||
|
2. **认证中心** - `zlt-uaa/src/main/java/com/central/oauth/UaaServerApplication.java`
|
||||||
|
3. **用户中心** - `zlt-business/user-center/src/main/java/com/central/user/UserCenterApplication.java`
|
||||||
|
4. **文件中心** - `zlt-business/file-center/src/main/java/com/central/file/FileCenterApplication.java`
|
||||||
|
|
||||||
|
### 方式二:命令行启动
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# 启动网关
|
||||||
|
cd zlt-gateway/sc-gateway
|
||||||
|
mvn spring-boot:run
|
||||||
|
|
||||||
|
# 启动认证中心
|
||||||
|
cd zlt-uaa
|
||||||
|
mvn spring-boot:run
|
||||||
|
|
||||||
|
# 启动用户中心
|
||||||
|
cd zlt-business/user-center
|
||||||
|
mvn spring-boot:run
|
||||||
|
|
||||||
|
# 启动文件中心
|
||||||
|
cd zlt-business/file-center
|
||||||
|
mvn spring-boot:run
|
||||||
|
```
|
||||||
|
|
||||||
|
## 第六步:验证服务
|
||||||
|
|
||||||
|
### 1. 检查 Nacos 服务注册
|
||||||
|
|
||||||
|
访问 http://localhost:8848/nacos,在"服务管理 > 服务列表"中应该看到:
|
||||||
|
- sc-gateway
|
||||||
|
- uaa-server
|
||||||
|
- user-center
|
||||||
|
- file-center
|
||||||
|
|
||||||
|
### 2. 访问 API 文档
|
||||||
|
|
||||||
|
http://localhost:9900/doc.html
|
||||||
|
|
||||||
|
### 3. 测试登录接口
|
||||||
|
|
||||||
|
```bash
|
||||||
|
curl -X POST "http://localhost:9900/api-uaa/oauth/token" \
|
||||||
|
-H "Authorization: Basic d2ViQXBwOndlYkFwcA==" \
|
||||||
|
-d "username=admin&password=admin123&grant_type=password"
|
||||||
|
```
|
||||||
|
|
||||||
|
## 常见问题
|
||||||
|
|
||||||
|
### 1. 端口被占用
|
||||||
|
|
||||||
|
修改各服务的 `application.yml` 中的 `server.port` 配置。
|
||||||
|
|
||||||
|
### 2. Nacos 连接失败
|
||||||
|
|
||||||
|
检查 `bootstrap.yml` 中的 Nacos 地址配置:
|
||||||
|
```yaml
|
||||||
|
spring:
|
||||||
|
cloud:
|
||||||
|
nacos:
|
||||||
|
discovery:
|
||||||
|
server-addr: localhost:8848
|
||||||
|
```
|
||||||
|
|
||||||
|
### 3. 数据库连接失败
|
||||||
|
|
||||||
|
检查 Nacos 配置中心的数据库配置。
|
||||||
|
|
||||||
|
## 下一步
|
||||||
|
|
||||||
|
- 查看 [开发指南](./DEVELOPMENT.md)
|
||||||
|
- 了解 [架构设计](./ARCHITECTURE.md)
|
||||||
|
- 参考 [API 文档](http://localhost:9900/doc.html)
|
||||||
|
|
||||||
|
## 获取帮助
|
||||||
|
|
||||||
|
- GitHub Issues: https://github.com/zlt2000/microservices-platform/issues
|
||||||
@@ -1,176 +1,123 @@
|
|||||||
# zlt-microservices-platform
|
# Central Platform - 企业级微服务脚手架
|
||||||
|
|
||||||
<p align="center">
|
[](https://www.oracle.com/java/)
|
||||||
<img src="https://img.shields.io/badge/Version-6.0.0-critical" alt="Downloads"/>
|
[](https://spring.io/projects/spring-boot)
|
||||||
<img src="https://img.shields.io/badge/JDK-17-8A2BE2" alt="Downloads"/>
|
[](https://spring.io/projects/spring-cloud)
|
||||||
<img src="https://img.shields.io/badge/Spring Authorization Server-1.1.3-40A24E" alt="Downloads"/>
|
[](https://www.apache.org/licenses/LICENSE-2.0)
|
||||||
<img src="https://img.shields.io/badge/Spring%20Boot-3.1.6-blue" alt="Downloads"/>
|
|
||||||
<img src="https://img.shields.io/badge/Spring%20Cloud-2022.0.4-blue" alt="Downloads"/>
|
|
||||||
<img src="https://img.shields.io/badge/Spring%20Cloud%20Alibaba-2022.0.0.0-blue" alt="Downloads"/>
|
|
||||||
<img src="https://img.shields.io/badge/Elasticsearch-7.x-34A2AE" alt="Downloads"/>
|
|
||||||
<img src="https://img.shields.io/badge/Ant%20Design-pro-9cf" alt="Downloads"/>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
|
## 项目简介
|
||||||
|
|
||||||
|
Central Platform 是一个基于 Spring Cloud 的企业级微服务脚手架,提供完整的微服务基础设施和通用业务模块,帮助快速构建企业级应用。
|
||||||
|
|
||||||
|
### 核心特性
|
||||||
|
|
||||||
|
- ✅ **微服务架构** - 基于 Spring Cloud 2022.0.4
|
||||||
|
- ✅ **服务治理** - Nacos 服务注册发现与配置中心
|
||||||
|
- ✅ **API 网关** - Spring Cloud Gateway + Sentinel 限流熔断
|
||||||
|
- ✅ **认证授权** - OAuth2 + JWT + Spring Security
|
||||||
|
- ✅ **多租户支持** - 完整的多租户数据隔离方案
|
||||||
|
- ✅ **分布式缓存** - Redis + Redisson 分布式锁
|
||||||
|
- ✅ **数据库** - MyBatis Plus + 多数据源
|
||||||
|
- ✅ **全文搜索** - Elasticsearch 集成
|
||||||
|
- ✅ **文件存储** - 多云存储支持(阿里云OSS、七牛云、MinIO)
|
||||||
|
- ✅ **监控中心** - Spring Boot Admin 应用监控
|
||||||
|
- ✅ **代码生成** - 基于数据库表的代码生成器
|
||||||
|
|
||||||
## 如果您觉得有帮助,请点右上角 "Star" 支持一下谢谢
|
## 技术栈
|
||||||
|
|
||||||
## 1. 总体架构图
|
|
||||||

|
|
||||||
|
|
||||||
|
| 技术 | 版本 | 说明 |
|
||||||
## 2. 功能介绍
|
|------|------|------|
|
||||||

|
| Java | 17 | 编程语言 |
|
||||||
|
| Spring Boot | 3.1.6 | 应用框架 |
|
||||||
|
| Spring Cloud | 2022.0.4 | 微服务框架 |
|
||||||
|
| Spring Cloud Alibaba | 2022.0.0.0 | 阿里云组件 |
|
||||||
|
| MyBatis Plus | 3.5.4.1 | ORM 框架 |
|
||||||
|
| MySQL | 8.0+ | 关系数据库 |
|
||||||
|
| Redis | 7.0+ | 缓存数据库 |
|
||||||
|
| Elasticsearch | 7.13.4 | 搜索引擎 |
|
||||||
|
| Nacos | Latest | 注册中心/配置中心 |
|
||||||
|
| Sentinel | Latest | 限流熔断 |
|
||||||
|
|
||||||
|
## 模块说明
|
||||||
## 3. 项目介绍
|
|
||||||
* **技术交流群**
|
|
||||||
<table>
|
|
||||||
<tr>
|
|
||||||
<td><center><strong><a href="https://qm.qq.com/cgi-bin/qm/qr?k=HntAHTirZwCEjF8PQpjDYkw37Zx5rJg8&jump_from=webapi" target="_blank">交流三群</a></strong></center></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><a href="https://qm.qq.com/cgi-bin/qm/qr?k=HntAHTirZwCEjF8PQpjDYkw37Zx5rJg8&jump_from=webapi" target="_blank"><img width=250px height=300px alt="交流三群" src="https://gitee.com/zlt2000/images/raw/master/%E4%BA%A4%E6%B5%81%E4%B8%89%E7%BE%A4.png"/></a></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
|
|
||||||
* **详细在线文档** :https://www.kancloud.cn/zlt2000/microservices-platform/919418
|
|
||||||
* **[项目更新日志](https://www.kancloud.cn/zlt2000/microservices-platform/936235)**
|
|
||||||
* **[文档更新日志](https://www.kancloud.cn/zlt2000/microservices-platform/936236)**
|
|
||||||
* **演示环境地址**: [http://zlt2000.cn](http://zlt2000.cn/)
|
|
||||||
* 账号密码:admin/admin
|
|
||||||
* Grafana账号:zlt/zlt123
|
|
||||||
* **演示环境有全方位的监控示例:日志系统 + APM系统 + GPE系统**
|
|
||||||
* Gitee地址:https://gitee.com/zlt2000/microservices-platform
|
|
||||||
* Github地址:https://github.com/zlt2000/microservices-platform
|
|
||||||
* 前后端分离的企业级微服务架构
|
|
||||||
* 主要针对解决微服务和业务开发时常见的**非功能性需求**
|
|
||||||
* 基于 `Spring Authorization Server` 深度定制`Spring Security`真正实现了基于`RBAC`、`jwt`和`oauth2`的无状态统一权限认证的解决方案
|
|
||||||
* 提供应用管理,方便第三方系统接入,**支持多租户(应用隔离)**
|
|
||||||
* 引入组件化的思想实现高内聚低耦合并且高度可配置化
|
|
||||||
* 注重代码规范,严格控制包依赖,每个工程基本都是最小依赖
|
|
||||||
* 非常适合学习和企业中使用
|
|
||||||
>重构于开源项目OCP&cp:https://gitee.com/owenwangwen/open-capacity-platform
|
|
||||||
|
|
||||||
|
|
||||||
## 4. 分支说明
|
|
||||||
| 分支名 | JDK | Spring Boot | Spring Cloud | Spring Security |
|
|
||||||
| --- | --- | --- | --- |---|
|
|
||||||
| master | 17 | 3.x | 2022.x | Spring Authorization Server |
|
|
||||||
| 5.x | 1.8 | 2.5.x | 2020.x | Spring Security OAuth |
|
|
||||||
| 4.x | 1.8 | 2.3.x | 2.2.x | Spring Security OAuth |
|
|
||||||
|
|
||||||
|
|
||||||
## 5. 模块说明
|
|
||||||
```lua
|
```lua
|
||||||
central-platform -- 父项目,公共依赖
|
central-platform -- 父项目,公共依赖
|
||||||
│ ├─zlt-business -- 业务模块一级工程
|
│ ├─zlt-business -- 业务模块一级工程
|
||||||
│ │ ├─user-center -- 用户中心[7000]
|
│ │ ├─user-center -- 用户中心[7000]
|
||||||
│ │ ├─file-center -- 文件中心[5000]
|
│ │ ├─file-center -- 文件中心[5000]
|
||||||
│ │ ├─code-generator -- 代码生成器[7300]
|
|
||||||
│ │ ├─search-center -- 搜索中心
|
│ │ ├─search-center -- 搜索中心
|
||||||
│ │ │ ├─search-client -- 搜索中心客户端
|
│ │ │ ├─search-client -- 搜索中心客户端
|
||||||
│ │ │ ├─search-server -- 搜索中心服务端[7100]
|
│ │ │ ├─search-server -- 搜索中心服务端[7100]
|
||||||
│ │─zlt-commons -- 通用工具一级工程
|
│ │ ├─code-generator -- 代码生成器[7300]
|
||||||
│ │ ├─zlt-auth-client-spring-boot-starter -- 封装spring security client端的通用操作逻辑
|
│ │ └─demo-center -- 示例模块[8100]
|
||||||
│ │ ├─zlt-common-core -- 封装通用操作逻辑
|
│ ├─zlt-commons -- 通用工具一级工程
|
||||||
│ │ ├─zlt-common-spring-boot-starter -- 封装通用操作逻辑
|
│ │ ├─zlt-common-core -- 核心工具类
|
||||||
│ │ ├─zlt-db-spring-boot-starter -- 封装数据库通用操作逻辑
|
│ │ ├─zlt-common-spring-boot-starter -- 通用配置
|
||||||
│ │ ├─zlt-log-spring-boot-starter -- 封装log通用操作逻辑
|
│ │ ├─zlt-db-spring-boot-starter -- 数据库集成
|
||||||
│ │ ├─zlt-redis-spring-boot-starter -- 封装Redis通用操作逻辑
|
│ │ ├─zlt-redis-spring-boot-starter -- Redis集成
|
||||||
│ │ ├─zlt-loadbalancer-spring-boot-starter -- 封装Loadbalancer和Feign的通用操作逻辑
|
│ │ ├─zlt-log-spring-boot-starter -- 日志集成
|
||||||
│ │ ├─zlt-sentinel-spring-boot-starter -- 封装Sentinel的通用操作逻辑
|
│ │ ├─zlt-auth-client-spring-boot-starter -- 认证客户端
|
||||||
│ │ ├─zlt-elasticsearch-spring-boot-starter -- 封装Elasticsearch通用操作逻辑
|
│ │ ├─zlt-loadbalancer-spring-boot-starter -- 负载均衡
|
||||||
│ │ ├─zlt-oss-spring-boot-starter -- 封装对象存储通用操作逻辑
|
│ │ ├─zlt-sentinel-spring-boot-starter -- 限流熔断
|
||||||
│ │ ├─zlt-zookeeper-spring-boot-starter -- 封装Zookeeper通用操作逻辑
|
│ │ ├─zlt-elasticsearch-spring-boot-starter -- 搜索引擎
|
||||||
|
│ │ ├─zlt-oss-spring-boot-starter -- 对象存储
|
||||||
|
│ │ ├─zlt-sms-spring-boot-starter -- 短信集成
|
||||||
|
│ │ ├─zlt-zookeeper-spring-boot-starter -- Zookeeper集成
|
||||||
|
│ │ ├─zlt-wechat-common-core -- 微信通用核心
|
||||||
|
│ │ └─zlt-wechat-spring-boot-starter -- 微信集成
|
||||||
|
│ ├─zlt-gateway -- API网关[9900]
|
||||||
|
│ ├─zlt-uaa -- 认证授权中心[8000]
|
||||||
│ ├─zlt-config -- 配置中心
|
│ ├─zlt-config -- 配置中心
|
||||||
│ ├─zlt-doc -- 项目文档
|
│ ├─zlt-monitor -- 监控中心
|
||||||
│ ├─zlt-gateway -- api网关一级工程
|
|
||||||
│ │ ├─sc-gateway -- spring-cloud-gateway[9900]
|
|
||||||
│ ├─zlt-monitor -- 监控一级工程
|
|
||||||
│ │ ├─sc-admin -- 应用监控[6500]
|
│ │ ├─sc-admin -- 应用监控[6500]
|
||||||
│ │ ├─log-center -- 日志中心[7200]
|
│ │ └─log-center -- 日志中心[7200]
|
||||||
│ ├─zlt-uaa -- spring-security认证中心[8000]
|
│ └─zlt-doc -- 项目文档
|
||||||
│ ├─zlt-register -- 注册中心Nacos[8848]
|
└─database -- 数据库脚本
|
||||||
│ ├─zlt-web -- 前端一级工程
|
|
||||||
│ │ ├─layui-web -- layui前端[8066]
|
|
||||||
│ │ ├─react-web -- react前端[8066]
|
|
||||||
│ ├─zlt-demo -- demo一级工程
|
|
||||||
│ │ ├─dubbo-demo -- dubbo服务demo
|
|
||||||
│ │ ├─resource-server-demo -- 资源服务器demo
|
|
||||||
│ │ ├─seata-demo -- seata分布式事务demo
|
|
||||||
│ │ ├─sharding-jdbc-demo -- sharding-jdbc分库分表demo
|
|
||||||
│ │ ├─rocketmq-demo -- rocketmq和mq事务demo
|
|
||||||
│ │ ├─sso-demo -- 单点登录demo
|
|
||||||
│ │ ├─websocket-demo -- websocket demo
|
|
||||||
```
|
```
|
||||||
|
|
||||||
<table>
|
## 快速开始
|
||||||
<tr>
|
|
||||||
<td><a target="_blank" href="https://www.aliyun.com/minisite/goods?userCode=dickv1kw&share_source=copy_link"><img width="460px" height="177px" alt="阿里云" src="https://gitee.com/zlt2000/images/raw/master/aly.jpg"/></a></td>
|
|
||||||
<td><a target="_blank" href="https://cloud.tencent.com/act/cps/redirect?redirect=1074&cps_key=5516bbd5876cd224d90bd41d53d3f7fe&from=console"><img width="460px" height="177px" alt="腾讯云" src="https://gitee.com/zlt2000/images/raw/master/txy.jpg"/></a></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
|
### 环境要求
|
||||||
|
|
||||||
## 6. 交流反馈
|
- JDK 17+
|
||||||
* 有问题先看看 [F&Q](https://www.kancloud.cn/zlt2000/microservices-platform/981382) 中有没有相关的回答
|
- Maven 3.6+
|
||||||
* 欢迎提交`ISSUS`,请写清楚问题的具体原因,重现步骤和环境(上下文)
|
- MySQL 8.0+
|
||||||
* 项目/微服务交流请进群:
|
- Redis 7.0+
|
||||||
* 一群:[250883130(已满)](https://shang.qq.com/wpa/qunwpa?idkey=17544199255998bda0d938fb72b08d076c40c52c9904520b76eb5eb0585da71e)
|
- Nacos 2.0+
|
||||||
* 二群:[1041797659(已满)](https://shang.qq.com/wpa/qunwpa?idkey=41988facbc02f678942a7ee7ae03122f2ef0a10c948b3d07319f070bfb0d3a98)
|
|
||||||
* 三群:[512637767](https://qm.qq.com/cgi-bin/qm/qr?k=HntAHTirZwCEjF8PQpjDYkw37Zx5rJg8&jump_from=webapi)
|
|
||||||
* 个人博客:[http://zlt2000.gitee.io](http://zlt2000.gitee.io)
|
|
||||||
* 个人邮箱:zltdiablo@163.com
|
|
||||||
* 个人公众号:[陶陶技术笔记](http://qiniu.zlt2000.cn/blog/20190902/M56cWjw7uNsc.png?imageslim)
|
|
||||||
* GitChat:[https://gitbook.cn/gitchat/author/5b2362320398d50d7b7ab29e](https://gitbook.cn/gitchat/author/5b2362320398d50d7b7ab29e)
|
|
||||||
|
|
||||||
|
### 数据库初始化
|
||||||
## 7. 截图(点击可大图预览)
|
|
||||||
<table>
|
|
||||||
<tr>
|
|
||||||
<td><img alt="首页" src="https://gitee.com/zlt2000/images/raw/master/%E9%A6%96%E9%A1%B5.png"/></td>
|
|
||||||
<td><img alt="用户搜索" src="https://gitee.com/zlt2000/images/raw/master/%E7%94%A8%E6%88%B7%E6%90%9C%E7%B4%A2.png"/></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><img alt="日志系统" src="https://gitee.com/zlt2000/images/raw/master/%E6%97%A5%E5%BF%97%E7%B3%BB%E7%BB%9F.png"/></td>
|
|
||||||
<td><img alt="日志链路" src="https://gitee.com/zlt2000/images/raw/master/%E6%97%A5%E5%BF%97%E9%93%BE%E8%B7%AF.png"/></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><img alt="server_metrics" src="https://gitee.com/zlt2000/images/raw/master/server_metrics.png"/></td>
|
|
||||||
<td><img alt="application_metrics" src="https://gitee.com/zlt2000/images/raw/master/application_metrics.png"/></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><img alt="skywalking首页.png" src="https://gitee.com/zlt2000/images/raw/master/skywalking%E9%A6%96%E9%A1%B5.png"/></td>
|
|
||||||
<td><img alt="skywalking应用拓扑图" src="https://gitee.com/zlt2000/images/raw/master/skywalking%E5%BA%94%E7%94%A8%E6%8B%93%E6%89%91%E5%9B%BE.png"/></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><img alt="elk" src="https://gitee.com/zlt2000/images/raw/master/elk.png"/></td>
|
|
||||||
<td><img alt="任务中心" src="https://gitee.com/zlt2000/images/raw/master/%E4%BB%BB%E5%8A%A1%E4%B8%AD%E5%BF%83.png"/></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><img alt="日志中心02" src="https://gitee.com/zlt2000/images/raw/master/%E6%97%A5%E5%BF%97%E4%B8%AD%E5%BF%8302.png"/></td>
|
|
||||||
<td><img alt="慢查询sql" src="https://gitee.com/zlt2000/images/raw/master/%E6%85%A2%E6%9F%A5%E8%AF%A2sql.png"/></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><img alt="nacos-discovery" src="https://gitee.com/zlt2000/images/raw/master/nacos-discovery.png"/></td>
|
|
||||||
<td><img alt="应用吞吐量监控" src="https://gitee.com/zlt2000/images/raw/master/%E5%BA%94%E7%94%A8%E5%90%9E%E5%90%90%E9%87%8F%E7%9B%91%E6%8E%A7.png"/></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
|
```bash
|
||||||
|
mysql -u root -p < zlt-doc/database/init.sql
|
||||||
|
```
|
||||||
|
|
||||||
## 8.友情链接
|
### 启动 Nacos
|
||||||
|
|
||||||
### flowsphere
|
```bash
|
||||||
|
# 单机模式启动
|
||||||
|
sh nacos/bin/startup.sh -m standalone
|
||||||
|
```
|
||||||
|
|
||||||
云原生微服务流量治理解决方案,项目地址:https://github.com/flowsphere-projects/flowsphere
|
访问: http://localhost:8848/nacos (账号: nacos/nacos)
|
||||||
|
|
||||||
项目亮点:
|
### 编译项目
|
||||||
|
|
||||||
1.全网唯一使用JavaAgent实现Http、MQ、Job全链路灰度
|
```bash
|
||||||
|
mvn clean install -DskipTests
|
||||||
|
```
|
||||||
|
|
||||||
2.全网唯一支持JavaAgent接入Sentinel
|
### 启动服务
|
||||||
|
|
||||||
|
1. 启动网关 (9900)
|
||||||
|
2. 启动认证中心 (8000)
|
||||||
|
3. 启动用户中心 (7000)
|
||||||
|
4. 启动文件中心 (5000)
|
||||||
|
|
||||||
|
### 默认账号
|
||||||
|
|
||||||
|
- 用户名: `admin`
|
||||||
|
- 密码: `admin123`
|
||||||
|
|
||||||
|
## 许可证
|
||||||
|
|
||||||
|
Apache License 2.0
|
||||||
|
|||||||
@@ -0,0 +1,269 @@
|
|||||||
|
# 企业级微服务脚手架抽离总结报告
|
||||||
|
|
||||||
|
## 项目信息
|
||||||
|
- **原项目**: Go-Fly Platform Services (旅游景区管理平台)
|
||||||
|
- **新项目**: Central Platform (企业级微服务脚手架)
|
||||||
|
- **版本**: 6.0.0
|
||||||
|
- **分支**: scaffold-base
|
||||||
|
- **提交**: 74d99e6b
|
||||||
|
|
||||||
|
## 抽离概述
|
||||||
|
|
||||||
|
成功将业务特定的旅游平台项目抽离为通用的企业级微服务脚手架,保留了完整的微服务基础设施和核心通用功能。
|
||||||
|
|
||||||
|
## 一、保留的核心模块
|
||||||
|
|
||||||
|
### 1. 基础设施层 ✅
|
||||||
|
```
|
||||||
|
zlt-gateway/ # API网关 (Spring Cloud Gateway + Sentinel)
|
||||||
|
zlt-uaa/ # 认证授权中心 (OAuth2 + JWT)
|
||||||
|
zlt-config/ # 配置中心 (Nacos Config)
|
||||||
|
zlt-monitor/ # 监控中心 (Spring Boot Admin)
|
||||||
|
```
|
||||||
|
|
||||||
|
### 2. 公共组件库 ✅ (完整保留)
|
||||||
|
```
|
||||||
|
zlt-commons/
|
||||||
|
├── zlt-common-core/ # 核心工具类
|
||||||
|
├── zlt-common-spring-boot-starter/ # 通用配置
|
||||||
|
├── zlt-redis-spring-boot-starter/ # Redis集成
|
||||||
|
├── zlt-db-spring-boot-starter/ # 数据库集成
|
||||||
|
├── zlt-log-spring-boot-starter/ # 日志集成
|
||||||
|
├── zlt-auth-client-spring-boot-starter/ # 认证客户端
|
||||||
|
├── zlt-loadbalancer-spring-boot-starter/ # 负载均衡
|
||||||
|
├── zlt-sentinel-spring-boot-starter/ # 限流熔断
|
||||||
|
├── zlt-elasticsearch-spring-boot-starter/# 搜索引擎
|
||||||
|
├── zlt-oss-spring-boot-starter/ # 对象存储
|
||||||
|
├── zlt-sms-spring-boot-starter/ # 短信集成
|
||||||
|
├── zlt-zookeeper-spring-boot-starter/ # Zookeeper集成
|
||||||
|
├── zlt-wechat-common-core/ # 微信通用核心
|
||||||
|
└── zlt-wechat-spring-boot-starter/ # 微信集成
|
||||||
|
```
|
||||||
|
|
||||||
|
### 3. 核心业务模块 ✅
|
||||||
|
```
|
||||||
|
zlt-business/
|
||||||
|
├── user-center/ # 用户中心 (用户、角色、权限、租户)
|
||||||
|
├── file-center/ # 文件中心 (多云存储)
|
||||||
|
├── search-center/ # 搜索中心 (Elasticsearch)
|
||||||
|
├── code-generator/ # 代码生成器
|
||||||
|
└── demo-center/ # 示例模块 (新增)
|
||||||
|
```
|
||||||
|
|
||||||
|
### 4. 前端项目 ✅
|
||||||
|
```
|
||||||
|
zlt-web/
|
||||||
|
├── layui-web/ # Layui 管理后台
|
||||||
|
└── react-web/ # React + Ant Design Pro 管理后台
|
||||||
|
```
|
||||||
|
|
||||||
|
## 二、删除的业务模块
|
||||||
|
|
||||||
|
### 1. 业务特定模块 ❌
|
||||||
|
```
|
||||||
|
zlt-business/
|
||||||
|
├── device-center/ # 设备中心 (IoT设备、大疆无人机)
|
||||||
|
├── device-ops-center/ # 设备运维中心
|
||||||
|
├── order-center/ # 订单中心 (景区门票、旅游产品)
|
||||||
|
├── coupon-center/ # 优惠券中心 (携程对接)
|
||||||
|
└── msg-center/ # 消息中心 (邮件、短信、推送)
|
||||||
|
```
|
||||||
|
|
||||||
|
### 2. 业务前端项目 ❌
|
||||||
|
```
|
||||||
|
zlt-web/
|
||||||
|
├── react-web-next/ # 旅游业务前端
|
||||||
|
└── yingyan/ # 鹰眼系统前端
|
||||||
|
```
|
||||||
|
|
||||||
|
### 3. 业务文档 ❌
|
||||||
|
```
|
||||||
|
zlt-doc/
|
||||||
|
├── device_ops_requirements.md
|
||||||
|
├── MAP_DASHBOARD_ANALYSIS.md
|
||||||
|
├── third-party-aerial-photography-flow.md
|
||||||
|
├── TOURISM_WITH_DISTANCE_FIX.md
|
||||||
|
├── yingyan-design.md
|
||||||
|
├── 优惠券管理功能说明.md
|
||||||
|
├── 携程优惠券对接接口文档.md
|
||||||
|
├── 多租户层级使用指南.md
|
||||||
|
├── 租户组织机构重构计划.md
|
||||||
|
└── ... (共24个业务文档)
|
||||||
|
```
|
||||||
|
|
||||||
|
## 三、新增内容
|
||||||
|
|
||||||
|
### 1. 示例模块
|
||||||
|
- **demo-center**: 完整的示例业务模块,展示如何创建新的微服务
|
||||||
|
|
||||||
|
### 2. 数据库脚本
|
||||||
|
- **zlt-doc/database/init.sql**: 核心表初始化脚本
|
||||||
|
- sys_user (用户表)
|
||||||
|
- sys_role (角色表)
|
||||||
|
- sys_menu (菜单表)
|
||||||
|
- sys_user_role (用户角色关联)
|
||||||
|
- sys_role_menu (角色菜单关联)
|
||||||
|
- sys_tenant (租户表)
|
||||||
|
- sys_file (文件表)
|
||||||
|
- sys_log (操作日志表)
|
||||||
|
- 默认管理员账号 (admin/admin123)
|
||||||
|
|
||||||
|
### 3. 项目文档
|
||||||
|
- **README.md**: 项目介绍和快速开始
|
||||||
|
- **QUICK_START.md**: 详细的快速开始指南
|
||||||
|
- **CLAUDE.md**: AI 开发指南 (更新为脚手架版本)
|
||||||
|
|
||||||
|
## 四、技术栈
|
||||||
|
|
||||||
|
### 后端技术
|
||||||
|
| 技术 | 版本 | 说明 |
|
||||||
|
|------|------|------|
|
||||||
|
| Java | 17 | 编程语言 |
|
||||||
|
| Spring Boot | 3.1.6 | 应用框架 |
|
||||||
|
| Spring Cloud | 2022.0.4 | 微服务框架 |
|
||||||
|
| Spring Cloud Alibaba | 2022.0.0.0 | 阿里云组件 |
|
||||||
|
| MyBatis Plus | 3.5.4.1 | ORM 框架 |
|
||||||
|
| MySQL | 8.0+ | 关系数据库 |
|
||||||
|
| Redis | 7.0+ | 缓存数据库 |
|
||||||
|
| Elasticsearch | 7.13.4 | 搜索引擎 |
|
||||||
|
| Nacos | Latest | 注册中心/配置中心 |
|
||||||
|
| Sentinel | Latest | 限流熔断 |
|
||||||
|
|
||||||
|
### 前端技术
|
||||||
|
| 技术 | 版本 | 说明 |
|
||||||
|
|------|------|------|
|
||||||
|
| React | 17 | UI 框架 |
|
||||||
|
| Ant Design | 4.20 | UI 组件库 |
|
||||||
|
| UmiJS | 3.5 | 应用框架 |
|
||||||
|
| TypeScript | 4.x | 编程语言 |
|
||||||
|
|
||||||
|
## 五、核心功能
|
||||||
|
|
||||||
|
### 1. 用户中心
|
||||||
|
- ✅ 用户管理 (CRUD、状态管理)
|
||||||
|
- ✅ 角色管理 (RBAC权限)
|
||||||
|
- ✅ 菜单管理 (动态路由)
|
||||||
|
- ✅ 权限管理 (按钮级权限)
|
||||||
|
- ✅ 租户管理 (多租户隔离)
|
||||||
|
- ✅ 登录日志
|
||||||
|
- ✅ 操作日志
|
||||||
|
|
||||||
|
### 2. 文件中心
|
||||||
|
- ✅ 文件上传下载
|
||||||
|
- ✅ 多云存储支持 (阿里云OSS、七牛云、MinIO)
|
||||||
|
- ✅ 图片预览
|
||||||
|
- ✅ CDN加速
|
||||||
|
|
||||||
|
### 3. 搜索中心
|
||||||
|
- ✅ 全文搜索
|
||||||
|
- ✅ 数据索引管理
|
||||||
|
- ✅ 搜索结果排序
|
||||||
|
|
||||||
|
### 4. 代码生成器
|
||||||
|
- ✅ 基于数据库表生成代码
|
||||||
|
- ✅ 支持自定义模板
|
||||||
|
|
||||||
|
## 六、项目结构
|
||||||
|
|
||||||
|
```
|
||||||
|
central-platform/
|
||||||
|
├── zlt-commons/ # 公共组件库 (13个模块)
|
||||||
|
├── zlt-gateway/ # API网关
|
||||||
|
├── zlt-uaa/ # 认证授权中心
|
||||||
|
├── zlt-config/ # 配置中心
|
||||||
|
├── zlt-monitor/ # 监控中心
|
||||||
|
├── zlt-business/ # 业务模块
|
||||||
|
│ ├── user-center/ # 用户中心
|
||||||
|
│ ├── file-center/ # 文件中心
|
||||||
|
│ ├── search-center/ # 搜索中心
|
||||||
|
│ ├── code-generator/ # 代码生成器
|
||||||
|
│ └── demo-center/ # 示例模块
|
||||||
|
├── zlt-web/ # 前端项目
|
||||||
|
│ ├── layui-web/ # Layui 管理后台
|
||||||
|
│ └── react-web/ # React 管理后台
|
||||||
|
├── zlt-doc/ # 项目文档
|
||||||
|
│ ├── database/ # 数据库脚本
|
||||||
|
│ └── sql/ # SQL脚本
|
||||||
|
├── README.md # 项目说明
|
||||||
|
├── QUICK_START.md # 快速开始
|
||||||
|
└── CLAUDE.md # AI 开发指南
|
||||||
|
```
|
||||||
|
|
||||||
|
## 七、统计数据
|
||||||
|
|
||||||
|
### 代码变更
|
||||||
|
- **删除文件**: 1879 个
|
||||||
|
- **删除代码行**: 293,423 行
|
||||||
|
- **新增代码行**: 609 行
|
||||||
|
- **净减少**: 292,814 行
|
||||||
|
|
||||||
|
### 模块统计
|
||||||
|
- **保留模块**: 9 个 (基础设施 4 + 业务 5)
|
||||||
|
- **删除模块**: 5 个 (业务特定)
|
||||||
|
- **新增模块**: 1 个 (demo-center)
|
||||||
|
- **公共组件**: 13 个 (全部保留)
|
||||||
|
|
||||||
|
### 文档清理
|
||||||
|
- **删除业务文档**: 24 个
|
||||||
|
- **保留配置文档**: 3 个
|
||||||
|
- **新增文档**: 2 个
|
||||||
|
|
||||||
|
## 八、快速开始
|
||||||
|
|
||||||
|
### 环境要求
|
||||||
|
- JDK 17+
|
||||||
|
- Maven 3.6+
|
||||||
|
- MySQL 8.0+
|
||||||
|
- Redis 7.0+
|
||||||
|
- Nacos 2.0+
|
||||||
|
|
||||||
|
### 启动步骤
|
||||||
|
1. 初始化数据库: `mysql < zlt-doc/database/init.sql`
|
||||||
|
2. 启动 Nacos (单机模式)
|
||||||
|
3. 启动网关 (9900)
|
||||||
|
4. 启动认证中心 (8000)
|
||||||
|
5. 启动用户中心 (7000)
|
||||||
|
6. 启动文件中心 (5000)
|
||||||
|
|
||||||
|
### 默认账号
|
||||||
|
- 用户名: `admin`
|
||||||
|
- 密码: `admin123`
|
||||||
|
|
||||||
|
## 九、后续建议
|
||||||
|
|
||||||
|
### 1. 可选扩展模块
|
||||||
|
- 消息中心 (邮件、短信、站内信)
|
||||||
|
- 工作流引擎 (Activiti/Flowable)
|
||||||
|
- 报表中心 (JasperReports/ECharts)
|
||||||
|
- 定时任务 (XXL-Job)
|
||||||
|
- 第三方登录 (OAuth2社交登录)
|
||||||
|
|
||||||
|
### 2. 文档完善
|
||||||
|
- 架构设计文档
|
||||||
|
- 开发规范文档
|
||||||
|
- 部署运维文档
|
||||||
|
- API 接口文档
|
||||||
|
|
||||||
|
### 3. 示例完善
|
||||||
|
- 更多业务场景示例
|
||||||
|
- 最佳实践示例
|
||||||
|
- 性能优化示例
|
||||||
|
|
||||||
|
## 十、总结
|
||||||
|
|
||||||
|
成功将业务特定的旅游平台抽离为通用的企业级微服务脚手架:
|
||||||
|
|
||||||
|
✅ **保留完整的微服务基础设施**
|
||||||
|
✅ **保留所有公共组件库**
|
||||||
|
✅ **保留核心通用业务模块**
|
||||||
|
✅ **删除所有业务特定代码**
|
||||||
|
✅ **创建完整的示例模块**
|
||||||
|
✅ **提供详细的文档和快速开始指南**
|
||||||
|
|
||||||
|
该脚手架可作为企业级后台管理系统的基础框架,支持快速开发各类业务系统。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
**抽离完成时间**: 2026-03-07
|
||||||
|
**Git 分支**: scaffold-base
|
||||||
|
**Git 提交**: 74d99e6b
|
||||||
@@ -1,193 +0,0 @@
|
|||||||
# TourismWithDistance 类修复
|
|
||||||
|
|
||||||
## 问题描述
|
|
||||||
|
|
||||||
`TourismWithDistance` 类被误删,导致以下功能无法正常工作:
|
|
||||||
- 查询附近景区列表接口 `/tourism/nearby`
|
|
||||||
- 景区距离计算和显示
|
|
||||||
- 景区订单展示图片URL设置
|
|
||||||
|
|
||||||
## 解决方案
|
|
||||||
|
|
||||||
### 1. 重新创建 TourismWithDistance 类
|
|
||||||
|
|
||||||
在 `zlt-business/order-center/src/main/java/com/central/order/model/TourismWithDistance.java` 中重新创建了该类:
|
|
||||||
|
|
||||||
```java
|
|
||||||
@Data
|
|
||||||
@EqualsAndHashCode(callSuper = true)
|
|
||||||
public class TourismWithDistance extends Tourism {
|
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 距离(公里)
|
|
||||||
*/
|
|
||||||
private BigDecimal distance;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 距离描述(如:1.2km)
|
|
||||||
*/
|
|
||||||
@TableField(exist = false)
|
|
||||||
private String distanceDesc;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 景区订单展示图片URL
|
|
||||||
*/
|
|
||||||
@TableField(exist = false)
|
|
||||||
private String orderShowImageUrl;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 获取距离描述
|
|
||||||
* @return 距离描述字符串
|
|
||||||
*/
|
|
||||||
public String getDistanceDesc() {
|
|
||||||
if (distance == null) {
|
|
||||||
return "未知距离";
|
|
||||||
}
|
|
||||||
|
|
||||||
if (distance.compareTo(BigDecimal.ONE) < 0) {
|
|
||||||
// 小于1公里,显示为米
|
|
||||||
int meters = distance.multiply(new BigDecimal("1000")).intValue();
|
|
||||||
return meters + "m";
|
|
||||||
} else {
|
|
||||||
// 大于等于1公里,显示为公里
|
|
||||||
return distance.setScale(1, BigDecimal.ROUND_HALF_UP) + "km";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
### 2. 类特性
|
|
||||||
|
|
||||||
#### 2.1 继承关系
|
|
||||||
- 继承自 `Tourism` 类,拥有所有景区基本信息
|
|
||||||
- 使用 `@EqualsAndHashCode(callSuper = true)` 确保正确的继承行为
|
|
||||||
|
|
||||||
#### 2.2 新增字段
|
|
||||||
- `distance`: 距离(公里),BigDecimal 类型,精确计算
|
|
||||||
- `distanceDesc`: 距离描述,如 "1.2km" 或 "500m"
|
|
||||||
- `orderShowImageUrl`: 景区订单展示图片URL
|
|
||||||
|
|
||||||
#### 2.3 智能距离描述
|
|
||||||
- 自动根据距离大小选择合适的单位(米/公里)
|
|
||||||
- 小于1公里显示为米,如 "500m"
|
|
||||||
- 大于等于1公里显示为公里,如 "1.2km"
|
|
||||||
- 支持自定义距离描述
|
|
||||||
|
|
||||||
### 3. 使用场景
|
|
||||||
|
|
||||||
#### 3.1 查询附近景区
|
|
||||||
```java
|
|
||||||
@GetMapping("/nearby")
|
|
||||||
public Result<List<TourismWithDistance>> findNearbyTourisms(
|
|
||||||
@RequestParam BigDecimal longitude,
|
|
||||||
@RequestParam BigDecimal latitude,
|
|
||||||
@RequestParam(required = false) Double radius,
|
|
||||||
@RequestParam(required = false) Integer limit) {
|
|
||||||
// 返回包含距离信息的景区列表
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
#### 3.2 数据库查询
|
|
||||||
在 `TourismMapper.xml` 中,SQL 查询会自动计算距离:
|
|
||||||
|
|
||||||
```xml
|
|
||||||
<select id="findNearbyTourisms" resultType="com.central.order.model.TourismWithDistance">
|
|
||||||
<![CDATA[
|
|
||||||
SELECT
|
|
||||||
*,
|
|
||||||
(
|
|
||||||
6371 * acos(
|
|
||||||
cos(radians(#{latitude})) *
|
|
||||||
cos(radians(latitude)) *
|
|
||||||
cos(radians(longitude) - radians(#{longitude})) +
|
|
||||||
sin(radians(#{latitude})) *
|
|
||||||
sin(radians(latitude))
|
|
||||||
)
|
|
||||||
) AS distance
|
|
||||||
FROM tourisms
|
|
||||||
WHERE is_del = 0
|
|
||||||
AND status = 1
|
|
||||||
AND longitude IS NOT NULL
|
|
||||||
AND latitude IS NOT NULL
|
|
||||||
HAVING distance <= #{radius}
|
|
||||||
ORDER BY distance ASC
|
|
||||||
]]>
|
|
||||||
</select>
|
|
||||||
```
|
|
||||||
|
|
||||||
### 4. 前端类型定义
|
|
||||||
|
|
||||||
在 `zlt-web/react-web/src/main/frontend/src/services/orders/typings.d.ts` 中:
|
|
||||||
|
|
||||||
```typescript
|
|
||||||
type TourismWithDistance = Tourism & {
|
|
||||||
distance?: number; // 距离(公里)
|
|
||||||
distanceDesc?: string; // 距离描述
|
|
||||||
orderShowImageUrl?: string; // 景区订单展示图片URL
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
### 5. 单元测试
|
|
||||||
|
|
||||||
创建了完整的单元测试 `TourismWithDistanceTest.java`,测试:
|
|
||||||
- 距离描述计算
|
|
||||||
- 继承关系
|
|
||||||
- 订单展示图片URL
|
|
||||||
- 自定义距离描述
|
|
||||||
|
|
||||||
## 修复效果
|
|
||||||
|
|
||||||
### ✅ 已修复的功能
|
|
||||||
1. **查询附近景区接口** - 正常返回包含距离信息的景区列表
|
|
||||||
2. **距离计算** - 自动计算并格式化距离显示
|
|
||||||
3. **景区图片** - 支持设置和获取订单展示图片
|
|
||||||
4. **类型安全** - 完整的类型定义和继承关系
|
|
||||||
|
|
||||||
### 🔧 技术特点
|
|
||||||
- **精确计算**: 使用 BigDecimal 进行距离计算,避免浮点数精度问题
|
|
||||||
- **智能显示**: 根据距离大小自动选择合适的单位
|
|
||||||
- **类型安全**: 完整的 Lombok 注解和继承关系
|
|
||||||
- **测试覆盖**: 完整的单元测试确保功能正确性
|
|
||||||
|
|
||||||
## 使用示例
|
|
||||||
|
|
||||||
### 后端使用
|
|
||||||
```java
|
|
||||||
// 查询附近景区
|
|
||||||
List<TourismWithDistance> nearbyTourisms = tourismService.findNearbyTourisms(
|
|
||||||
new BigDecimal("116.397128"),
|
|
||||||
new BigDecimal("39.916527"),
|
|
||||||
10.0, // 10公里半径
|
|
||||||
20 // 最多返回20个
|
|
||||||
);
|
|
||||||
|
|
||||||
// 获取距离描述
|
|
||||||
for (TourismWithDistance tourism : nearbyTourisms) {
|
|
||||||
System.out.println(tourism.getTourismName() + ": " + tourism.getDistanceDesc());
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
### 前端使用
|
|
||||||
```typescript
|
|
||||||
// 调用附近景区接口
|
|
||||||
const response = await findNearbyTourisms({
|
|
||||||
longitude: 116.397128,
|
|
||||||
latitude: 39.916527,
|
|
||||||
radius: 10,
|
|
||||||
limit: 20
|
|
||||||
});
|
|
||||||
|
|
||||||
// 显示景区信息
|
|
||||||
response.data.forEach(tourism => {
|
|
||||||
console.log(`${tourism.tourismName}: ${tourism.distanceDesc}`);
|
|
||||||
});
|
|
||||||
```
|
|
||||||
|
|
||||||
## 注意事项
|
|
||||||
|
|
||||||
1. **数据库字段**: 确保 `tourisms` 表中有 `longitude` 和 `latitude` 字段
|
|
||||||
2. **索引优化**: 建议为经纬度字段添加索引以提高查询性能
|
|
||||||
3. **距离计算**: 使用球面距离公式,适用于地球表面的距离计算
|
|
||||||
4. **性能考虑**: 对于大量数据,建议添加适当的查询限制和缓存机制
|
|
||||||
@@ -1,127 +0,0 @@
|
|||||||
-- 微信配置表服务商模式字段迁移脚本
|
|
||||||
-- 执行时间:2024-01-XX
|
|
||||||
-- 说明:为wechat_config表添加服务商模式相关字段
|
|
||||||
|
|
||||||
-- 1. 添加服务商模式标识字段
|
|
||||||
ALTER TABLE wechat_config ADD COLUMN is_service_mode TINYINT(1) DEFAULT 0 COMMENT '是否服务商模式:0-普通商户,1-服务商';
|
|
||||||
|
|
||||||
-- 2. 添加服务商相关字段
|
|
||||||
ALTER TABLE wechat_config ADD COLUMN service_app_id VARCHAR(64) COMMENT '服务商应用ID';
|
|
||||||
ALTER TABLE wechat_config ADD COLUMN service_mch_id VARCHAR(32) COMMENT '服务商商户号';
|
|
||||||
|
|
||||||
-- 3. 添加子商户相关字段
|
|
||||||
ALTER TABLE wechat_config ADD COLUMN sub_mch_id VARCHAR(32) COMMENT '子商户号';
|
|
||||||
ALTER TABLE wechat_config ADD COLUMN sub_app_id VARCHAR(64) COMMENT '子商户应用ID';
|
|
||||||
ALTER TABLE wechat_config ADD COLUMN sub_mch_name VARCHAR(128) COMMENT '子商户名称';
|
|
||||||
ALTER TABLE wechat_config ADD COLUMN sub_mch_description VARCHAR(255) COMMENT '子商户描述';
|
|
||||||
|
|
||||||
-- 4. 创建索引以提高查询性能
|
|
||||||
CREATE INDEX idx_wechat_config_service_mode ON wechat_config(is_service_mode);
|
|
||||||
CREATE INDEX idx_wechat_config_service_mch_id ON wechat_config(service_mch_id);
|
|
||||||
CREATE INDEX idx_wechat_config_sub_mch_id ON wechat_config(sub_mch_id);
|
|
||||||
|
|
||||||
-- 5. 添加注释说明
|
|
||||||
-- 服务商模式下的字段使用说明:
|
|
||||||
-- - is_service_mode = 1 时,使用 service_app_id、service_mch_id、sub_mch_id 等字段
|
|
||||||
-- - is_service_mode = 0 时,使用 app_id、merchant_id 等字段
|
|
||||||
-- - 一个服务商可以对应多个子商户,通过 service_mch_id 关联
|
|
||||||
|
|
||||||
-- 6. 示例数据(可选)
|
|
||||||
-- 插入服务商配置示例
|
|
||||||
-- INSERT INTO wechat_config (
|
|
||||||
-- tenant_id, type, is_service_mode, service_app_id, service_mch_id,
|
|
||||||
-- sub_mch_id, sub_app_id, sub_mch_name, sub_mch_description,
|
|
||||||
-- mch_serial_no, private_key, api_v3_key, notify_url, status
|
|
||||||
-- ) VALUES (
|
|
||||||
-- 'webApp', 'PAY', 1, 'wx1234567890abcdef', '1900000109',
|
|
||||||
-- '1900000109', 'wx1234567890abcdef', '测试子商户', '测试子商户描述',
|
|
||||||
-- '1234567890ABCDEF', '-----BEGIN PRIVATE KEY-----\n...\n-----END PRIVATE KEY-----',
|
|
||||||
-- 'your_api_v3_key', 'https://your.domain.com/notify', 1
|
|
||||||
-- );
|
|
||||||
|
|
||||||
-- ========== 二维码素材数量字段迁移脚本 ==========
|
|
||||||
-- 执行时间:2024-01-XX
|
|
||||||
-- 说明:为qrcodes表添加素材数量字段
|
|
||||||
|
|
||||||
-- 1. 添加素材数量字段
|
|
||||||
ALTER TABLE qrcodes ADD COLUMN material_count INT DEFAULT 1 COMMENT '素材数量(该二维码所包含的视频图片数量)';
|
|
||||||
|
|
||||||
-- 2. 创建索引以提高查询性能
|
|
||||||
CREATE INDEX idx_qrcodes_material_count ON qrcodes(material_count);
|
|
||||||
|
|
||||||
-- 3. 更新现有二维码的素材数量(默认为1)
|
|
||||||
UPDATE qrcodes SET material_count = 1 WHERE material_count IS NULL;
|
|
||||||
|
|
||||||
-- 4. 添加注释说明
|
|
||||||
-- 素材数量字段说明:
|
|
||||||
-- - material_count > 0:表示该二维码需要上传的素材数量
|
|
||||||
-- - 当订单的文件数量达到或超过此数量时,订单状态将自动更新为"素材上传完成"
|
|
||||||
-- - 默认值为1,表示每个二维码至少需要1个素材文件
|
|
||||||
|
|
||||||
-- ========== 微信平台证书序列号字段迁移脚本 ==========
|
|
||||||
-- 执行时间:2024-01-XX
|
|
||||||
-- 说明:为sys_wechat_config表添加微信平台证书序列号字段
|
|
||||||
|
|
||||||
-- 1. 添加微信平台证书序列号字段
|
|
||||||
ALTER TABLE sys_wechat_config ADD COLUMN serial_number VARCHAR(64) COMMENT '微信平台证书序列号(用于回调验证)';
|
|
||||||
|
|
||||||
-- 2. 创建索引以提高查询性能
|
|
||||||
CREATE INDEX idx_wechat_config_serial_number ON sys_wechat_config(serial_number);
|
|
||||||
|
|
||||||
-- 3. 添加注释说明
|
|
||||||
-- 微信平台证书序列号字段说明:
|
|
||||||
-- - serial_number:微信平台证书的序列号,用于验证回调请求的签名
|
|
||||||
-- - 在微信支付回调时,通过此字段可以快速定位对应的配置信息
|
|
||||||
-- - 与回调请求头中的 Wechatpay-Serial 字段对应
|
|
||||||
-- - 支持一个商户配置多个平台证书,通过序列号区分
|
|
||||||
|
|
||||||
-- ========== wechat_config表微信平台证书序列号字段迁移脚本 ==========
|
|
||||||
-- 执行时间:2024-01-XX
|
|
||||||
-- 说明:为wechat_config表添加微信平台证书序列号字段
|
|
||||||
|
|
||||||
-- 1. 添加微信平台证书序列号字段
|
|
||||||
ALTER TABLE wechat_config ADD COLUMN serial_number VARCHAR(64) COMMENT '微信平台证书序列号(用于回调验证)';
|
|
||||||
|
|
||||||
-- 2. 创建索引以提高查询性能
|
|
||||||
CREATE INDEX idx_wechat_config_serial_number_2 ON wechat_config(serial_number);
|
|
||||||
|
|
||||||
-- 3. 添加注释说明
|
|
||||||
-- 微信平台证书序列号字段说明:
|
|
||||||
-- - serial_number:微信平台证书的序列号,用于验证回调请求的签名
|
|
||||||
-- - 在微信支付回调时,通过此字段可以快速定位对应的配置信息
|
|
||||||
-- - 与回调请求头中的 Wechatpay-Serial 字段对应
|
|
||||||
-- - 支持一个商户配置多个平台证书,通过序列号区分
|
|
||||||
|
|
||||||
-- 创建优惠券表
|
|
||||||
CREATE TABLE IF NOT EXISTS `t_coupon` (
|
|
||||||
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
|
|
||||||
`coupon_no` varchar(64) NOT NULL COMMENT '优惠券编号',
|
|
||||||
`coupon_name` varchar(128) NOT NULL COMMENT '优惠券名称',
|
|
||||||
`coupon_type` int(11) NOT NULL COMMENT '优惠券类型:1-满减券,2-折扣券,3-免费券',
|
|
||||||
`amount` decimal(10,2) DEFAULT NULL COMMENT '优惠券面额',
|
|
||||||
`min_amount` decimal(10,2) DEFAULT NULL COMMENT '使用门槛金额',
|
|
||||||
`discount_rate` int(11) DEFAULT NULL COMMENT '折扣率(0-100,折扣券时使用)',
|
|
||||||
`status` int(11) NOT NULL DEFAULT '0' COMMENT '优惠券状态:0-未使用,1-已使用,2-已过期,3-已作废',
|
|
||||||
`user_phone` varchar(20) NOT NULL COMMENT '用户手机号',
|
|
||||||
`user_id` bigint(20) DEFAULT NULL COMMENT '用户ID',
|
|
||||||
`source` int(11) NOT NULL DEFAULT '2' COMMENT '来源:1-携程,2-高飞自建',
|
|
||||||
`ctrip_coupon_id` varchar(64) DEFAULT NULL COMMENT '携程优惠券ID(来源为携程时使用)',
|
|
||||||
`valid_start_time` datetime NOT NULL COMMENT '有效期开始时间',
|
|
||||||
`valid_end_time` datetime NOT NULL COMMENT '有效期结束时间',
|
|
||||||
`used_time` datetime DEFAULT NULL COMMENT '使用时间',
|
|
||||||
`used_order_no` varchar(64) DEFAULT NULL COMMENT '使用订单号',
|
|
||||||
`cancel_time` datetime DEFAULT NULL COMMENT '退券时间',
|
|
||||||
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
|
||||||
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
|
|
||||||
`create_by` varchar(64) DEFAULT NULL COMMENT '创建人',
|
|
||||||
`update_by` varchar(64) DEFAULT NULL COMMENT '更新人',
|
|
||||||
`remark` varchar(255) DEFAULT NULL COMMENT '备注',
|
|
||||||
`tenant_id` varchar(64) DEFAULT NULL COMMENT '租户ID',
|
|
||||||
PRIMARY KEY (`id`),
|
|
||||||
UNIQUE KEY `uk_coupon_no` (`coupon_no`),
|
|
||||||
UNIQUE KEY `uk_ctrip_coupon_id` (`ctrip_coupon_id`),
|
|
||||||
KEY `idx_user_phone` (`user_phone`),
|
|
||||||
KEY `idx_status` (`status`),
|
|
||||||
KEY `idx_valid_end_time` (`valid_end_time`),
|
|
||||||
KEY `idx_create_time` (`create_time`)
|
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='优惠券表';
|
|
||||||
@@ -1,241 +0,0 @@
|
|||||||
# 设备运维管理系统需求报告
|
|
||||||
|
|
||||||
## 1. 项目概述
|
|
||||||
设备运维管理系统是一个面向文旅行业的 SaaS 平台,旨在实现设备状态管理、设备作业情况、景区设备分布、设备订单完成情况、设备盈利等维度的数据展示、统计和管理功能。
|
|
||||||
|
|
||||||
## 2. 功能模块
|
|
||||||
|
|
||||||
### 2.1 设备状态管理模块
|
|
||||||
- **功能**:实时监控设备状态,包括在线/离线状态、电量、信号强度、固件版本等。
|
|
||||||
- **实现**:
|
|
||||||
- 设备状态实时展示:通过 WebSocket 或 MQTT 协议实时推送设备状态数据。
|
|
||||||
- 设备状态历史记录:记录设备状态变更历史,支持时间范围查询。
|
|
||||||
- 设备状态告警:当设备状态异常(如离线、电量低、信号弱)时,触发告警通知。
|
|
||||||
|
|
||||||
### 2.2 设备作业情况模块
|
|
||||||
- **功能**:展示设备当前作业状态、历史作业记录、作业成功率等。
|
|
||||||
- **实现**:
|
|
||||||
- 当前作业状态:展示设备当前执行的航线任务、任务进度、预计完成时间等。
|
|
||||||
- 历史作业记录:记录设备历史作业数据,支持按时间、任务类型、成功率等维度筛选。
|
|
||||||
- 作业统计分析:统计设备作业成功率、平均作业时间、故障率等指标,生成报表或图表。
|
|
||||||
|
|
||||||
### 2.3 景区设备分布模块
|
|
||||||
- **功能**:展示景区内设备的分布情况,包括设备数量、类型、状态等。
|
|
||||||
- **实现**:
|
|
||||||
- 设备分布地图:通过地图展示景区内设备的分布位置,支持点击查看设备详情。
|
|
||||||
- 设备分类统计:按设备类型、状态等维度统计景区内设备数量,生成统计图表。
|
|
||||||
- 设备详情展示:点击设备可查看设备详细信息,包括状态、作业记录、维护记录等。
|
|
||||||
|
|
||||||
### 2.4 设备订单完成情况模块
|
|
||||||
- **功能**:展示设备关联订单的完成情况,包括订单数量、完成率、平均完成时间等。
|
|
||||||
- **实现**:
|
|
||||||
- 订单完成统计:统计设备关联订单的完成数量、完成率、平均完成时间等指标。
|
|
||||||
- 订单详情展示:支持查看设备关联订单的详细信息,包括订单状态、支付情况、完成时间等。
|
|
||||||
- 订单趋势分析:分析设备订单完成情况的趋势,生成趋势图表。
|
|
||||||
|
|
||||||
### 2.5 设备盈利模块
|
|
||||||
- **功能**:展示设备的盈利情况,包括收入、成本、利润等。
|
|
||||||
- **实现**:
|
|
||||||
- 盈利统计:统计设备的收入、成本、利润等指标,支持按时间范围查询。
|
|
||||||
- 盈利趋势分析:分析设备盈利情况的趋势,生成趋势图表。
|
|
||||||
- 盈利报表:生成设备盈利报表,支持导出为 Excel 或 PDF 格式。
|
|
||||||
|
|
||||||
### 2.6 系统管理模块
|
|
||||||
- **功能**:管理系统用户、权限、配置等。
|
|
||||||
- **实现**:
|
|
||||||
- 用户管理:管理系统的用户账号,包括添加、删除、修改用户信息等。
|
|
||||||
- 权限管理:管理用户的权限,确保用户只能访问其权限范围内的功能。
|
|
||||||
- 系统配置:管理系统的基本配置,如告警阈值、数据保留时间等。
|
|
||||||
|
|
||||||
### 2.7 数据展示与统计模块
|
|
||||||
- **功能**:通过图表、报表等形式展示设备运维数据。
|
|
||||||
- **实现**:
|
|
||||||
- 数据可视化:使用图表(如折线图、柱状图、饼图等)展示设备状态、作业情况、订单完成情况、盈利情况等数据。
|
|
||||||
- 数据导出:支持将数据导出为 Excel、PDF 等格式,方便用户离线分析。
|
|
||||||
- 数据筛选:支持按时间、设备、景区等维度筛选数据,生成定制化报表。
|
|
||||||
|
|
||||||
### 2.8 告警与通知模块
|
|
||||||
- **功能**:当设备状态异常或作业失败时,触发告警并通知相关人员。
|
|
||||||
- **实现**:
|
|
||||||
- 告警规则配置:配置告警规则,如设备离线、电量低、信号弱、作业失败等。
|
|
||||||
- 告警通知:通过短信、邮件、微信等方式通知相关人员。
|
|
||||||
- 告警历史记录:记录告警历史,支持按时间、告警类型等维度查询。
|
|
||||||
|
|
||||||
## 3. 流程图
|
|
||||||
|
|
||||||
### 3.1 设备状态管理流程
|
|
||||||
```
|
|
||||||
用户登录系统
|
|
||||||
↓
|
|
||||||
查看设备状态
|
|
||||||
↓
|
|
||||||
实时监控设备状态
|
|
||||||
↓
|
|
||||||
设备状态异常
|
|
||||||
↓
|
|
||||||
触发告警通知
|
|
||||||
↓
|
|
||||||
用户处理告警
|
|
||||||
```
|
|
||||||
|
|
||||||
### 3.2 设备作业情况流程
|
|
||||||
```
|
|
||||||
用户登录系统
|
|
||||||
↓
|
|
||||||
查看设备作业情况
|
|
||||||
↓
|
|
||||||
展示当前作业状态
|
|
||||||
↓
|
|
||||||
查看历史作业记录
|
|
||||||
↓
|
|
||||||
统计分析作业数据
|
|
||||||
↓
|
|
||||||
生成作业报表
|
|
||||||
```
|
|
||||||
|
|
||||||
### 3.3 景区设备分布流程
|
|
||||||
```
|
|
||||||
用户登录系统
|
|
||||||
↓
|
|
||||||
查看景区设备分布
|
|
||||||
↓
|
|
||||||
展示设备分布地图
|
|
||||||
↓
|
|
||||||
点击设备查看详情
|
|
||||||
↓
|
|
||||||
展示设备详细信息
|
|
||||||
```
|
|
||||||
|
|
||||||
### 3.4 设备订单完成情况流程
|
|
||||||
```
|
|
||||||
用户登录系统
|
|
||||||
↓
|
|
||||||
查看设备订单完成情况
|
|
||||||
↓
|
|
||||||
统计订单完成数据
|
|
||||||
↓
|
|
||||||
展示订单详情
|
|
||||||
↓
|
|
||||||
分析订单趋势
|
|
||||||
↓
|
|
||||||
生成订单报表
|
|
||||||
```
|
|
||||||
|
|
||||||
### 3.5 设备盈利流程
|
|
||||||
```
|
|
||||||
用户登录系统
|
|
||||||
↓
|
|
||||||
查看设备盈利情况
|
|
||||||
↓
|
|
||||||
统计盈利数据
|
|
||||||
↓
|
|
||||||
分析盈利趋势
|
|
||||||
↓
|
|
||||||
生成盈利报表
|
|
||||||
```
|
|
||||||
|
|
||||||
## 4. 简易页面设计
|
|
||||||
|
|
||||||
### 4.1 设备状态管理页面
|
|
||||||
```
|
|
||||||
+----------------------------------+
|
|
||||||
| 设备状态管理 |
|
|
||||||
+----------------------------------+
|
|
||||||
| 设备列表 |
|
|
||||||
| - 设备1:在线,电量 80% |
|
|
||||||
| - 设备2:离线,电量 20% |
|
|
||||||
| - 设备3:在线,电量 90% |
|
|
||||||
+----------------------------------+
|
|
||||||
| 设备状态历史记录 |
|
|
||||||
| - 设备1:2024-01-01 10:00 在线 |
|
|
||||||
| - 设备1:2024-01-01 11:00 离线 |
|
|
||||||
| - 设备2:2024-01-01 10:00 在线 |
|
|
||||||
+----------------------------------+
|
|
||||||
| 告警通知 |
|
|
||||||
| - 设备2离线告警 |
|
|
||||||
| - 设备1电量低告警 |
|
|
||||||
+----------------------------------+
|
|
||||||
```
|
|
||||||
|
|
||||||
### 4.2 设备作业情况页面
|
|
||||||
```
|
|
||||||
+----------------------------------+
|
|
||||||
| 设备作业情况 |
|
|
||||||
+----------------------------------+
|
|
||||||
| 当前作业状态 |
|
|
||||||
| - 设备1:执行航线任务,进度 50% |
|
|
||||||
| - 设备2:空闲 |
|
|
||||||
| - 设备3:执行航线任务,进度 30% |
|
|
||||||
+----------------------------------+
|
|
||||||
| 历史作业记录 |
|
|
||||||
| - 设备1:2024-01-01 任务完成 |
|
|
||||||
| - 设备2:2024-01-01 任务失败 |
|
|
||||||
| - 设备3:2024-01-01 任务完成 |
|
|
||||||
+----------------------------------+
|
|
||||||
| 作业统计分析 |
|
|
||||||
| - 成功率:80% |
|
|
||||||
| - 平均作业时间:30分钟 |
|
|
||||||
| - 故障率:20% |
|
|
||||||
+----------------------------------+
|
|
||||||
```
|
|
||||||
|
|
||||||
### 4.3 景区设备分布页面
|
|
||||||
```
|
|
||||||
+----------------------------------+
|
|
||||||
| 景区设备分布 |
|
|
||||||
+----------------------------------+
|
|
||||||
| 设备分布地图 |
|
|
||||||
| [地图展示设备分布位置] |
|
|
||||||
+----------------------------------+
|
|
||||||
| 设备分类统计 |
|
|
||||||
| - 在线设备:5台 |
|
|
||||||
| - 离线设备:2台 |
|
|
||||||
| - 故障设备:1台 |
|
|
||||||
+----------------------------------+
|
|
||||||
| 设备详情 |
|
|
||||||
| - 设备1:在线,电量 80% |
|
|
||||||
| - 设备2:离线,电量 20% |
|
|
||||||
| - 设备3:在线,电量 90% |
|
|
||||||
+----------------------------------+
|
|
||||||
```
|
|
||||||
|
|
||||||
### 4.4 设备订单完成情况页面
|
|
||||||
```
|
|
||||||
+----------------------------------+
|
|
||||||
| 设备订单完成情况 |
|
|
||||||
+----------------------------------+
|
|
||||||
| 订单完成统计 |
|
|
||||||
| - 完成订单:100单 |
|
|
||||||
| - 完成率:90% |
|
|
||||||
| - 平均完成时间:20分钟 |
|
|
||||||
+----------------------------------+
|
|
||||||
| 订单详情 |
|
|
||||||
| - 订单1:已完成,支付成功 |
|
|
||||||
| - 订单2:已完成,支付成功 |
|
|
||||||
| - 订单3:已完成,支付成功 |
|
|
||||||
+----------------------------------+
|
|
||||||
| 订单趋势分析 |
|
|
||||||
| [趋势图表展示订单完成情况] |
|
|
||||||
+----------------------------------+
|
|
||||||
```
|
|
||||||
|
|
||||||
### 4.5 设备盈利页面
|
|
||||||
```
|
|
||||||
+----------------------------------+
|
|
||||||
| 设备盈利情况 |
|
|
||||||
+----------------------------------+
|
|
||||||
| 盈利统计 |
|
|
||||||
| - 收入:10000元 |
|
|
||||||
| - 成本:5000元 |
|
|
||||||
| - 利润:5000元 |
|
|
||||||
+----------------------------------+
|
|
||||||
| 盈利趋势分析 |
|
|
||||||
| [趋势图表展示盈利情况] |
|
|
||||||
+----------------------------------+
|
|
||||||
| 盈利报表 |
|
|
||||||
| [导出为Excel或PDF] |
|
|
||||||
+----------------------------------+
|
|
||||||
```
|
|
||||||
|
|
||||||
## 5. 总结
|
|
||||||
设备运维管理系统通过设备状态管理、设备作业情况、景区设备分布、设备订单完成情况、设备盈利等模块,实现设备运维的全方位监控和管理。系统采用微服务架构,支持实时数据推送、数据可视化、告警通知等功能,确保设备运维的高效性和可靠性。
|
|
||||||
@@ -1,996 +0,0 @@
|
|||||||
#
|
|
||||||
# There is insufficient memory for the Java Runtime Environment to continue.
|
|
||||||
# Native memory allocation (mmap) failed to map 734003200 bytes for G1 virtual space
|
|
||||||
# Possible reasons:
|
|
||||||
# The system is out of physical RAM or swap space
|
|
||||||
# The process is running with CompressedOops enabled, and the Java Heap may be blocking the growth of the native heap
|
|
||||||
# Possible solutions:
|
|
||||||
# Reduce memory load on the system
|
|
||||||
# Increase physical memory or swap space
|
|
||||||
# Check if swap backing store is full
|
|
||||||
# Decrease Java heap size (-Xmx/-Xms)
|
|
||||||
# Decrease number of Java threads
|
|
||||||
# Decrease Java thread stack sizes (-Xss)
|
|
||||||
# Set larger code cache with -XX:ReservedCodeCacheSize=
|
|
||||||
# JVM is running with Zero Based Compressed Oops mode in which the Java heap is
|
|
||||||
# placed in the first 32GB address space. The Java Heap base address is the
|
|
||||||
# maximum limit for the native heap growth. Please use -XX:HeapBaseMinAddress
|
|
||||||
# to set the Java Heap base and to place the Java Heap above 32GB virtual address.
|
|
||||||
# This output file may be truncated or incomplete.
|
|
||||||
#
|
|
||||||
# Out of Memory Error (os_windows.cpp:3548), pid=25368, tid=16648
|
|
||||||
#
|
|
||||||
# JRE version: Java(TM) SE Runtime Environment (17.0.13+10) (build 17.0.13+10-LTS-268)
|
|
||||||
# Java VM: Java HotSpot(TM) 64-Bit Server VM (17.0.13+10-LTS-268, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, windows-amd64)
|
|
||||||
# No core dump will be written. Minidumps are not enabled by default on client versions of Windows
|
|
||||||
#
|
|
||||||
|
|
||||||
--------------- S U M M A R Y ------------
|
|
||||||
|
|
||||||
Command Line: -Dmaven.multiModuleProjectDirectory=E:\Idea-project\ikingtec-new6.0\microservices-platform -Djansi.passthrough=true -Dmaven.home=D:\Program Files\JetBrains\IntelliJ IDEA 2024.3.1\plugins\maven\lib\maven3 -Dclassworlds.conf=D:\Program Files\JetBrains\IntelliJ IDEA 2024.3.1\plugins\maven\lib\maven3\bin\m2.conf -Dmaven.ext.class.path=D:\Program Files\JetBrains\IntelliJ IDEA 2024.3.1\plugins\maven\lib\maven-event-listener.jar -javaagent:D:\Program Files\JetBrains\IntelliJ IDEA 2024.3.1\lib\idea_rt.jar=58940:D:\Program Files\JetBrains\IntelliJ IDEA 2024.3.1\bin -Dfile.encoding=UTF-8 org.codehaus.classworlds.Launcher -Didea.version=2024.3.1 -T 8 -s D:\maven\apache-maven-3.5.2\conf\settings.xml package
|
|
||||||
|
|
||||||
Host: Intel(R) Core(TM) i7-9700F CPU @ 3.00GHz, 8 cores, 31G, Windows 10 , 64 bit Build 19041 (10.0.19041.5198)
|
|
||||||
Time: Sun Jan 5 03:07:02 2025 Windows 10 , 64 bit Build 19041 (10.0.19041.5198) elapsed time: 21.807413 seconds (0d 0h 0m 21s)
|
|
||||||
|
|
||||||
--------------- T H R E A D ---------------
|
|
||||||
|
|
||||||
Current thread (0x000002577ec0ce20): VMThread "VM Thread" [stack: 0x000000a0c9200000,0x000000a0c9300000] [id=16648]
|
|
||||||
|
|
||||||
Stack: [0x000000a0c9200000,0x000000a0c9300000]
|
|
||||||
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
|
|
||||||
V [jvm.dll+0x67a23a]
|
|
||||||
V [jvm.dll+0x7da96d]
|
|
||||||
V [jvm.dll+0x7dc2b3]
|
|
||||||
V [jvm.dll+0x7dc923]
|
|
||||||
V [jvm.dll+0x2450ef]
|
|
||||||
V [jvm.dll+0x677279]
|
|
||||||
V [jvm.dll+0x66bf22]
|
|
||||||
V [jvm.dll+0x302006]
|
|
||||||
V [jvm.dll+0x3095a6]
|
|
||||||
V [jvm.dll+0x359e9e]
|
|
||||||
V [jvm.dll+0x35a0cf]
|
|
||||||
V [jvm.dll+0x2d90d8]
|
|
||||||
V [jvm.dll+0x2d750d]
|
|
||||||
V [jvm.dll+0x2d6b5c]
|
|
||||||
V [jvm.dll+0x31a6bb]
|
|
||||||
V [jvm.dll+0x7e121b]
|
|
||||||
V [jvm.dll+0x7e1f54]
|
|
||||||
V [jvm.dll+0x7e246d]
|
|
||||||
V [jvm.dll+0x7e2844]
|
|
||||||
V [jvm.dll+0x7e2910]
|
|
||||||
V [jvm.dll+0x78af1a]
|
|
||||||
V [jvm.dll+0x679125]
|
|
||||||
C [ucrtbase.dll+0x21bb2]
|
|
||||||
C [KERNEL32.DLL+0x17374]
|
|
||||||
C [ntdll.dll+0x4cc91]
|
|
||||||
|
|
||||||
VM_Operation (0x000000a0caffda70): G1CollectForAllocation, mode: safepoint, requested by thread 0x0000025747e837f0
|
|
||||||
|
|
||||||
|
|
||||||
--------------- P R O C E S S ---------------
|
|
||||||
|
|
||||||
Threads class SMR info:
|
|
||||||
_java_thread_list=0x0000025783920dc0, length=24, elements={
|
|
||||||
0x00000257543ff050, 0x000002577ec11c60, 0x000002577ec127f0, 0x000002577ec2c960,
|
|
||||||
0x000002577ec2f240, 0x000002577ec2fb10, 0x000002577ec31f60, 0x000002577ec32b60,
|
|
||||||
0x000002577ec34090, 0x000002577ec3aa20, 0x000002577f560090, 0x000002577f6d0220,
|
|
||||||
0x000002577f6d0700, 0x00000257472e95c0, 0x00000257477e9500, 0x0000025747e80550,
|
|
||||||
0x0000025747e828c0, 0x0000025747e82dd0, 0x0000025747e832e0, 0x0000025747e80a60,
|
|
||||||
0x0000025747e80f70, 0x0000025747e837f0, 0x0000025747e83d00, 0x0000025747e81990
|
|
||||||
}
|
|
||||||
|
|
||||||
Java Threads: ( => current thread )
|
|
||||||
0x00000257543ff050 JavaThread "main" [_thread_blocked, id=16164, stack(0x000000a0c8c00000,0x000000a0c8d00000)]
|
|
||||||
0x000002577ec11c60 JavaThread "Reference Handler" daemon [_thread_blocked, id=30264, stack(0x000000a0c9300000,0x000000a0c9400000)]
|
|
||||||
0x000002577ec127f0 JavaThread "Finalizer" daemon [_thread_blocked, id=25264, stack(0x000000a0c9400000,0x000000a0c9500000)]
|
|
||||||
0x000002577ec2c960 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=28952, stack(0x000000a0c9500000,0x000000a0c9600000)]
|
|
||||||
0x000002577ec2f240 JavaThread "Attach Listener" daemon [_thread_blocked, id=22620, stack(0x000000a0c9600000,0x000000a0c9700000)]
|
|
||||||
0x000002577ec2fb10 JavaThread "Service Thread" daemon [_thread_blocked, id=19780, stack(0x000000a0c9700000,0x000000a0c9800000)]
|
|
||||||
0x000002577ec31f60 JavaThread "Monitor Deflation Thread" daemon [_thread_blocked, id=16724, stack(0x000000a0c9800000,0x000000a0c9900000)]
|
|
||||||
0x000002577ec32b60 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=18424, stack(0x000000a0c9900000,0x000000a0c9a00000)]
|
|
||||||
0x000002577ec34090 JavaThread "C1 CompilerThread0" daemon [_thread_blocked, id=26280, stack(0x000000a0c9a00000,0x000000a0c9b00000)]
|
|
||||||
0x000002577ec3aa20 JavaThread "Sweeper thread" daemon [_thread_blocked, id=18348, stack(0x000000a0c9b00000,0x000000a0c9c00000)]
|
|
||||||
0x000002577f560090 JavaThread "Common-Cleaner" daemon [_thread_blocked, id=31456, stack(0x000000a0c9c00000,0x000000a0c9d00000)]
|
|
||||||
0x000002577f6d0220 JavaThread "Monitor Ctrl-Break" daemon [_thread_in_native, id=12312, stack(0x000000a0c9d00000,0x000000a0c9e00000)]
|
|
||||||
0x000002577f6d0700 JavaThread "Notification Thread" daemon [_thread_blocked, id=27832, stack(0x000000a0c9e00000,0x000000a0c9f00000)]
|
|
||||||
0x00000257472e95c0 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=4900, stack(0x000000a0ca000000,0x000000a0ca100000)]
|
|
||||||
0x00000257477e9500 JavaThread "C2 CompilerThread2" daemon [_thread_blocked, id=29180, stack(0x000000a0ca100000,0x000000a0ca200000)]
|
|
||||||
0x0000025747e80550 JavaThread "Thread-1" daemon [_thread_blocked, id=25424, stack(0x000000a0ca900000,0x000000a0caa00000)]
|
|
||||||
0x0000025747e828c0 JavaThread "BuilderThread 0" [_thread_blocked, id=30432, stack(0x000000a0caa00000,0x000000a0cab00000)]
|
|
||||||
0x0000025747e82dd0 JavaThread "mvn-builder-user-center" [_thread_blocked, id=26920, stack(0x000000a0cab00000,0x000000a0cac00000)]
|
|
||||||
0x0000025747e832e0 JavaThread "mvn-builder-device-center" [_thread_blocked, id=11224, stack(0x000000a0cac00000,0x000000a0cad00000)]
|
|
||||||
0x0000025747e80a60 JavaThread "BuilderThread 3" [_thread_blocked, id=18428, stack(0x000000a0cad00000,0x000000a0cae00000)]
|
|
||||||
0x0000025747e80f70 JavaThread "mvn-builder-search-server" [_thread_blocked, id=912, stack(0x000000a0cae00000,0x000000a0caf00000)]
|
|
||||||
0x0000025747e837f0 JavaThread "mvn-builder-zlt-uaa" [_thread_blocked, id=19144, stack(0x000000a0caf00000,0x000000a0cb000000)]
|
|
||||||
0x0000025747e83d00 JavaThread "mvn-builder-sc-gateway" [_thread_blocked, id=15892, stack(0x000000a0cb000000,0x000000a0cb100000)]
|
|
||||||
0x0000025747e81990 JavaThread "mvn-builder-tourism-core" [_thread_blocked, id=11476, stack(0x000000a0cb100000,0x000000a0cb200000)]
|
|
||||||
|
|
||||||
Other Threads:
|
|
||||||
=>0x000002577ec0ce20 VMThread "VM Thread" [stack: 0x000000a0c9200000,0x000000a0c9300000] [id=16648]
|
|
||||||
0x000002577f73e060 WatcherThread [stack: 0x000000a0c9f00000,0x000000a0ca000000] [id=27448]
|
|
||||||
0x000002575446c3e0 GCTaskThread "GC Thread#0" [stack: 0x000000a0c8d00000,0x000000a0c8e00000] [id=15572]
|
|
||||||
0x00000257477e9a20 GCTaskThread "GC Thread#1" [stack: 0x000000a0ca200000,0x000000a0ca300000] [id=27424]
|
|
||||||
0x0000025747647e60 GCTaskThread "GC Thread#2" [stack: 0x000000a0ca300000,0x000000a0ca400000] [id=27164]
|
|
||||||
0x0000025747648120 GCTaskThread "GC Thread#3" [stack: 0x000000a0ca400000,0x000000a0ca500000] [id=27856]
|
|
||||||
0x0000025747648bf0 GCTaskThread "GC Thread#4" [stack: 0x000000a0ca500000,0x000000a0ca600000] [id=24492]
|
|
||||||
0x000002574775a1a0 GCTaskThread "GC Thread#5" [stack: 0x000000a0ca600000,0x000000a0ca700000] [id=22336]
|
|
||||||
0x000002574775a460 GCTaskThread "GC Thread#6" [stack: 0x000000a0ca700000,0x000000a0ca800000] [id=23664]
|
|
||||||
0x000002574775a720 GCTaskThread "GC Thread#7" [stack: 0x000000a0ca800000,0x000000a0ca900000] [id=3648]
|
|
||||||
0x000002575447d0c0 ConcurrentGCThread "G1 Main Marker" [stack: 0x000000a0c8e00000,0x000000a0c8f00000] [id=30772]
|
|
||||||
0x000002575447d8e0 ConcurrentGCThread "G1 Conc#0" [stack: 0x000000a0c8f00000,0x000000a0c9000000] [id=21488]
|
|
||||||
0x00000257498e01e0 ConcurrentGCThread "G1 Conc#1" [stack: 0x000000a0cb200000,0x000000a0cb300000] [id=27744]
|
|
||||||
0x00000257544ae530 ConcurrentGCThread "G1 Refine#0" [stack: 0x000000a0c9000000,0x000000a0c9100000] [id=27880]
|
|
||||||
0x0000025749319780 ConcurrentGCThread "G1 Refine#1" [stack: 0x000000a0cb300000,0x000000a0cb400000] [id=668]
|
|
||||||
0x000002574858b650 ConcurrentGCThread "G1 Refine#2" [stack: 0x000000a0cb400000,0x000000a0cb500000] [id=31388]
|
|
||||||
0x000002574858b940 ConcurrentGCThread "G1 Refine#3" [stack: 0x000000a0cb500000,0x000000a0cb600000] [id=3292]
|
|
||||||
0x000002574b98f880 ConcurrentGCThread "G1 Refine#4" [stack: 0x000000a0cb600000,0x000000a0cb700000] [id=30844]
|
|
||||||
0x0000025750ddf500 ConcurrentGCThread "G1 Refine#5" [stack: 0x000000a0cb700000,0x000000a0cb800000] [id=18084]
|
|
||||||
0x000002577eb45030 ConcurrentGCThread "G1 Service" [stack: 0x000000a0c9100000,0x000000a0c9200000] [id=26648]
|
|
||||||
|
|
||||||
Threads with active compile tasks:
|
|
||||||
C2 CompilerThread0 21840 20058 4 lombok.core.AST::buildWithField (21 bytes)
|
|
||||||
C2 CompilerThread1 21840 20070 ! 4 lombok.javac.JavacAST::drill (146 bytes)
|
|
||||||
C2 CompilerThread2 21840 20059 ! 4 lombok.core.AST::buildWithField0 (121 bytes)
|
|
||||||
|
|
||||||
VM state: at safepoint (normal execution)
|
|
||||||
|
|
||||||
VM Mutex/Monitor currently owned by a thread: ([mutex/lock_event])
|
|
||||||
[0x00000257543fc490] Threads_lock - owner thread: 0x000002577ec0ce20
|
|
||||||
[0x00000257543fb4d0] Heap_lock - owner thread: 0x0000025747e837f0
|
|
||||||
|
|
||||||
Heap address: 0x0000000601000000, size: 8176 MB, Compressed Oops mode: Zero based, Oop shift amount: 3
|
|
||||||
|
|
||||||
CDS archive(s) mapped at: [0x0000025702000000-0x0000025702bd0000-0x0000025702bd0000), size 12386304, SharedBaseAddress: 0x0000025702000000, ArchiveRelocationMode: 1.
|
|
||||||
Compressed class space mapped at: 0x0000025703000000-0x0000025743000000, reserved size: 1073741824
|
|
||||||
Narrow klass base: 0x0000025702000000, Narrow klass shift: 0, Narrow klass range: 0x100000000
|
|
||||||
|
|
||||||
GC Precious Log:
|
|
||||||
CPUs: 8 total, 8 available
|
|
||||||
Memory: 32701M
|
|
||||||
Large Page Support: Disabled
|
|
||||||
NUMA Support: Disabled
|
|
||||||
Compressed Oops: Enabled (Zero based)
|
|
||||||
Heap Region Size: 4M
|
|
||||||
Heap Min Capacity: 8M
|
|
||||||
Heap Initial Capacity: 512M
|
|
||||||
Heap Max Capacity: 8176M
|
|
||||||
Pre-touch: Disabled
|
|
||||||
Parallel Workers: 8
|
|
||||||
Concurrent Workers: 2
|
|
||||||
Concurrent Refinement Workers: 8
|
|
||||||
Periodic GC: Disabled
|
|
||||||
|
|
||||||
Heap:
|
|
||||||
garbage-first heap total 1400832K, used 464510K [0x0000000601000000, 0x0000000800000000)
|
|
||||||
region size 4096K, 2 young (8192K), 2 survivors (8192K)
|
|
||||||
Metaspace used 49364K, committed 56640K, reserved 1114112K
|
|
||||||
class space used 5435K, committed 7168K, reserved 1048576K
|
|
||||||
|
|
||||||
Heap Regions: E=young(eden), S=young(survivor), O=old, HS=humongous(starts), HC=humongous(continues), CS=collection set, F=free, OA=open archive, CA=closed archive, TAMS=top-at-mark-start (previous, next)
|
|
||||||
| 0|0x0000000601000000, 0x0000000601400000, 0x0000000601400000|100%| O| |TAMS 0x0000000601400000, 0x0000000601000000| Untracked
|
|
||||||
| 1|0x0000000601400000, 0x0000000601800000, 0x0000000601800000|100%| O| |TAMS 0x0000000601800000, 0x0000000601400000| Untracked
|
|
||||||
| 2|0x0000000601800000, 0x0000000601c00000, 0x0000000601c00000|100%| O| |TAMS 0x0000000601c00000, 0x0000000601800000| Untracked
|
|
||||||
| 3|0x0000000601c00000, 0x0000000602000000, 0x0000000602000000|100%| O| |TAMS 0x0000000602000000, 0x0000000601c00000| Untracked
|
|
||||||
| 4|0x0000000602000000, 0x0000000602400000, 0x0000000602400000|100%| O| |TAMS 0x0000000602400000, 0x0000000602000000| Untracked
|
|
||||||
| 5|0x0000000602400000, 0x0000000602800000, 0x0000000602800000|100%| O| |TAMS 0x0000000602800000, 0x0000000602400000| Untracked
|
|
||||||
| 6|0x0000000602800000, 0x0000000602c00000, 0x0000000602c00000|100%| O| |TAMS 0x0000000602800000, 0x0000000602800000| Untracked
|
|
||||||
| 7|0x0000000602c00000, 0x0000000603000000, 0x0000000603000000|100%| O| |TAMS 0x0000000603000000, 0x0000000602c00000| Untracked
|
|
||||||
| 8|0x0000000603000000, 0x0000000603400000, 0x0000000603400000|100%| O| |TAMS 0x0000000603400000, 0x0000000603000000| Untracked
|
|
||||||
| 9|0x0000000603400000, 0x0000000603800000, 0x0000000603800000|100%| O| |TAMS 0x0000000603800000, 0x0000000603400000| Untracked
|
|
||||||
| 10|0x0000000603800000, 0x0000000603c00000, 0x0000000603c00000|100%| O| |TAMS 0x0000000603c00000, 0x0000000603800000| Untracked
|
|
||||||
| 11|0x0000000603c00000, 0x0000000604000000, 0x0000000604000000|100%| O| |TAMS 0x0000000604000000, 0x0000000603c00000| Untracked
|
|
||||||
| 12|0x0000000604000000, 0x0000000604400000, 0x0000000604400000|100%| O| |TAMS 0x0000000604000000, 0x0000000604000000| Untracked
|
|
||||||
| 13|0x0000000604400000, 0x0000000604671c00, 0x0000000604800000| 61%| O| |TAMS 0x0000000604400000, 0x0000000604400000| Untracked
|
|
||||||
| 14|0x0000000604800000, 0x0000000604800000, 0x0000000604c00000| 0%| F| |TAMS 0x0000000604800000, 0x0000000604800000| Untracked
|
|
||||||
| 15|0x0000000604c00000, 0x0000000605000000, 0x0000000605000000|100%| O| |TAMS 0x0000000605000000, 0x0000000604c00000| Untracked
|
|
||||||
| 16|0x0000000605000000, 0x0000000605000000, 0x0000000605400000| 0%| F| |TAMS 0x0000000605000000, 0x0000000605000000| Untracked
|
|
||||||
| 17|0x0000000605400000, 0x0000000605400000, 0x0000000605800000| 0%| F| |TAMS 0x0000000605400000, 0x0000000605400000| Untracked
|
|
||||||
| 18|0x0000000605800000, 0x0000000605800000, 0x0000000605c00000| 0%| F| |TAMS 0x0000000605800000, 0x0000000605800000| Untracked
|
|
||||||
| 19|0x0000000605c00000, 0x0000000605c00000, 0x0000000606000000| 0%| F| |TAMS 0x0000000605c00000, 0x0000000605c00000| Untracked
|
|
||||||
| 20|0x0000000606000000, 0x0000000606000000, 0x0000000606400000| 0%| F| |TAMS 0x0000000606000000, 0x0000000606000000| Untracked
|
|
||||||
| 21|0x0000000606400000, 0x0000000606400000, 0x0000000606800000| 0%| F| |TAMS 0x0000000606400000, 0x0000000606400000| Untracked
|
|
||||||
| 22|0x0000000606800000, 0x0000000606c00000, 0x0000000606c00000|100%| O| |TAMS 0x0000000606c00000, 0x0000000606800000| Complete
|
|
||||||
| 23|0x0000000606c00000, 0x0000000606c00000, 0x0000000607000000| 0%| F| |TAMS 0x0000000606c00000, 0x0000000606c00000| Untracked
|
|
||||||
| 24|0x0000000607000000, 0x0000000607000000, 0x0000000607400000| 0%| F| |TAMS 0x0000000607000000, 0x0000000607000000| Untracked
|
|
||||||
| 25|0x0000000607400000, 0x0000000607400000, 0x0000000607800000| 0%| F| |TAMS 0x0000000607400000, 0x0000000607400000| Untracked
|
|
||||||
| 26|0x0000000607800000, 0x0000000607c00000, 0x0000000607c00000|100%| O| |TAMS 0x0000000607c00000, 0x0000000607800000| Complete
|
|
||||||
| 27|0x0000000607c00000, 0x0000000607c00000, 0x0000000608000000| 0%| F| |TAMS 0x0000000607c00000, 0x0000000607c00000| Untracked
|
|
||||||
| 28|0x0000000608000000, 0x0000000608400000, 0x0000000608400000|100%| O| |TAMS 0x0000000608400000, 0x0000000608000000| Complete
|
|
||||||
| 29|0x0000000608400000, 0x0000000608800000, 0x0000000608800000|100%| O| |TAMS 0x0000000608800000, 0x0000000608400000| Complete
|
|
||||||
| 30|0x0000000608800000, 0x0000000608c00000, 0x0000000608c00000|100%| O| |TAMS 0x0000000608c00000, 0x0000000608800000| Untracked
|
|
||||||
| 31|0x0000000608c00000, 0x0000000609000000, 0x0000000609000000|100%| O| |TAMS 0x0000000609000000, 0x0000000608c00000| Complete
|
|
||||||
| 32|0x0000000609000000, 0x0000000609000000, 0x0000000609400000| 0%| F| |TAMS 0x0000000609000000, 0x0000000609000000| Untracked
|
|
||||||
| 33|0x0000000609400000, 0x0000000609400000, 0x0000000609800000| 0%| F| |TAMS 0x0000000609400000, 0x0000000609400000| Untracked
|
|
||||||
| 34|0x0000000609800000, 0x0000000609800000, 0x0000000609c00000| 0%| F| |TAMS 0x0000000609800000, 0x0000000609800000| Untracked
|
|
||||||
| 35|0x0000000609c00000, 0x0000000609c00000, 0x000000060a000000| 0%| F| |TAMS 0x0000000609c00000, 0x0000000609c00000| Untracked
|
|
||||||
| 36|0x000000060a000000, 0x000000060a400000, 0x000000060a400000|100%|HS| |TAMS 0x000000060a400000, 0x000000060a000000| Complete
|
|
||||||
| 37|0x000000060a400000, 0x000000060a800000, 0x000000060a800000|100%| O| |TAMS 0x000000060a800000, 0x000000060a400000| Complete
|
|
||||||
| 38|0x000000060a800000, 0x000000060a800000, 0x000000060ac00000| 0%| F| |TAMS 0x000000060a800000, 0x000000060a800000| Untracked
|
|
||||||
| 39|0x000000060ac00000, 0x000000060b000000, 0x000000060b000000|100%| O| |TAMS 0x000000060b000000, 0x000000060ac00000| Complete
|
|
||||||
| 40|0x000000060b000000, 0x000000060b400000, 0x000000060b400000|100%| O| |TAMS 0x000000060b400000, 0x000000060b000000| Complete
|
|
||||||
| 41|0x000000060b400000, 0x000000060b800000, 0x000000060b800000|100%| O| |TAMS 0x000000060b800000, 0x000000060b400000| Untracked
|
|
||||||
| 42|0x000000060b800000, 0x000000060bc00000, 0x000000060bc00000|100%| O| |TAMS 0x000000060bc00000, 0x000000060b800000| Complete
|
|
||||||
| 43|0x000000060bc00000, 0x000000060bc00000, 0x000000060c000000| 0%| F| |TAMS 0x000000060bc00000, 0x000000060bc00000| Untracked
|
|
||||||
| 44|0x000000060c000000, 0x000000060c000000, 0x000000060c400000| 0%| F| |TAMS 0x000000060c000000, 0x000000060c000000| Untracked
|
|
||||||
| 45|0x000000060c400000, 0x000000060c800000, 0x000000060c800000|100%| O| |TAMS 0x000000060c800000, 0x000000060c400000| Untracked
|
|
||||||
| 46|0x000000060c800000, 0x000000060cc00000, 0x000000060cc00000|100%| O| |TAMS 0x000000060cc00000, 0x000000060c800000| Untracked
|
|
||||||
| 47|0x000000060cc00000, 0x000000060cc00000, 0x000000060d000000| 0%| F| |TAMS 0x000000060cc00000, 0x000000060cc00000| Untracked
|
|
||||||
| 48|0x000000060d000000, 0x000000060d000000, 0x000000060d400000| 0%| F| |TAMS 0x000000060d000000, 0x000000060d000000| Untracked
|
|
||||||
| 49|0x000000060d400000, 0x000000060d400000, 0x000000060d800000| 0%| F| |TAMS 0x000000060d400000, 0x000000060d400000| Untracked
|
|
||||||
| 50|0x000000060d800000, 0x000000060d800000, 0x000000060dc00000| 0%| F| |TAMS 0x000000060d800000, 0x000000060d800000| Untracked
|
|
||||||
| 51|0x000000060dc00000, 0x000000060dc00000, 0x000000060e000000| 0%| F| |TAMS 0x000000060dc00000, 0x000000060dc00000| Untracked
|
|
||||||
| 52|0x000000060e000000, 0x000000060e000000, 0x000000060e400000| 0%| F| |TAMS 0x000000060e000000, 0x000000060e000000| Untracked
|
|
||||||
| 53|0x000000060e400000, 0x000000060e800000, 0x000000060e800000|100%| O| |TAMS 0x000000060e800000, 0x000000060e400000| Complete
|
|
||||||
| 54|0x000000060e800000, 0x000000060e800000, 0x000000060ec00000| 0%| F| |TAMS 0x000000060e800000, 0x000000060e800000| Untracked
|
|
||||||
| 55|0x000000060ec00000, 0x000000060ec00000, 0x000000060f000000| 0%| F| |TAMS 0x000000060ec00000, 0x000000060ec00000| Untracked
|
|
||||||
| 56|0x000000060f000000, 0x000000060f400000, 0x000000060f400000|100%| O| |TAMS 0x000000060f400000, 0x000000060f000000| Untracked
|
|
||||||
| 57|0x000000060f400000, 0x000000060f400000, 0x000000060f800000| 0%| F| |TAMS 0x000000060f400000, 0x000000060f400000| Untracked
|
|
||||||
| 58|0x000000060f800000, 0x000000060f800000, 0x000000060fc00000| 0%| F| |TAMS 0x000000060f800000, 0x000000060f800000| Untracked
|
|
||||||
| 59|0x000000060fc00000, 0x000000060fc00000, 0x0000000610000000| 0%| F| |TAMS 0x000000060fc00000, 0x000000060fc00000| Untracked
|
|
||||||
| 60|0x0000000610000000, 0x0000000610000000, 0x0000000610400000| 0%| F| |TAMS 0x0000000610000000, 0x0000000610000000| Untracked
|
|
||||||
| 61|0x0000000610400000, 0x0000000610400000, 0x0000000610800000| 0%| F| |TAMS 0x0000000610400000, 0x0000000610400000| Untracked
|
|
||||||
| 62|0x0000000610800000, 0x0000000610800000, 0x0000000610c00000| 0%| F| |TAMS 0x0000000610800000, 0x0000000610800000| Untracked
|
|
||||||
| 63|0x0000000610c00000, 0x0000000610c00000, 0x0000000611000000| 0%| F| |TAMS 0x0000000610c00000, 0x0000000610c00000| Untracked
|
|
||||||
| 64|0x0000000611000000, 0x0000000611000000, 0x0000000611400000| 0%| F| |TAMS 0x0000000611000000, 0x0000000611000000| Untracked
|
|
||||||
| 65|0x0000000611400000, 0x0000000611400000, 0x0000000611800000| 0%| F| |TAMS 0x0000000611400000, 0x0000000611400000| Untracked
|
|
||||||
| 66|0x0000000611800000, 0x0000000611800000, 0x0000000611c00000| 0%| F| |TAMS 0x0000000611800000, 0x0000000611800000| Untracked
|
|
||||||
| 67|0x0000000611c00000, 0x0000000611c00000, 0x0000000612000000| 0%| F| |TAMS 0x0000000611c00000, 0x0000000611c00000| Untracked
|
|
||||||
| 68|0x0000000612000000, 0x0000000612000000, 0x0000000612400000| 0%| F| |TAMS 0x0000000612000000, 0x0000000612000000| Untracked
|
|
||||||
| 69|0x0000000612400000, 0x0000000612800000, 0x0000000612800000|100%| O| |TAMS 0x0000000612800000, 0x0000000612400000| Complete
|
|
||||||
| 70|0x0000000612800000, 0x0000000612800000, 0x0000000612c00000| 0%| F| |TAMS 0x0000000612800000, 0x0000000612800000| Untracked
|
|
||||||
| 71|0x0000000612c00000, 0x0000000612c00000, 0x0000000613000000| 0%| F| |TAMS 0x0000000612c00000, 0x0000000612c00000| Untracked
|
|
||||||
| 72|0x0000000613000000, 0x0000000613000000, 0x0000000613400000| 0%| F| |TAMS 0x0000000613000000, 0x0000000613000000| Untracked
|
|
||||||
| 73|0x0000000613400000, 0x0000000613400000, 0x0000000613800000| 0%| F| |TAMS 0x0000000613400000, 0x0000000613400000| Untracked
|
|
||||||
| 74|0x0000000613800000, 0x0000000613800000, 0x0000000613c00000| 0%| F| |TAMS 0x0000000613800000, 0x0000000613800000| Untracked
|
|
||||||
| 75|0x0000000613c00000, 0x0000000613c00000, 0x0000000614000000| 0%| F| |TAMS 0x0000000613c00000, 0x0000000613c00000| Untracked
|
|
||||||
| 76|0x0000000614000000, 0x0000000614000000, 0x0000000614400000| 0%| F| |TAMS 0x0000000614000000, 0x0000000614000000| Untracked
|
|
||||||
| 77|0x0000000614400000, 0x0000000614400000, 0x0000000614800000| 0%| F| |TAMS 0x0000000614400000, 0x0000000614400000| Untracked
|
|
||||||
| 78|0x0000000614800000, 0x0000000614800000, 0x0000000614c00000| 0%| F| |TAMS 0x0000000614800000, 0x0000000614800000| Untracked
|
|
||||||
| 79|0x0000000614c00000, 0x0000000615000000, 0x0000000615000000|100%| O| |TAMS 0x0000000615000000, 0x0000000614c00000| Untracked
|
|
||||||
| 80|0x0000000615000000, 0x0000000615400000, 0x0000000615400000|100%| O| |TAMS 0x0000000615400000, 0x0000000615000000| Untracked
|
|
||||||
| 81|0x0000000615400000, 0x0000000615800000, 0x0000000615800000|100%| O| |TAMS 0x0000000615800000, 0x0000000615400000| Untracked
|
|
||||||
| 82|0x0000000615800000, 0x0000000615c00000, 0x0000000615c00000|100%| O| |TAMS 0x0000000615c00000, 0x0000000615800000| Untracked
|
|
||||||
| 83|0x0000000615c00000, 0x0000000616000000, 0x0000000616000000|100%| O| |TAMS 0x0000000616000000, 0x0000000615c00000| Complete
|
|
||||||
| 84|0x0000000616000000, 0x0000000616400000, 0x0000000616400000|100%| O| |TAMS 0x0000000616400000, 0x0000000616000000| Complete
|
|
||||||
| 85|0x0000000616400000, 0x0000000616800000, 0x0000000616800000|100%| O| |TAMS 0x0000000616800000, 0x0000000616400000| Complete
|
|
||||||
| 86|0x0000000616800000, 0x0000000616c00000, 0x0000000616c00000|100%| O| |TAMS 0x0000000616c00000, 0x0000000616800000| Complete
|
|
||||||
| 87|0x0000000616c00000, 0x0000000616c00000, 0x0000000617000000| 0%| F| |TAMS 0x0000000616c00000, 0x0000000616c00000| Untracked
|
|
||||||
| 88|0x0000000617000000, 0x0000000617400000, 0x0000000617400000|100%| O| |TAMS 0x0000000617400000, 0x0000000617000000| Untracked
|
|
||||||
| 89|0x0000000617400000, 0x0000000617800000, 0x0000000617800000|100%| O| |TAMS 0x0000000617800000, 0x0000000617400000| Untracked
|
|
||||||
| 90|0x0000000617800000, 0x0000000617c00000, 0x0000000617c00000|100%| O| |TAMS 0x0000000617c00000, 0x0000000617800000| Untracked
|
|
||||||
| 91|0x0000000617c00000, 0x0000000618000000, 0x0000000618000000|100%| O| |TAMS 0x0000000618000000, 0x0000000617c00000| Untracked
|
|
||||||
| 92|0x0000000618000000, 0x0000000618000000, 0x0000000618400000| 0%| F| |TAMS 0x0000000618000000, 0x0000000618000000| Untracked
|
|
||||||
| 93|0x0000000618400000, 0x0000000618400000, 0x0000000618800000| 0%| F| |TAMS 0x0000000618400000, 0x0000000618400000| Untracked
|
|
||||||
| 94|0x0000000618800000, 0x0000000618800000, 0x0000000618c00000| 0%| F| |TAMS 0x0000000618800000, 0x0000000618800000| Untracked
|
|
||||||
| 95|0x0000000618c00000, 0x0000000618c00000, 0x0000000619000000| 0%| F| |TAMS 0x0000000618c00000, 0x0000000618c00000| Untracked
|
|
||||||
| 96|0x0000000619000000, 0x0000000619400000, 0x0000000619400000|100%|HS| |TAMS 0x0000000619400000, 0x0000000619000000| Complete
|
|
||||||
| 97|0x0000000619400000, 0x0000000619800000, 0x0000000619800000|100%| O| |TAMS 0x0000000619800000, 0x0000000619400000| Complete
|
|
||||||
| 98|0x0000000619800000, 0x0000000619800000, 0x0000000619c00000| 0%| F| |TAMS 0x0000000619800000, 0x0000000619800000| Untracked
|
|
||||||
| 99|0x0000000619c00000, 0x0000000619c00000, 0x000000061a000000| 0%| F| |TAMS 0x0000000619c00000, 0x0000000619c00000| Untracked
|
|
||||||
| 100|0x000000061a000000, 0x000000061a000000, 0x000000061a400000| 0%| F| |TAMS 0x000000061a000000, 0x000000061a000000| Untracked
|
|
||||||
| 101|0x000000061a400000, 0x000000061a800000, 0x000000061a800000|100%| O| |TAMS 0x000000061a800000, 0x000000061a400000| Complete
|
|
||||||
| 102|0x000000061a800000, 0x000000061a800000, 0x000000061ac00000| 0%| F| |TAMS 0x000000061a800000, 0x000000061a800000| Untracked
|
|
||||||
| 103|0x000000061ac00000, 0x000000061ac00000, 0x000000061b000000| 0%| F| |TAMS 0x000000061ac00000, 0x000000061ac00000| Untracked
|
|
||||||
| 104|0x000000061b000000, 0x000000061b000000, 0x000000061b400000| 0%| F| |TAMS 0x000000061b000000, 0x000000061b000000| Untracked
|
|
||||||
| 105|0x000000061b400000, 0x000000061b800000, 0x000000061b800000|100%| O| |TAMS 0x000000061b800000, 0x000000061b400000| Complete
|
|
||||||
| 106|0x000000061b800000, 0x000000061bc00000, 0x000000061bc00000|100%| O| |TAMS 0x000000061bc00000, 0x000000061b800000| Untracked
|
|
||||||
| 107|0x000000061bc00000, 0x000000061c000000, 0x000000061c000000|100%| O| |TAMS 0x000000061c000000, 0x000000061bc00000| Untracked
|
|
||||||
| 108|0x000000061c000000, 0x000000061c000000, 0x000000061c400000| 0%| F| |TAMS 0x000000061c000000, 0x000000061c000000| Untracked
|
|
||||||
| 109|0x000000061c400000, 0x000000061c800000, 0x000000061c800000|100%| O| |TAMS 0x000000061c800000, 0x000000061c400000| Untracked
|
|
||||||
| 110|0x000000061c800000, 0x000000061cc00000, 0x000000061cc00000|100%| O| |TAMS 0x000000061cc00000, 0x000000061c800000| Untracked
|
|
||||||
| 111|0x000000061cc00000, 0x000000061cc00000, 0x000000061d000000| 0%| F| |TAMS 0x000000061cc00000, 0x000000061cc00000| Untracked
|
|
||||||
| 112|0x000000061d000000, 0x000000061d400000, 0x000000061d400000|100%| O| |TAMS 0x000000061d400000, 0x000000061d000000| Untracked
|
|
||||||
| 113|0x000000061d400000, 0x000000061d800000, 0x000000061d800000|100%| O| |TAMS 0x000000061d800000, 0x000000061d400000| Untracked
|
|
||||||
| 114|0x000000061d800000, 0x000000061d800000, 0x000000061dc00000| 0%| F| |TAMS 0x000000061d800000, 0x000000061d800000| Untracked
|
|
||||||
| 115|0x000000061dc00000, 0x000000061e000000, 0x000000061e000000|100%| O| |TAMS 0x000000061e000000, 0x000000061dc00000| Untracked
|
|
||||||
| 116|0x000000061e000000, 0x000000061e400000, 0x000000061e400000|100%| O| |TAMS 0x000000061e400000, 0x000000061e000000| Untracked
|
|
||||||
| 117|0x000000061e400000, 0x000000061e800000, 0x000000061e800000|100%| O| |TAMS 0x000000061e800000, 0x000000061e400000| Untracked
|
|
||||||
| 118|0x000000061e800000, 0x000000061ec00000, 0x000000061ec00000|100%| O| |TAMS 0x000000061ec00000, 0x000000061e800000| Untracked
|
|
||||||
| 119|0x000000061ec00000, 0x000000061f000000, 0x000000061f000000|100%| O| |TAMS 0x000000061f000000, 0x000000061ec00000| Untracked
|
|
||||||
| 120|0x000000061f000000, 0x000000061f400000, 0x000000061f400000|100%| O| |TAMS 0x000000061f400000, 0x000000061f000000| Untracked
|
|
||||||
| 121|0x000000061f400000, 0x000000061f800000, 0x000000061f800000|100%| O| |TAMS 0x000000061f800000, 0x000000061f400000| Untracked
|
|
||||||
| 122|0x000000061f800000, 0x000000061f800000, 0x000000061fc00000| 0%| F| |TAMS 0x000000061f800000, 0x000000061f800000| Untracked
|
|
||||||
| 123|0x000000061fc00000, 0x0000000620000000, 0x0000000620000000|100%| O| |TAMS 0x0000000620000000, 0x000000061fc00000| Complete
|
|
||||||
| 124|0x0000000620000000, 0x0000000620400000, 0x0000000620400000|100%| O| |TAMS 0x0000000620400000, 0x0000000620000000| Complete
|
|
||||||
| 125|0x0000000620400000, 0x0000000620800000, 0x0000000620800000|100%| O| |TAMS 0x0000000620800000, 0x0000000620400000| Untracked
|
|
||||||
| 126|0x0000000620800000, 0x0000000620c00000, 0x0000000620c00000|100%| O| |TAMS 0x0000000620c00000, 0x0000000620800000| Untracked
|
|
||||||
| 127|0x0000000620c00000, 0x0000000621000000, 0x0000000621000000|100%| O| |TAMS 0x0000000621000000, 0x0000000620c00000| Untracked
|
|
||||||
| 128|0x0000000621000000, 0x0000000621400000, 0x0000000621400000|100%| O| |TAMS 0x0000000621400000, 0x0000000621000000| Untracked
|
|
||||||
| 129|0x0000000621400000, 0x0000000621800000, 0x0000000621800000|100%| O| |TAMS 0x0000000621800000, 0x0000000621400000| Complete
|
|
||||||
| 130|0x0000000621800000, 0x0000000621c00000, 0x0000000621c00000|100%| O| |TAMS 0x0000000621c00000, 0x0000000621800000| Untracked
|
|
||||||
| 131|0x0000000621c00000, 0x0000000622000000, 0x0000000622000000|100%| O| |TAMS 0x0000000622000000, 0x0000000621c00000| Untracked
|
|
||||||
| 132|0x0000000622000000, 0x0000000622400000, 0x0000000622400000|100%| O| |TAMS 0x0000000622400000, 0x0000000622000000| Untracked
|
|
||||||
| 133|0x0000000622400000, 0x0000000622800000, 0x0000000622800000|100%| O| |TAMS 0x0000000622800000, 0x0000000622400000| Untracked
|
|
||||||
| 134|0x0000000622800000, 0x0000000622c00000, 0x0000000622c00000|100%| O| |TAMS 0x0000000622c00000, 0x0000000622800000| Complete
|
|
||||||
| 135|0x0000000622c00000, 0x0000000623000000, 0x0000000623000000|100%| O| |TAMS 0x0000000623000000, 0x0000000622c00000| Untracked
|
|
||||||
| 136|0x0000000623000000, 0x0000000623400000, 0x0000000623400000|100%| O| |TAMS 0x0000000623400000, 0x0000000623000000| Untracked
|
|
||||||
| 137|0x0000000623400000, 0x0000000623800000, 0x0000000623800000|100%| O| |TAMS 0x0000000623800000, 0x0000000623400000| Untracked
|
|
||||||
| 138|0x0000000623800000, 0x0000000623c00000, 0x0000000623c00000|100%| O| |TAMS 0x0000000623c00000, 0x0000000623800000| Untracked
|
|
||||||
| 139|0x0000000623c00000, 0x0000000624000000, 0x0000000624000000|100%| O| |TAMS 0x0000000624000000, 0x0000000623c00000| Complete
|
|
||||||
| 140|0x0000000624000000, 0x0000000624000000, 0x0000000624400000| 0%| F| |TAMS 0x0000000624000000, 0x0000000624000000| Untracked
|
|
||||||
| 141|0x0000000624400000, 0x0000000624400000, 0x0000000624800000| 0%| F| |TAMS 0x0000000624400000, 0x0000000624400000| Untracked
|
|
||||||
| 142|0x0000000624800000, 0x0000000624c00000, 0x0000000624c00000|100%| O| |TAMS 0x0000000624c00000, 0x0000000624800000| Complete
|
|
||||||
| 143|0x0000000624c00000, 0x0000000624c00000, 0x0000000625000000| 0%| F| |TAMS 0x0000000624c00000, 0x0000000624c00000| Untracked
|
|
||||||
| 144|0x0000000625000000, 0x0000000625400000, 0x0000000625400000|100%| O| |TAMS 0x0000000625400000, 0x0000000625000000| Untracked
|
|
||||||
| 145|0x0000000625400000, 0x0000000625800000, 0x0000000625800000|100%| O| |TAMS 0x0000000625800000, 0x0000000625400000| Untracked
|
|
||||||
| 146|0x0000000625800000, 0x0000000625c00000, 0x0000000625c00000|100%| O| |TAMS 0x0000000625c00000, 0x0000000625800000| Untracked
|
|
||||||
| 147|0x0000000625c00000, 0x0000000626000000, 0x0000000626000000|100%| O| |TAMS 0x0000000626000000, 0x0000000625c00000| Untracked
|
|
||||||
| 148|0x0000000626000000, 0x0000000626400000, 0x0000000626400000|100%| O| |TAMS 0x0000000626400000, 0x0000000626000000| Untracked
|
|
||||||
| 149|0x0000000626400000, 0x0000000626800000, 0x0000000626800000|100%| O| |TAMS 0x0000000626800000, 0x0000000626400000| Untracked
|
|
||||||
| 150|0x0000000626800000, 0x0000000626800000, 0x0000000626c00000| 0%| F| |TAMS 0x0000000626800000, 0x0000000626800000| Untracked
|
|
||||||
| 151|0x0000000626c00000, 0x0000000626c00000, 0x0000000627000000| 0%| F| |TAMS 0x0000000626c00000, 0x0000000626c00000| Untracked
|
|
||||||
| 152|0x0000000627000000, 0x0000000627400000, 0x0000000627400000|100%| O| |TAMS 0x0000000627400000, 0x0000000627000000| Untracked
|
|
||||||
| 153|0x0000000627400000, 0x0000000627800000, 0x0000000627800000|100%|HS| |TAMS 0x0000000627800000, 0x0000000627400000| Complete
|
|
||||||
| 154|0x0000000627800000, 0x0000000627c00000, 0x0000000627c00000|100%| O| |TAMS 0x0000000627836400, 0x0000000627800000| Untracked
|
|
||||||
| 155|0x0000000627c00000, 0x0000000628000000, 0x0000000628000000|100%|HS| |TAMS 0x0000000628000000, 0x0000000627c00000| Complete
|
|
||||||
| 156|0x0000000628000000, 0x0000000628400000, 0x0000000628400000|100%| O| |TAMS 0x0000000628000000, 0x0000000628000000| Untracked
|
|
||||||
| 157|0x0000000628400000, 0x0000000628800000, 0x0000000628800000|100%| O| |TAMS 0x0000000628400000, 0x0000000628400000| Untracked
|
|
||||||
| 158|0x0000000628800000, 0x0000000628c00000, 0x0000000628c00000|100%| O| |TAMS 0x0000000628800000, 0x0000000628800000| Untracked
|
|
||||||
| 159|0x0000000628c00000, 0x0000000629000000, 0x0000000629000000|100%| O| |TAMS 0x0000000628c00000, 0x0000000628c00000| Untracked
|
|
||||||
| 160|0x0000000629000000, 0x0000000629400000, 0x0000000629400000|100%| O| |TAMS 0x0000000629000000, 0x0000000629000000| Untracked
|
|
||||||
| 161|0x0000000629400000, 0x0000000629800000, 0x0000000629800000|100%| O| |TAMS 0x0000000629400000, 0x0000000629400000| Untracked
|
|
||||||
| 162|0x0000000629800000, 0x0000000629c00000, 0x0000000629c00000|100%| O| |TAMS 0x0000000629800000, 0x0000000629800000| Untracked
|
|
||||||
| 163|0x0000000629c00000, 0x000000062a000000, 0x000000062a000000|100%| O| |TAMS 0x0000000629c00000, 0x0000000629c00000| Untracked
|
|
||||||
| 164|0x000000062a000000, 0x000000062a400000, 0x000000062a400000|100%| O| |TAMS 0x000000062a000000, 0x000000062a000000| Untracked
|
|
||||||
| 165|0x000000062a400000, 0x000000062a800000, 0x000000062a800000|100%| O| |TAMS 0x000000062a400000, 0x000000062a400000| Untracked
|
|
||||||
| 166|0x000000062a800000, 0x000000062ac00000, 0x000000062ac00000|100%| O| |TAMS 0x000000062a800000, 0x000000062a800000| Untracked
|
|
||||||
| 167|0x000000062ac00000, 0x000000062b000000, 0x000000062b000000|100%| O| |TAMS 0x000000062ac00000, 0x000000062ac00000| Untracked
|
|
||||||
| 168|0x000000062b000000, 0x000000062b400000, 0x000000062b400000|100%| O| |TAMS 0x000000062b000000, 0x000000062b000000| Untracked
|
|
||||||
| 169|0x000000062b400000, 0x000000062b800000, 0x000000062b800000|100%| O| |TAMS 0x000000062b400000, 0x000000062b400000| Untracked
|
|
||||||
| 170|0x000000062b800000, 0x000000062bc00000, 0x000000062bc00000|100%| O| |TAMS 0x000000062b800000, 0x000000062b800000| Untracked
|
|
||||||
| 171|0x000000062bc00000, 0x000000062c000000, 0x000000062c000000|100%| O| |TAMS 0x000000062bc00000, 0x000000062bc00000| Untracked
|
|
||||||
| 172|0x000000062c000000, 0x000000062c400000, 0x000000062c400000|100%| O| |TAMS 0x000000062c000000, 0x000000062c000000| Untracked
|
|
||||||
| 173|0x000000062c400000, 0x000000062c800000, 0x000000062c800000|100%| O| |TAMS 0x000000062c400000, 0x000000062c400000| Untracked
|
|
||||||
| 174|0x000000062c800000, 0x000000062cc00000, 0x000000062cc00000|100%| O| |TAMS 0x000000062c800000, 0x000000062c800000| Untracked
|
|
||||||
| 175|0x000000062cc00000, 0x000000062d000000, 0x000000062d000000|100%| O| |TAMS 0x000000062cc00000, 0x000000062cc00000| Untracked
|
|
||||||
| 176|0x000000062d000000, 0x000000062d400000, 0x000000062d400000|100%| O| |TAMS 0x000000062d000000, 0x000000062d000000| Untracked
|
|
||||||
| 177|0x000000062d400000, 0x000000062d800000, 0x000000062d800000|100%| O| |TAMS 0x000000062d400000, 0x000000062d400000| Untracked
|
|
||||||
| 178|0x000000062d800000, 0x000000062dc00000, 0x000000062dc00000|100%| O| |TAMS 0x000000062d800000, 0x000000062d800000| Untracked
|
|
||||||
| 179|0x000000062dc00000, 0x000000062dc00000, 0x000000062e000000| 0%| F| |TAMS 0x000000062dc00000, 0x000000062dc00000| Untracked
|
|
||||||
| 180|0x000000062e000000, 0x000000062e000000, 0x000000062e400000| 0%| F| |TAMS 0x000000062e000000, 0x000000062e000000| Untracked
|
|
||||||
| 181|0x000000062e400000, 0x000000062e400000, 0x000000062e800000| 0%| F| |TAMS 0x000000062e400000, 0x000000062e400000| Untracked
|
|
||||||
| 182|0x000000062e800000, 0x000000062e800000, 0x000000062ec00000| 0%| F| |TAMS 0x000000062e800000, 0x000000062e800000| Untracked
|
|
||||||
| 183|0x000000062ec00000, 0x000000062ec00000, 0x000000062f000000| 0%| F| |TAMS 0x000000062ec00000, 0x000000062ec00000| Untracked
|
|
||||||
| 184|0x000000062f000000, 0x000000062f000000, 0x000000062f400000| 0%| F| |TAMS 0x000000062f000000, 0x000000062f000000| Untracked
|
|
||||||
| 185|0x000000062f400000, 0x000000062f400000, 0x000000062f800000| 0%| F| |TAMS 0x000000062f400000, 0x000000062f400000| Untracked
|
|
||||||
| 186|0x000000062f800000, 0x000000062f800000, 0x000000062fc00000| 0%| F| |TAMS 0x000000062f800000, 0x000000062f800000| Untracked
|
|
||||||
| 187|0x000000062fc00000, 0x000000062fc00000, 0x0000000630000000| 0%| F| |TAMS 0x000000062fc00000, 0x000000062fc00000| Untracked
|
|
||||||
| 188|0x0000000630000000, 0x0000000630000000, 0x0000000630400000| 0%| F| |TAMS 0x0000000630000000, 0x0000000630000000| Untracked
|
|
||||||
| 189|0x0000000630400000, 0x0000000630400000, 0x0000000630800000| 0%| F| |TAMS 0x0000000630400000, 0x0000000630400000| Untracked
|
|
||||||
| 190|0x0000000630800000, 0x0000000630800000, 0x0000000630c00000| 0%| F| |TAMS 0x0000000630800000, 0x0000000630800000| Untracked
|
|
||||||
| 191|0x0000000630c00000, 0x0000000630c00000, 0x0000000631000000| 0%| F| |TAMS 0x0000000630c00000, 0x0000000630c00000| Untracked
|
|
||||||
| 192|0x0000000631000000, 0x0000000631000000, 0x0000000631400000| 0%| F| |TAMS 0x0000000631000000, 0x0000000631000000| Untracked
|
|
||||||
| 193|0x0000000631400000, 0x0000000631400000, 0x0000000631800000| 0%| F| |TAMS 0x0000000631400000, 0x0000000631400000| Untracked
|
|
||||||
| 194|0x0000000631800000, 0x0000000631800000, 0x0000000631c00000| 0%| F| |TAMS 0x0000000631800000, 0x0000000631800000| Untracked
|
|
||||||
| 195|0x0000000631c00000, 0x0000000631c00000, 0x0000000632000000| 0%| F| |TAMS 0x0000000631c00000, 0x0000000631c00000| Untracked
|
|
||||||
| 196|0x0000000632000000, 0x0000000632000000, 0x0000000632400000| 0%| F| |TAMS 0x0000000632000000, 0x0000000632000000| Untracked
|
|
||||||
| 197|0x0000000632400000, 0x0000000632400000, 0x0000000632800000| 0%| F| |TAMS 0x0000000632400000, 0x0000000632400000| Untracked
|
|
||||||
| 198|0x0000000632800000, 0x0000000632800000, 0x0000000632c00000| 0%| F| |TAMS 0x0000000632800000, 0x0000000632800000| Untracked
|
|
||||||
| 199|0x0000000632c00000, 0x0000000632c00000, 0x0000000633000000| 0%| F| |TAMS 0x0000000632c00000, 0x0000000632c00000| Untracked
|
|
||||||
| 200|0x0000000633000000, 0x0000000633000000, 0x0000000633400000| 0%| F| |TAMS 0x0000000633000000, 0x0000000633000000| Untracked
|
|
||||||
| 201|0x0000000633400000, 0x0000000633400000, 0x0000000633800000| 0%| F| |TAMS 0x0000000633400000, 0x0000000633400000| Untracked
|
|
||||||
| 202|0x0000000633800000, 0x0000000633800000, 0x0000000633c00000| 0%| F| |TAMS 0x0000000633800000, 0x0000000633800000| Untracked
|
|
||||||
| 203|0x0000000633c00000, 0x0000000633c00000, 0x0000000634000000| 0%| F| |TAMS 0x0000000633c00000, 0x0000000633c00000| Untracked
|
|
||||||
| 204|0x0000000634000000, 0x0000000634000000, 0x0000000634400000| 0%| F| |TAMS 0x0000000634000000, 0x0000000634000000| Untracked
|
|
||||||
| 205|0x0000000634400000, 0x0000000634400000, 0x0000000634800000| 0%| F| |TAMS 0x0000000634400000, 0x0000000634400000| Untracked
|
|
||||||
| 206|0x0000000634800000, 0x0000000634800000, 0x0000000634c00000| 0%| F| |TAMS 0x0000000634800000, 0x0000000634800000| Untracked
|
|
||||||
| 207|0x0000000634c00000, 0x0000000634c00000, 0x0000000635000000| 0%| F| |TAMS 0x0000000634c00000, 0x0000000634c00000| Untracked
|
|
||||||
| 208|0x0000000635000000, 0x0000000635000000, 0x0000000635400000| 0%| F| |TAMS 0x0000000635000000, 0x0000000635000000| Untracked
|
|
||||||
| 209|0x0000000635400000, 0x0000000635400000, 0x0000000635800000| 0%| F| |TAMS 0x0000000635400000, 0x0000000635400000| Untracked
|
|
||||||
| 210|0x0000000635800000, 0x0000000635800000, 0x0000000635c00000| 0%| F| |TAMS 0x0000000635800000, 0x0000000635800000| Untracked
|
|
||||||
| 211|0x0000000635c00000, 0x0000000635c00000, 0x0000000636000000| 0%| F| |TAMS 0x0000000635c00000, 0x0000000635c00000| Untracked
|
|
||||||
| 212|0x0000000636000000, 0x0000000636000000, 0x0000000636400000| 0%| F| |TAMS 0x0000000636000000, 0x0000000636000000| Untracked
|
|
||||||
| 213|0x0000000636400000, 0x0000000636400000, 0x0000000636800000| 0%| F| |TAMS 0x0000000636400000, 0x0000000636400000| Untracked
|
|
||||||
| 214|0x0000000636800000, 0x0000000636800000, 0x0000000636c00000| 0%| F| |TAMS 0x0000000636800000, 0x0000000636800000| Untracked
|
|
||||||
| 215|0x0000000636c00000, 0x0000000636c00000, 0x0000000637000000| 0%| F| |TAMS 0x0000000636c00000, 0x0000000636c00000| Untracked
|
|
||||||
| 216|0x0000000637000000, 0x0000000637000000, 0x0000000637400000| 0%| F| |TAMS 0x0000000637000000, 0x0000000637000000| Untracked
|
|
||||||
| 217|0x0000000637400000, 0x0000000637400000, 0x0000000637800000| 0%| F| |TAMS 0x0000000637400000, 0x0000000637400000| Untracked
|
|
||||||
| 218|0x0000000637800000, 0x0000000637800000, 0x0000000637c00000| 0%| F| |TAMS 0x0000000637800000, 0x0000000637800000| Untracked
|
|
||||||
| 219|0x0000000637c00000, 0x0000000637c00000, 0x0000000638000000| 0%| F| |TAMS 0x0000000637c00000, 0x0000000637c00000| Untracked
|
|
||||||
| 220|0x0000000638000000, 0x0000000638000000, 0x0000000638400000| 0%| F| |TAMS 0x0000000638000000, 0x0000000638000000| Untracked
|
|
||||||
| 221|0x0000000638400000, 0x0000000638400000, 0x0000000638800000| 0%| F| |TAMS 0x0000000638400000, 0x0000000638400000| Untracked
|
|
||||||
| 222|0x0000000638800000, 0x0000000638800000, 0x0000000638c00000| 0%| F| |TAMS 0x0000000638800000, 0x0000000638800000| Untracked
|
|
||||||
| 223|0x0000000638c00000, 0x0000000638c00000, 0x0000000639000000| 0%| F| |TAMS 0x0000000638c00000, 0x0000000638c00000| Untracked
|
|
||||||
| 224|0x0000000639000000, 0x0000000639000000, 0x0000000639400000| 0%| F| |TAMS 0x0000000639000000, 0x0000000639000000| Untracked
|
|
||||||
| 225|0x0000000639400000, 0x0000000639400000, 0x0000000639800000| 0%| F| |TAMS 0x0000000639400000, 0x0000000639400000| Untracked
|
|
||||||
| 226|0x0000000639800000, 0x0000000639800000, 0x0000000639c00000| 0%| F| |TAMS 0x0000000639800000, 0x0000000639800000| Untracked
|
|
||||||
| 227|0x0000000639c00000, 0x0000000639c00000, 0x000000063a000000| 0%| F| |TAMS 0x0000000639c00000, 0x0000000639c00000| Untracked
|
|
||||||
| 228|0x000000063a000000, 0x000000063a000000, 0x000000063a400000| 0%| F| |TAMS 0x000000063a000000, 0x000000063a000000| Untracked
|
|
||||||
| 229|0x000000063a400000, 0x000000063a400000, 0x000000063a800000| 0%| F| |TAMS 0x000000063a400000, 0x000000063a400000| Untracked
|
|
||||||
| 230|0x000000063a800000, 0x000000063a800000, 0x000000063ac00000| 0%| F| |TAMS 0x000000063a800000, 0x000000063a800000| Untracked
|
|
||||||
| 231|0x000000063ac00000, 0x000000063ac00000, 0x000000063b000000| 0%| F| |TAMS 0x000000063ac00000, 0x000000063ac00000| Untracked
|
|
||||||
| 232|0x000000063b000000, 0x000000063b000000, 0x000000063b400000| 0%| F| |TAMS 0x000000063b000000, 0x000000063b000000| Untracked
|
|
||||||
| 233|0x000000063b400000, 0x000000063b400000, 0x000000063b800000| 0%| F| |TAMS 0x000000063b400000, 0x000000063b400000| Untracked
|
|
||||||
| 234|0x000000063b800000, 0x000000063b800000, 0x000000063bc00000| 0%| F| |TAMS 0x000000063b800000, 0x000000063b800000| Untracked
|
|
||||||
| 235|0x000000063bc00000, 0x000000063bc00000, 0x000000063c000000| 0%| F| |TAMS 0x000000063bc00000, 0x000000063bc00000| Untracked
|
|
||||||
| 236|0x000000063c000000, 0x000000063c000000, 0x000000063c400000| 0%| F| |TAMS 0x000000063c000000, 0x000000063c000000| Untracked
|
|
||||||
| 237|0x000000063c400000, 0x000000063c400000, 0x000000063c800000| 0%| F| |TAMS 0x000000063c400000, 0x000000063c400000| Untracked
|
|
||||||
| 238|0x000000063c800000, 0x000000063c800000, 0x000000063cc00000| 0%| F| |TAMS 0x000000063c800000, 0x000000063c800000| Untracked
|
|
||||||
| 239|0x000000063cc00000, 0x000000063cc00000, 0x000000063d000000| 0%| F| |TAMS 0x000000063cc00000, 0x000000063cc00000| Untracked
|
|
||||||
| 240|0x000000063d000000, 0x000000063d000000, 0x000000063d400000| 0%| F| |TAMS 0x000000063d000000, 0x000000063d000000| Untracked
|
|
||||||
| 241|0x000000063d400000, 0x000000063d400000, 0x000000063d800000| 0%| F| |TAMS 0x000000063d400000, 0x000000063d400000| Untracked
|
|
||||||
| 242|0x000000063d800000, 0x000000063d800000, 0x000000063dc00000| 0%| F| |TAMS 0x000000063d800000, 0x000000063d800000| Untracked
|
|
||||||
| 243|0x000000063dc00000, 0x000000063dc00000, 0x000000063e000000| 0%| F| |TAMS 0x000000063dc00000, 0x000000063dc00000| Untracked
|
|
||||||
| 244|0x000000063e000000, 0x000000063e000000, 0x000000063e400000| 0%| F| |TAMS 0x000000063e000000, 0x000000063e000000| Untracked
|
|
||||||
| 245|0x000000063e400000, 0x000000063e400000, 0x000000063e800000| 0%| F| |TAMS 0x000000063e400000, 0x000000063e400000| Untracked
|
|
||||||
| 246|0x000000063e800000, 0x000000063e800000, 0x000000063ec00000| 0%| F| |TAMS 0x000000063e800000, 0x000000063e800000| Untracked
|
|
||||||
| 247|0x000000063ec00000, 0x000000063ec00000, 0x000000063f000000| 0%| F| |TAMS 0x000000063ec00000, 0x000000063ec00000| Untracked
|
|
||||||
| 248|0x000000063f000000, 0x000000063f000000, 0x000000063f400000| 0%| F| |TAMS 0x000000063f000000, 0x000000063f000000| Untracked
|
|
||||||
| 249|0x000000063f400000, 0x000000063f400000, 0x000000063f800000| 0%| F| |TAMS 0x000000063f400000, 0x000000063f400000| Untracked
|
|
||||||
| 250|0x000000063f800000, 0x000000063f800000, 0x000000063fc00000| 0%| F| |TAMS 0x000000063f800000, 0x000000063f800000| Untracked
|
|
||||||
| 251|0x000000063fc00000, 0x000000063fc00000, 0x0000000640000000| 0%| F| |TAMS 0x000000063fc00000, 0x000000063fc00000| Untracked
|
|
||||||
| 252|0x0000000640000000, 0x0000000640000000, 0x0000000640400000| 0%| F| |TAMS 0x0000000640000000, 0x0000000640000000| Untracked
|
|
||||||
| 253|0x0000000640400000, 0x0000000640400000, 0x0000000640800000| 0%| F| |TAMS 0x0000000640400000, 0x0000000640400000| Untracked
|
|
||||||
| 254|0x0000000640800000, 0x0000000640800000, 0x0000000640c00000| 0%| F| |TAMS 0x0000000640800000, 0x0000000640800000| Untracked
|
|
||||||
| 255|0x0000000640c00000, 0x0000000640c00000, 0x0000000641000000| 0%| F| |TAMS 0x0000000640c00000, 0x0000000640c00000| Untracked
|
|
||||||
| 256|0x0000000641000000, 0x0000000641000000, 0x0000000641400000| 0%| F| |TAMS 0x0000000641000000, 0x0000000641000000| Untracked
|
|
||||||
| 257|0x0000000641400000, 0x0000000641400000, 0x0000000641800000| 0%| F| |TAMS 0x0000000641400000, 0x0000000641400000| Untracked
|
|
||||||
| 258|0x0000000641800000, 0x0000000641800000, 0x0000000641c00000| 0%| F| |TAMS 0x0000000641800000, 0x0000000641800000| Untracked
|
|
||||||
| 259|0x0000000641c00000, 0x0000000641c00000, 0x0000000642000000| 0%| F| |TAMS 0x0000000641c00000, 0x0000000641c00000| Untracked
|
|
||||||
| 260|0x0000000642000000, 0x0000000642000000, 0x0000000642400000| 0%| F| |TAMS 0x0000000642000000, 0x0000000642000000| Untracked
|
|
||||||
| 261|0x0000000642400000, 0x0000000642400000, 0x0000000642800000| 0%| F| |TAMS 0x0000000642400000, 0x0000000642400000| Untracked
|
|
||||||
| 262|0x0000000642800000, 0x0000000642800000, 0x0000000642c00000| 0%| F| |TAMS 0x0000000642800000, 0x0000000642800000| Untracked
|
|
||||||
| 263|0x0000000642c00000, 0x0000000642c00000, 0x0000000643000000| 0%| F| |TAMS 0x0000000642c00000, 0x0000000642c00000| Untracked
|
|
||||||
| 264|0x0000000643000000, 0x0000000643000000, 0x0000000643400000| 0%| F| |TAMS 0x0000000643000000, 0x0000000643000000| Untracked
|
|
||||||
| 265|0x0000000643400000, 0x0000000643400000, 0x0000000643800000| 0%| F| |TAMS 0x0000000643400000, 0x0000000643400000| Untracked
|
|
||||||
| 266|0x0000000643800000, 0x0000000643800000, 0x0000000643c00000| 0%| F| |TAMS 0x0000000643800000, 0x0000000643800000| Untracked
|
|
||||||
| 267|0x0000000643c00000, 0x0000000643c00000, 0x0000000644000000| 0%| F| |TAMS 0x0000000643c00000, 0x0000000643c00000| Untracked
|
|
||||||
| 268|0x0000000644000000, 0x0000000644000000, 0x0000000644400000| 0%| F| |TAMS 0x0000000644000000, 0x0000000644000000| Untracked
|
|
||||||
| 269|0x0000000644400000, 0x0000000644400000, 0x0000000644800000| 0%| F| |TAMS 0x0000000644400000, 0x0000000644400000| Untracked
|
|
||||||
| 270|0x0000000644800000, 0x0000000644800000, 0x0000000644c00000| 0%| F| |TAMS 0x0000000644800000, 0x0000000644800000| Untracked
|
|
||||||
| 271|0x0000000644c00000, 0x0000000644c00000, 0x0000000645000000| 0%| F| |TAMS 0x0000000644c00000, 0x0000000644c00000| Untracked
|
|
||||||
| 272|0x0000000645000000, 0x0000000645000000, 0x0000000645400000| 0%| F| |TAMS 0x0000000645000000, 0x0000000645000000| Untracked
|
|
||||||
| 273|0x0000000645400000, 0x0000000645400000, 0x0000000645800000| 0%| F| |TAMS 0x0000000645400000, 0x0000000645400000| Untracked
|
|
||||||
| 274|0x0000000645800000, 0x0000000645800000, 0x0000000645c00000| 0%| F| |TAMS 0x0000000645800000, 0x0000000645800000| Untracked
|
|
||||||
| 275|0x0000000645c00000, 0x0000000645c00000, 0x0000000646000000| 0%| F| |TAMS 0x0000000645c00000, 0x0000000645c00000| Untracked
|
|
||||||
| 276|0x0000000646000000, 0x0000000646000000, 0x0000000646400000| 0%| F| |TAMS 0x0000000646000000, 0x0000000646000000| Untracked
|
|
||||||
| 277|0x0000000646400000, 0x0000000646400000, 0x0000000646800000| 0%| F| |TAMS 0x0000000646400000, 0x0000000646400000| Untracked
|
|
||||||
| 278|0x0000000646800000, 0x0000000646800000, 0x0000000646c00000| 0%| F| |TAMS 0x0000000646800000, 0x0000000646800000| Untracked
|
|
||||||
| 279|0x0000000646c00000, 0x0000000646c00000, 0x0000000647000000| 0%| F| |TAMS 0x0000000646c00000, 0x0000000646c00000| Untracked
|
|
||||||
| 280|0x0000000647000000, 0x0000000647000000, 0x0000000647400000| 0%| F| |TAMS 0x0000000647000000, 0x0000000647000000| Untracked
|
|
||||||
| 281|0x0000000647400000, 0x0000000647400000, 0x0000000647800000| 0%| F| |TAMS 0x0000000647400000, 0x0000000647400000| Untracked
|
|
||||||
| 282|0x0000000647800000, 0x0000000647800000, 0x0000000647c00000| 0%| F| |TAMS 0x0000000647800000, 0x0000000647800000| Untracked
|
|
||||||
| 283|0x0000000647c00000, 0x0000000647c00000, 0x0000000648000000| 0%| F| |TAMS 0x0000000647c00000, 0x0000000647c00000| Untracked
|
|
||||||
| 284|0x0000000648000000, 0x0000000648000000, 0x0000000648400000| 0%| F| |TAMS 0x0000000648000000, 0x0000000648000000| Untracked
|
|
||||||
| 285|0x0000000648400000, 0x0000000648400000, 0x0000000648800000| 0%| F| |TAMS 0x0000000648400000, 0x0000000648400000| Untracked
|
|
||||||
| 286|0x0000000648800000, 0x0000000648800000, 0x0000000648c00000| 0%| F| |TAMS 0x0000000648800000, 0x0000000648800000| Untracked
|
|
||||||
| 287|0x0000000648c00000, 0x0000000648c00000, 0x0000000649000000| 0%| F| |TAMS 0x0000000648c00000, 0x0000000648c00000| Untracked
|
|
||||||
| 288|0x0000000649000000, 0x0000000649000000, 0x0000000649400000| 0%| F| |TAMS 0x0000000649000000, 0x0000000649000000| Untracked
|
|
||||||
| 289|0x0000000649400000, 0x0000000649400000, 0x0000000649800000| 0%| F| |TAMS 0x0000000649400000, 0x0000000649400000| Untracked
|
|
||||||
| 290|0x0000000649800000, 0x0000000649800000, 0x0000000649c00000| 0%| F| |TAMS 0x0000000649800000, 0x0000000649800000| Untracked
|
|
||||||
| 291|0x0000000649c00000, 0x0000000649c00000, 0x000000064a000000| 0%| F| |TAMS 0x0000000649c00000, 0x0000000649c00000| Untracked
|
|
||||||
| 292|0x000000064a000000, 0x000000064a000000, 0x000000064a400000| 0%| F| |TAMS 0x000000064a000000, 0x000000064a000000| Untracked
|
|
||||||
| 293|0x000000064a400000, 0x000000064a400000, 0x000000064a800000| 0%| F| |TAMS 0x000000064a400000, 0x000000064a400000| Untracked
|
|
||||||
| 294|0x000000064a800000, 0x000000064a800000, 0x000000064ac00000| 0%| F| |TAMS 0x000000064a800000, 0x000000064a800000| Untracked
|
|
||||||
| 295|0x000000064ac00000, 0x000000064ac00000, 0x000000064b000000| 0%| F| |TAMS 0x000000064ac00000, 0x000000064ac00000| Untracked
|
|
||||||
| 296|0x000000064b000000, 0x000000064b000000, 0x000000064b400000| 0%| F| |TAMS 0x000000064b000000, 0x000000064b000000| Untracked
|
|
||||||
| 297|0x000000064b400000, 0x000000064b400000, 0x000000064b800000| 0%| F| |TAMS 0x000000064b400000, 0x000000064b400000| Untracked
|
|
||||||
| 298|0x000000064b800000, 0x000000064b800000, 0x000000064bc00000| 0%| F| |TAMS 0x000000064b800000, 0x000000064b800000| Untracked
|
|
||||||
| 299|0x000000064bc00000, 0x000000064bc00000, 0x000000064c000000| 0%| F| |TAMS 0x000000064bc00000, 0x000000064bc00000| Untracked
|
|
||||||
| 300|0x000000064c000000, 0x000000064c000000, 0x000000064c400000| 0%| F| |TAMS 0x000000064c000000, 0x000000064c000000| Untracked
|
|
||||||
| 301|0x000000064c400000, 0x000000064c400000, 0x000000064c800000| 0%| F| |TAMS 0x000000064c400000, 0x000000064c400000| Untracked
|
|
||||||
| 302|0x000000064c800000, 0x000000064c800000, 0x000000064cc00000| 0%| F| |TAMS 0x000000064c800000, 0x000000064c800000| Untracked
|
|
||||||
| 303|0x000000064cc00000, 0x000000064cc00000, 0x000000064d000000| 0%| F| |TAMS 0x000000064cc00000, 0x000000064cc00000| Untracked
|
|
||||||
| 304|0x000000064d000000, 0x000000064d000000, 0x000000064d400000| 0%| F| |TAMS 0x000000064d000000, 0x000000064d000000| Untracked
|
|
||||||
| 305|0x000000064d400000, 0x000000064d400000, 0x000000064d800000| 0%| F| |TAMS 0x000000064d400000, 0x000000064d400000| Untracked
|
|
||||||
| 306|0x000000064d800000, 0x000000064d800000, 0x000000064dc00000| 0%| F| |TAMS 0x000000064d800000, 0x000000064d800000| Untracked
|
|
||||||
| 307|0x000000064dc00000, 0x000000064dc00000, 0x000000064e000000| 0%| F| |TAMS 0x000000064dc00000, 0x000000064dc00000| Untracked
|
|
||||||
| 308|0x000000064e000000, 0x000000064e000000, 0x000000064e400000| 0%| F| |TAMS 0x000000064e000000, 0x000000064e000000| Untracked
|
|
||||||
| 309|0x000000064e400000, 0x000000064e400000, 0x000000064e800000| 0%| F| |TAMS 0x000000064e400000, 0x000000064e400000| Untracked
|
|
||||||
| 310|0x000000064e800000, 0x000000064e800000, 0x000000064ec00000| 0%| F| |TAMS 0x000000064e800000, 0x000000064e800000| Untracked
|
|
||||||
| 311|0x000000064ec00000, 0x000000064ec00000, 0x000000064f000000| 0%| F| |TAMS 0x000000064ec00000, 0x000000064ec00000| Untracked
|
|
||||||
| 312|0x000000064f000000, 0x000000064f000000, 0x000000064f400000| 0%| F| |TAMS 0x000000064f000000, 0x000000064f000000| Untracked
|
|
||||||
| 313|0x000000064f400000, 0x000000064f400000, 0x000000064f800000| 0%| F| |TAMS 0x000000064f400000, 0x000000064f400000| Untracked
|
|
||||||
| 314|0x000000064f800000, 0x000000064f800000, 0x000000064fc00000| 0%| F| |TAMS 0x000000064f800000, 0x000000064f800000| Untracked
|
|
||||||
| 315|0x000000064fc00000, 0x000000064fc00000, 0x0000000650000000| 0%| F| |TAMS 0x000000064fc00000, 0x000000064fc00000| Untracked
|
|
||||||
| 316|0x0000000650000000, 0x0000000650000000, 0x0000000650400000| 0%| F| |TAMS 0x0000000650000000, 0x0000000650000000| Untracked
|
|
||||||
| 317|0x0000000650400000, 0x0000000650400000, 0x0000000650800000| 0%| F| |TAMS 0x0000000650400000, 0x0000000650400000| Untracked
|
|
||||||
| 318|0x0000000650800000, 0x0000000650800000, 0x0000000650c00000| 0%| F| |TAMS 0x0000000650800000, 0x0000000650800000| Untracked
|
|
||||||
| 319|0x0000000650c00000, 0x0000000650c00000, 0x0000000651000000| 0%| F| |TAMS 0x0000000650c00000, 0x0000000650c00000| Untracked
|
|
||||||
| 320|0x0000000651000000, 0x0000000651000000, 0x0000000651400000| 0%| F| |TAMS 0x0000000651000000, 0x0000000651000000| Untracked
|
|
||||||
| 321|0x0000000651400000, 0x0000000651400000, 0x0000000651800000| 0%| F| |TAMS 0x0000000651400000, 0x0000000651400000| Untracked
|
|
||||||
| 322|0x0000000651800000, 0x0000000651800000, 0x0000000651c00000| 0%| F| |TAMS 0x0000000651800000, 0x0000000651800000| Untracked
|
|
||||||
| 323|0x0000000651c00000, 0x0000000651f2dc78, 0x0000000652000000| 79%| S|CS|TAMS 0x0000000651c00000, 0x0000000651c00000| Complete
|
|
||||||
| 324|0x0000000652000000, 0x0000000652400000, 0x0000000652400000|100%| S|CS|TAMS 0x0000000652000000, 0x0000000652000000| Complete
|
|
||||||
| 325|0x0000000652400000, 0x0000000652400000, 0x0000000652800000| 0%| F| |TAMS 0x0000000652400000, 0x0000000652400000| Untracked
|
|
||||||
| 326|0x0000000652800000, 0x0000000652800000, 0x0000000652c00000| 0%| F| |TAMS 0x0000000652800000, 0x0000000652800000| Untracked
|
|
||||||
| 327|0x0000000652c00000, 0x0000000652c00000, 0x0000000653000000| 0%| F| |TAMS 0x0000000652c00000, 0x0000000652c00000| Untracked
|
|
||||||
| 328|0x0000000653000000, 0x0000000653000000, 0x0000000653400000| 0%| F| |TAMS 0x0000000653000000, 0x0000000653000000| Untracked
|
|
||||||
| 329|0x0000000653400000, 0x0000000653400000, 0x0000000653800000| 0%| F| |TAMS 0x0000000653400000, 0x0000000653400000| Untracked
|
|
||||||
| 330|0x0000000653800000, 0x0000000653800000, 0x0000000653c00000| 0%| F| |TAMS 0x0000000653800000, 0x0000000653800000| Untracked
|
|
||||||
| 331|0x0000000653c00000, 0x0000000653c00000, 0x0000000654000000| 0%| F| |TAMS 0x0000000653c00000, 0x0000000653c00000| Untracked
|
|
||||||
| 332|0x0000000654000000, 0x0000000654000000, 0x0000000654400000| 0%| F| |TAMS 0x0000000654000000, 0x0000000654000000| Untracked
|
|
||||||
| 333|0x0000000654400000, 0x0000000654400000, 0x0000000654800000| 0%| F| |TAMS 0x0000000654400000, 0x0000000654400000| Untracked
|
|
||||||
| 334|0x0000000654800000, 0x0000000654800000, 0x0000000654c00000| 0%| F| |TAMS 0x0000000654800000, 0x0000000654800000| Untracked
|
|
||||||
| 335|0x0000000654c00000, 0x0000000654c00000, 0x0000000655000000| 0%| F| |TAMS 0x0000000654c00000, 0x0000000654c00000| Untracked
|
|
||||||
| 336|0x0000000655000000, 0x0000000655000000, 0x0000000655400000| 0%| F| |TAMS 0x0000000655000000, 0x0000000655000000| Untracked
|
|
||||||
| 337|0x0000000655400000, 0x0000000655400000, 0x0000000655800000| 0%| F| |TAMS 0x0000000655400000, 0x0000000655400000| Untracked
|
|
||||||
| 338|0x0000000655800000, 0x0000000655800000, 0x0000000655c00000| 0%| F| |TAMS 0x0000000655800000, 0x0000000655800000| Untracked
|
|
||||||
| 339|0x0000000655c00000, 0x0000000655c00000, 0x0000000656000000| 0%| F| |TAMS 0x0000000655c00000, 0x0000000655c00000| Untracked
|
|
||||||
| 340|0x0000000656000000, 0x0000000656000000, 0x0000000656400000| 0%| F| |TAMS 0x0000000656000000, 0x0000000656000000| Untracked
|
|
||||||
| 341|0x0000000656400000, 0x0000000656400000, 0x0000000656800000| 0%| F| |TAMS 0x0000000656400000, 0x0000000656400000| Untracked
|
|
||||||
|
|
||||||
Card table byte_map: [0x000002576ca50000,0x000002576da50000] _byte_map_base: 0x0000025769a48000
|
|
||||||
|
|
||||||
Marking Bits (Prev, Next): (CMBitMap*) 0x000002575446c810, (CMBitMap*) 0x000002575446c850
|
|
||||||
Prev Bits: [0x000002576ea50000, 0x0000025776a10000)
|
|
||||||
Next Bits: [0x0000025776a10000, 0x000002577e9d0000)
|
|
||||||
|
|
||||||
Polling page: 0x0000025752b40000
|
|
||||||
|
|
||||||
Metaspace:
|
|
||||||
|
|
||||||
Usage:
|
|
||||||
Non-class: 42.90 MB used.
|
|
||||||
Class: 5.31 MB used.
|
|
||||||
Both: 48.21 MB used.
|
|
||||||
|
|
||||||
Virtual space:
|
|
||||||
Non-class space: 64.00 MB reserved, 48.31 MB ( 75%) committed, 1 nodes.
|
|
||||||
Class space: 1.00 GB reserved, 7.00 MB ( <1%) committed, 1 nodes.
|
|
||||||
Both: 1.06 GB reserved, 55.31 MB ( 5%) committed.
|
|
||||||
|
|
||||||
Chunk freelists:
|
|
||||||
Non-Class: 20.77 MB
|
|
||||||
Class: 10.33 MB
|
|
||||||
Both: 31.11 MB
|
|
||||||
|
|
||||||
MaxMetaspaceSize: unlimited
|
|
||||||
CompressedClassSpaceSize: 1.00 GB
|
|
||||||
Initial GC threshold: 21.00 MB
|
|
||||||
Current GC threshold: 92.19 MB
|
|
||||||
CDS: on
|
|
||||||
MetaspaceReclaimPolicy: balanced
|
|
||||||
- commit_granule_bytes: 65536.
|
|
||||||
- commit_granule_words: 8192.
|
|
||||||
- virtual_space_node_default_size: 8388608.
|
|
||||||
- enlarge_chunks_in_place: 1.
|
|
||||||
- new_chunks_are_fully_committed: 0.
|
|
||||||
- uncommit_free_chunks: 1.
|
|
||||||
- use_allocation_guard: 0.
|
|
||||||
- handle_deallocations: 1.
|
|
||||||
|
|
||||||
|
|
||||||
Internal statistics:
|
|
||||||
|
|
||||||
num_allocs_failed_limit: 17.
|
|
||||||
num_arena_births: 758.
|
|
||||||
num_arena_deaths: 140.
|
|
||||||
num_vsnodes_births: 2.
|
|
||||||
num_vsnodes_deaths: 0.
|
|
||||||
num_space_committed: 1232.
|
|
||||||
num_space_uncommitted: 347.
|
|
||||||
num_chunks_returned_to_freelist: 2252.
|
|
||||||
num_chunks_taken_from_freelist: 5191.
|
|
||||||
num_chunk_merges: 689.
|
|
||||||
num_chunk_splits: 2844.
|
|
||||||
num_chunks_enlarged: 1361.
|
|
||||||
num_inconsistent_stats: 0.
|
|
||||||
|
|
||||||
CodeHeap 'non-profiled nmethods': size=120000Kb used=13845Kb max_used=14768Kb free=106154Kb
|
|
||||||
bounds [0x0000025763ac0000, 0x0000025764930000, 0x000002576aff0000]
|
|
||||||
CodeHeap 'profiled nmethods': size=120000Kb used=25344Kb max_used=29850Kb free=94655Kb
|
|
||||||
bounds [0x000002575bff0000, 0x000002575dd20000, 0x0000025763520000]
|
|
||||||
CodeHeap 'non-nmethods': size=5760Kb used=1250Kb max_used=1534Kb free=4509Kb
|
|
||||||
bounds [0x0000025763520000, 0x0000025763790000, 0x0000025763ac0000]
|
|
||||||
total_blobs=13033 nmethods=12471 adapters=473
|
|
||||||
compilation: enabled
|
|
||||||
stopped_count=0, restarted_count=0
|
|
||||||
full_count=0
|
|
||||||
|
|
||||||
Compilation events (20 events):
|
|
||||||
Event: 21.747 Thread 0x000002577ec34090 20241 3 com.sun.tools.javac.comp.TypeEnter$HierarchyPhase::clearTypeParams (38 bytes)
|
|
||||||
Event: 21.747 Thread 0x000002577ec34090 nmethod 20241 0x000002575ccc7b90 code [0x000002575ccc7d60, 0x000002575ccc8108]
|
|
||||||
Event: 21.747 Thread 0x000002577ec34090 20242 3 com.sun.tools.javac.comp.Check$CycleChecker::visitIdent (13 bytes)
|
|
||||||
Event: 21.747 Thread 0x000002577ec34090 nmethod 20242 0x000002575ce5fb10 code [0x000002575ce5fcc0, 0x000002575ce5fee8]
|
|
||||||
Event: 21.747 Thread 0x000002577ec34090 20243 2 lombok.javac.JavacASTAdapter::endVisitCompilationUnit (1 bytes)
|
|
||||||
Event: 21.747 Thread 0x000002577ec34090 nmethod 20243 0x000002575d125290 code [0x000002575d125420, 0x000002575d125518]
|
|
||||||
Event: 21.749 Thread 0x000002577ec34090 20244 2 lombok.javac.handlers.HandleVal::eq (58 bytes)
|
|
||||||
Event: 21.749 Thread 0x000002577ec34090 nmethod 20244 0x000002575c759710 code [0x000002575c759940, 0x000002575c759d48]
|
|
||||||
Event: 21.750 Thread 0x000002577ec34090 20245 2 lombok.javac.JavacASTAdapter::visitAnnotationOnMethod (1 bytes)
|
|
||||||
Event: 21.750 Thread 0x000002577ec34090 nmethod 20245 0x000002575d379f90 code [0x000002575d37a120, 0x000002575d37a218]
|
|
||||||
Event: 21.751 Thread 0x000002577ec34090 20246 ! 2 lombok.javac.handlers.HandleVal::endVisitLocal (993 bytes)
|
|
||||||
Event: 21.755 Thread 0x000002577ec34090 nmethod 20246 0x000002575d413b90 code [0x000002575d4143e0, 0x000002575d417218]
|
|
||||||
Event: 21.755 Thread 0x000002577ec34090 20247 2 lombok.permit.Permit::setAccessible (27 bytes)
|
|
||||||
Event: 21.755 Thread 0x000002577ec34090 nmethod 20247 0x000002575d486d10 code [0x000002575d486ea0, 0x000002575d486f98]
|
|
||||||
Event: 21.759 Thread 0x000002577ec34090 20248 ! 2 lombok.javac.JavacAST::getBodyMethod (64 bytes)
|
|
||||||
Event: 21.759 Thread 0x000002577ec34090 nmethod 20248 0x000002575c3f6d90 code [0x000002575c3f6f80, 0x000002575c3f7368]
|
|
||||||
Event: 21.760 Thread 0x000002577ec34090 20249 2 com.sun.tools.javac.comp.TypeEnter::ensureImportsChecked (62 bytes)
|
|
||||||
Event: 21.761 Thread 0x000002577ec34090 nmethod 20249 0x000002575c7ad110 code [0x000002575c7ad320, 0x000002575c7ad8c8]
|
|
||||||
Event: 21.772 Thread 0x000002577ec34090 20255 2 com.sun.tools.javac.comp.Check::checkRefType (26 bytes)
|
|
||||||
Event: 21.772 Thread 0x000002577ec34090 nmethod 20255 0x000002575c9d3c10 code [0x000002575c9d3de0, 0x000002575c9d3fc8]
|
|
||||||
|
|
||||||
GC Heap History (20 events):
|
|
||||||
Event: 14.570 GC heap after
|
|
||||||
{Heap after GC invocations=35 (full 0):
|
|
||||||
garbage-first heap total 1167360K, used 424005K [0x0000000601000000, 0x0000000800000000)
|
|
||||||
region size 4096K, 8 young (32768K), 8 survivors (32768K)
|
|
||||||
Metaspace used 61566K, committed 62592K, reserved 1114112K
|
|
||||||
class space used 6957K, committed 7424K, reserved 1048576K
|
|
||||||
}
|
|
||||||
Event: 16.908 GC heap before
|
|
||||||
{Heap before GC invocations=35 (full 0):
|
|
||||||
garbage-first heap total 1167360K, used 862277K [0x0000000601000000, 0x0000000800000000)
|
|
||||||
region size 4096K, 115 young (471040K), 8 survivors (32768K)
|
|
||||||
Metaspace used 62236K, committed 63232K, reserved 1114112K
|
|
||||||
class space used 7020K, committed 7488K, reserved 1048576K
|
|
||||||
}
|
|
||||||
Event: 16.929 GC heap after
|
|
||||||
{Heap after GC invocations=36 (full 0):
|
|
||||||
garbage-first heap total 1167360K, used 495229K [0x0000000601000000, 0x0000000800000000)
|
|
||||||
region size 4096K, 15 young (61440K), 15 survivors (61440K)
|
|
||||||
Metaspace used 62236K, committed 63232K, reserved 1114112K
|
|
||||||
class space used 7020K, committed 7488K, reserved 1048576K
|
|
||||||
}
|
|
||||||
Event: 17.969 GC heap before
|
|
||||||
{Heap before GC invocations=36 (full 0):
|
|
||||||
garbage-first heap total 1167360K, used 863869K [0x0000000601000000, 0x0000000800000000)
|
|
||||||
region size 4096K, 106 young (434176K), 15 survivors (61440K)
|
|
||||||
Metaspace used 63393K, committed 64512K, reserved 1114112K
|
|
||||||
class space used 7148K, committed 7616K, reserved 1048576K
|
|
||||||
}
|
|
||||||
Event: 18.001 GC heap after
|
|
||||||
{Heap after GC invocations=37 (full 0):
|
|
||||||
garbage-first heap total 1167360K, used 588618K [0x0000000601000000, 0x0000000800000000)
|
|
||||||
region size 4096K, 14 young (57344K), 14 survivors (57344K)
|
|
||||||
Metaspace used 63393K, committed 64512K, reserved 1114112K
|
|
||||||
class space used 7148K, committed 7616K, reserved 1048576K
|
|
||||||
}
|
|
||||||
Event: 18.755 GC heap before
|
|
||||||
{Heap before GC invocations=37 (full 0):
|
|
||||||
garbage-first heap total 1167360K, used 879434K [0x0000000601000000, 0x0000000800000000)
|
|
||||||
region size 4096K, 86 young (352256K), 14 survivors (57344K)
|
|
||||||
Metaspace used 68268K, committed 69376K, reserved 1114112K
|
|
||||||
class space used 7712K, committed 8192K, reserved 1048576K
|
|
||||||
}
|
|
||||||
Event: 18.777 GC heap after
|
|
||||||
{Heap after GC invocations=38 (full 0):
|
|
||||||
garbage-first heap total 1167360K, used 621836K [0x0000000601000000, 0x0000000800000000)
|
|
||||||
region size 4096K, 8 young (32768K), 8 survivors (32768K)
|
|
||||||
Metaspace used 68268K, committed 69376K, reserved 1114112K
|
|
||||||
class space used 7712K, committed 8192K, reserved 1048576K
|
|
||||||
}
|
|
||||||
Event: 19.223 GC heap before
|
|
||||||
{Heap before GC invocations=38 (full 0):
|
|
||||||
garbage-first heap total 1167360K, used 904460K [0x0000000601000000, 0x0000000800000000)
|
|
||||||
region size 4096K, 78 young (319488K), 8 survivors (32768K)
|
|
||||||
Metaspace used 69902K, committed 71104K, reserved 1114112K
|
|
||||||
class space used 7909K, committed 8448K, reserved 1048576K
|
|
||||||
}
|
|
||||||
Event: 19.236 GC heap after
|
|
||||||
{Heap after GC invocations=39 (full 0):
|
|
||||||
garbage-first heap total 1167360K, used 636231K [0x0000000601000000, 0x0000000800000000)
|
|
||||||
region size 4096K, 3 young (12288K), 3 survivors (12288K)
|
|
||||||
Metaspace used 69902K, committed 71104K, reserved 1114112K
|
|
||||||
class space used 7909K, committed 8448K, reserved 1048576K
|
|
||||||
}
|
|
||||||
Event: 19.750 GC heap before
|
|
||||||
{Heap before GC invocations=39 (full 0):
|
|
||||||
garbage-first heap total 1167360K, used 922951K [0x0000000601000000, 0x0000000800000000)
|
|
||||||
region size 4096K, 74 young (303104K), 3 survivors (12288K)
|
|
||||||
Metaspace used 70950K, committed 72064K, reserved 1114112K
|
|
||||||
class space used 8006K, committed 8512K, reserved 1048576K
|
|
||||||
}
|
|
||||||
Event: 19.765 GC heap after
|
|
||||||
{Heap after GC invocations=40 (full 0):
|
|
||||||
garbage-first heap total 1400832K, used 652012K [0x0000000601000000, 0x0000000800000000)
|
|
||||||
region size 4096K, 7 young (28672K), 7 survivors (28672K)
|
|
||||||
Metaspace used 70950K, committed 72064K, reserved 1114112K
|
|
||||||
class space used 8006K, committed 8512K, reserved 1048576K
|
|
||||||
}
|
|
||||||
Event: 20.441 GC heap before
|
|
||||||
{Heap before GC invocations=40 (full 0):
|
|
||||||
garbage-first heap total 1400832K, used 1086188K [0x0000000601000000, 0x0000000800000000)
|
|
||||||
region size 4096K, 113 young (462848K), 7 survivors (28672K)
|
|
||||||
Metaspace used 71423K, committed 72576K, reserved 1114112K
|
|
||||||
class space used 8062K, committed 8576K, reserved 1048576K
|
|
||||||
}
|
|
||||||
Event: 20.465 GC heap after
|
|
||||||
{Heap after GC invocations=41 (full 0):
|
|
||||||
garbage-first heap total 1400832K, used 692441K [0x0000000601000000, 0x0000000800000000)
|
|
||||||
region size 4096K, 15 young (61440K), 15 survivors (61440K)
|
|
||||||
Metaspace used 71423K, committed 72576K, reserved 1114112K
|
|
||||||
class space used 8062K, committed 8576K, reserved 1048576K
|
|
||||||
}
|
|
||||||
Event: 20.964 GC heap before
|
|
||||||
{Heap before GC invocations=41 (full 0):
|
|
||||||
garbage-first heap total 1400832K, used 1069273K [0x0000000601000000, 0x0000000800000000)
|
|
||||||
region size 4096K, 108 young (442368K), 15 survivors (61440K)
|
|
||||||
Metaspace used 72709K, committed 73856K, reserved 1114112K
|
|
||||||
class space used 8207K, committed 8768K, reserved 1048576K
|
|
||||||
}
|
|
||||||
Event: 20.987 GC heap after
|
|
||||||
{Heap after GC invocations=42 (full 0):
|
|
||||||
garbage-first heap total 1400832K, used 720801K [0x0000000601000000, 0x0000000800000000)
|
|
||||||
region size 4096K, 7 young (28672K), 7 survivors (28672K)
|
|
||||||
Metaspace used 72709K, committed 73856K, reserved 1114112K
|
|
||||||
class space used 8207K, committed 8768K, reserved 1048576K
|
|
||||||
}
|
|
||||||
Event: 21.637 GC heap before
|
|
||||||
{Heap before GC invocations=43 (full 0):
|
|
||||||
garbage-first heap total 1400832K, used 1122209K [0x0000000601000000, 0x0000000800000000)
|
|
||||||
region size 4096K, 106 young (434176K), 7 survivors (28672K)
|
|
||||||
Metaspace used 49336K, committed 56640K, reserved 1114112K
|
|
||||||
class space used 5434K, committed 7168K, reserved 1048576K
|
|
||||||
}
|
|
||||||
Event: 21.648 GC heap after
|
|
||||||
{Heap after GC invocations=44 (full 0):
|
|
||||||
garbage-first heap total 1400832K, used 723685K [0x0000000601000000, 0x0000000800000000)
|
|
||||||
region size 4096K, 7 young (28672K), 7 survivors (28672K)
|
|
||||||
Metaspace used 49336K, committed 56640K, reserved 1114112K
|
|
||||||
class space used 5434K, committed 7168K, reserved 1048576K
|
|
||||||
}
|
|
||||||
Event: 21.701 GC heap before
|
|
||||||
{Heap before GC invocations=44 (full 0):
|
|
||||||
garbage-first heap total 1400832K, used 760549K [0x0000000601000000, 0x0000000800000000)
|
|
||||||
region size 4096K, 17 young (69632K), 7 survivors (28672K)
|
|
||||||
Metaspace used 49343K, committed 56640K, reserved 1114112K
|
|
||||||
class space used 5435K, committed 7168K, reserved 1048576K
|
|
||||||
}
|
|
||||||
Event: 21.712 GC heap after
|
|
||||||
{Heap after GC invocations=45 (full 0):
|
|
||||||
garbage-first heap total 1400832K, used 591919K [0x0000000601000000, 0x0000000800000000)
|
|
||||||
region size 4096K, 2 young (8192K), 2 survivors (8192K)
|
|
||||||
Metaspace used 49343K, committed 56640K, reserved 1114112K
|
|
||||||
class space used 5435K, committed 7168K, reserved 1048576K
|
|
||||||
}
|
|
||||||
Event: 21.792 GC heap before
|
|
||||||
{Heap before GC invocations=45 (full 0):
|
|
||||||
garbage-first heap total 1400832K, used 653359K [0x0000000601000000, 0x0000000800000000)
|
|
||||||
region size 4096K, 17 young (69632K), 2 survivors (8192K)
|
|
||||||
Metaspace used 49364K, committed 56640K, reserved 1114112K
|
|
||||||
class space used 5435K, committed 7168K, reserved 1048576K
|
|
||||||
}
|
|
||||||
|
|
||||||
Deoptimization events (20 events):
|
|
||||||
Event: 21.736 Thread 0x0000025747e837f0 Uncommon trap: trap_request=0xffffffc6 fr.pc=0x0000025763fe00f0 relative=0x0000000000000ff0
|
|
||||||
Event: 21.736 Thread 0x0000025747e837f0 Uncommon trap: reason=bimorphic_or_optimized_type_check action=maybe_recompile pc=0x0000025763fe00f0 method=lombok.javac.JavacNode.traverse(Llombok/javac/JavacASTVisitor;)V @ 490 c2
|
|
||||||
Event: 21.736 Thread 0x0000025747e837f0 DEOPT PACKING pc=0x0000025763fe00f0 sp=0x000000a0caffd680
|
|
||||||
Event: 21.736 Thread 0x0000025747e837f0 DEOPT UNPACKING pc=0x00000257635723a3 sp=0x000000a0caffd600 mode 2
|
|
||||||
Event: 21.781 Thread 0x0000025747e83d00 Uncommon trap: trap_request=0xffffffde fr.pc=0x00000257648c60f4 relative=0x00000000000000d4
|
|
||||||
Event: 21.781 Thread 0x0000025747e83d00 Uncommon trap: reason=class_check action=maybe_recompile pc=0x00000257648c60f4 method=java.lang.Character.toLowerCase(I)I @ 5 c2
|
|
||||||
Event: 21.781 Thread 0x0000025747e83d00 DEOPT PACKING pc=0x00000257648c60f4 sp=0x000000a0cb0fe0e0
|
|
||||||
Event: 21.781 Thread 0x0000025747e83d00 DEOPT UNPACKING pc=0x00000257635723a3 sp=0x000000a0cb0fe078 mode 2
|
|
||||||
Event: 21.781 Thread 0x0000025747e83d00 Uncommon trap: trap_request=0xffffffde fr.pc=0x00000257648c60f4 relative=0x00000000000000d4
|
|
||||||
Event: 21.781 Thread 0x0000025747e83d00 Uncommon trap: reason=class_check action=maybe_recompile pc=0x00000257648c60f4 method=java.lang.Character.toLowerCase(I)I @ 5 c2
|
|
||||||
Event: 21.781 Thread 0x0000025747e83d00 DEOPT PACKING pc=0x00000257648c60f4 sp=0x000000a0cb0fe0e0
|
|
||||||
Event: 21.781 Thread 0x0000025747e83d00 DEOPT UNPACKING pc=0x00000257635723a3 sp=0x000000a0cb0fe078 mode 2
|
|
||||||
Event: 21.781 Thread 0x0000025747e83d00 Uncommon trap: trap_request=0xffffffde fr.pc=0x00000257648c60f4 relative=0x00000000000000d4
|
|
||||||
Event: 21.781 Thread 0x0000025747e83d00 Uncommon trap: reason=class_check action=maybe_recompile pc=0x00000257648c60f4 method=java.lang.Character.toLowerCase(I)I @ 5 c2
|
|
||||||
Event: 21.781 Thread 0x0000025747e83d00 DEOPT PACKING pc=0x00000257648c60f4 sp=0x000000a0cb0fe0e0
|
|
||||||
Event: 21.781 Thread 0x0000025747e83d00 DEOPT UNPACKING pc=0x00000257635723a3 sp=0x000000a0cb0fe078 mode 2
|
|
||||||
Event: 21.781 Thread 0x0000025747e83d00 Uncommon trap: trap_request=0xffffffde fr.pc=0x00000257648c60f4 relative=0x00000000000000d4
|
|
||||||
Event: 21.781 Thread 0x0000025747e83d00 Uncommon trap: reason=class_check action=maybe_recompile pc=0x00000257648c60f4 method=java.lang.Character.toLowerCase(I)I @ 5 c2
|
|
||||||
Event: 21.781 Thread 0x0000025747e83d00 DEOPT PACKING pc=0x00000257648c60f4 sp=0x000000a0cb0fe0e0
|
|
||||||
Event: 21.781 Thread 0x0000025747e83d00 DEOPT UNPACKING pc=0x00000257635723a3 sp=0x000000a0cb0fe078 mode 2
|
|
||||||
|
|
||||||
Classes unloaded (20 events):
|
|
||||||
Event: 21.132 Thread 0x000002577ec0ce20 Unloading class 0x00000257034d1808 'org/springframework/boot/configurationprocessor/MetadataGenerationEnvironment'
|
|
||||||
Event: 21.132 Thread 0x000002577ec0ce20 Unloading class 0x00000257034d15e8 'org/springframework/boot/configurationprocessor/TypeUtils$$Lambda$694+0x00000257034d15e8'
|
|
||||||
Event: 21.132 Thread 0x000002577ec0ce20 Unloading class 0x00000257034d12c8 'org/springframework/boot/configurationprocessor/TypeUtils$TypeExtractor'
|
|
||||||
Event: 21.132 Thread 0x000002577ec0ce20 Unloading class 0x00000257034d1098 'org/springframework/boot/configurationprocessor/TypeUtils$$Lambda$688+0x00000257034d1098'
|
|
||||||
Event: 21.132 Thread 0x000002577ec0ce20 Unloading class 0x00000257034d0e40 'org/springframework/boot/configurationprocessor/TypeUtils'
|
|
||||||
Event: 21.132 Thread 0x000002577ec0ce20 Unloading class 0x00000257034d0c08 'org/springframework/boot/configurationprocessor/metadata/ConfigurationMetadata$$Lambda$687+0x00000257034d0c08'
|
|
||||||
Event: 21.132 Thread 0x000002577ec0ce20 Unloading class 0x00000257034d09e8 'org/springframework/boot/configurationprocessor/metadata/ItemMetadata'
|
|
||||||
Event: 21.132 Thread 0x000002577ec0ce20 Unloading class 0x00000257034d07e8 'org/springframework/boot/configurationprocessor/json/JSON'
|
|
||||||
Event: 21.132 Thread 0x000002577ec0ce20 Unloading class 0x00000257034d05a8 'org/springframework/boot/configurationprocessor/metadata/ItemMetadata$ItemType'
|
|
||||||
Event: 21.132 Thread 0x000002577ec0ce20 Unloading class 0x00000257034d0270 'org/springframework/boot/configurationprocessor/json/JSONArray'
|
|
||||||
Event: 21.132 Thread 0x000002577ec0ce20 Unloading class 0x00000257034d0000 'org/springframework/boot/configurationprocessor/json/JSONTokener'
|
|
||||||
Event: 21.132 Thread 0x000002577ec0ce20 Unloading class 0x00000257034ccc08 'org/springframework/boot/configurationprocessor/json/JSONObject$1'
|
|
||||||
Event: 21.132 Thread 0x000002577ec0ce20 Unloading class 0x00000257034cc9b0 'org/springframework/boot/configurationprocessor/json/JSONException'
|
|
||||||
Event: 21.132 Thread 0x000002577ec0ce20 Unloading class 0x00000257034cc678 'org/springframework/boot/configurationprocessor/json/JSONObject'
|
|
||||||
Event: 21.132 Thread 0x000002577ec0ce20 Unloading class 0x00000257034cc438 'org/springframework/boot/configurationprocessor/metadata/ConfigurationMetadata'
|
|
||||||
Event: 21.132 Thread 0x000002577ec0ce20 Unloading class 0x00000257034cc228 'org/springframework/boot/configurationprocessor/metadata/JsonMarshaller'
|
|
||||||
Event: 21.132 Thread 0x000002577ec0ce20 Unloading class 0x00000257034cc000 'org/springframework/boot/configurationprocessor/MetadataCollector'
|
|
||||||
Event: 21.132 Thread 0x000002577ec0ce20 Unloading class 0x0000025703364530 'org/springframework/boot/configurationprocessor/MetadataStore'
|
|
||||||
Event: 21.132 Thread 0x000002577ec0ce20 Unloading class 0x00000257033642d0 'org/springframework/boot/configurationprocessor/metadata/InvalidConfigurationMetadataException'
|
|
||||||
Event: 21.132 Thread 0x000002577ec0ce20 Unloading class 0x0000025703364000 'org/springframework/boot/configurationprocessor/ConfigurationMetadataAnnotationProcessor'
|
|
||||||
|
|
||||||
Classes redefined (0 events):
|
|
||||||
No events
|
|
||||||
|
|
||||||
Internal exceptions (20 events):
|
|
||||||
Event: 21.715 Thread 0x0000025747e83d00 Exception <a 'sun/nio/fs/WindowsException'{0x00000006566273d0}> (0x00000006566273d0)
|
|
||||||
thrown [s\open\src\hotspot\share\prims\jni.cpp, line 516]
|
|
||||||
Event: 21.716 Thread 0x0000025747e837f0 Exception <a 'sun/nio/fs/WindowsException'{0x000000065666ab88}> (0x000000065666ab88)
|
|
||||||
thrown [s\open\src\hotspot\share\prims\jni.cpp, line 516]
|
|
||||||
Event: 21.716 Thread 0x0000025747e837f0 Exception <a 'sun/nio/fs/WindowsException'{0x000000065666ad40}> (0x000000065666ad40)
|
|
||||||
thrown [s\open\src\hotspot\share\prims\jni.cpp, line 516]
|
|
||||||
Event: 21.716 Thread 0x0000025747e837f0 Exception <a 'sun/nio/fs/WindowsException'{0x000000065666bcb8}> (0x000000065666bcb8)
|
|
||||||
thrown [s\open\src\hotspot\share\prims\jni.cpp, line 516]
|
|
||||||
Event: 21.716 Thread 0x0000025747e837f0 Exception <a 'sun/nio/fs/WindowsException'{0x000000065666beb8}> (0x000000065666beb8)
|
|
||||||
thrown [s\open\src\hotspot\share\prims\jni.cpp, line 516]
|
|
||||||
Event: 21.716 Thread 0x0000025747e837f0 Exception <a 'sun/nio/fs/WindowsException'{0x000000065666cf18}> (0x000000065666cf18)
|
|
||||||
thrown [s\open\src\hotspot\share\prims\jni.cpp, line 516]
|
|
||||||
Event: 21.716 Thread 0x0000025747e837f0 Exception <a 'sun/nio/fs/WindowsException'{0x000000065666d0e0}> (0x000000065666d0e0)
|
|
||||||
thrown [s\open\src\hotspot\share\prims\jni.cpp, line 516]
|
|
||||||
Event: 21.720 Thread 0x0000025747e83d00 Exception <a 'sun/nio/fs/WindowsException'{0x00000006567f6850}> (0x00000006567f6850)
|
|
||||||
thrown [s\open\src\hotspot\share\prims\jni.cpp, line 516]
|
|
||||||
Event: 21.720 Thread 0x0000025747e83d00 Exception <a 'sun/nio/fs/WindowsException'{0x00000006567f6f40}> (0x00000006567f6f40)
|
|
||||||
thrown [s\open\src\hotspot\share\prims\jni.cpp, line 516]
|
|
||||||
Event: 21.720 Thread 0x0000025747e83d00 Exception <a 'sun/nio/fs/WindowsException'{0x00000006567f78d0}> (0x00000006567f78d0)
|
|
||||||
thrown [s\open\src\hotspot\share\prims\jni.cpp, line 516]
|
|
||||||
Event: 21.725 Thread 0x0000025747e83d00 Exception <a 'sun/nio/fs/WindowsException'{0x0000000655e1fb00}> (0x0000000655e1fb00)
|
|
||||||
thrown [s\open\src\hotspot\share\prims\jni.cpp, line 516]
|
|
||||||
Event: 21.725 Thread 0x0000025747e83d00 Exception <a 'sun/nio/fs/WindowsException'{0x0000000655e20220}> (0x0000000655e20220)
|
|
||||||
thrown [s\open\src\hotspot\share\prims\jni.cpp, line 516]
|
|
||||||
Event: 21.725 Thread 0x0000025747e83d00 Exception <a 'sun/nio/fs/WindowsException'{0x0000000655e20cb8}> (0x0000000655e20cb8)
|
|
||||||
thrown [s\open\src\hotspot\share\prims\jni.cpp, line 516]
|
|
||||||
Event: 21.725 Thread 0x0000025747e83d00 Exception <a 'sun/nio/fs/WindowsException'{0x0000000655e21458}> (0x0000000655e21458)
|
|
||||||
thrown [s\open\src\hotspot\share\prims\jni.cpp, line 516]
|
|
||||||
Event: 21.766 Thread 0x0000025747e837f0 Exception <a 'sun/nio/fs/WindowsException'{0x00000006541cbb00}> (0x00000006541cbb00)
|
|
||||||
thrown [s\open\src\hotspot\share\prims\jni.cpp, line 516]
|
|
||||||
Event: 21.766 Thread 0x0000025747e837f0 Exception <a 'sun/nio/fs/WindowsException'{0x00000006541cbcb8}> (0x00000006541cbcb8)
|
|
||||||
thrown [s\open\src\hotspot\share\prims\jni.cpp, line 516]
|
|
||||||
Event: 21.766 Thread 0x0000025747e837f0 Exception <a 'sun/nio/fs/WindowsException'{0x00000006541ccc30}> (0x00000006541ccc30)
|
|
||||||
thrown [s\open\src\hotspot\share\prims\jni.cpp, line 516]
|
|
||||||
Event: 21.766 Thread 0x0000025747e837f0 Exception <a 'sun/nio/fs/WindowsException'{0x00000006541cce30}> (0x00000006541cce30)
|
|
||||||
thrown [s\open\src\hotspot\share\prims\jni.cpp, line 516]
|
|
||||||
Event: 21.766 Thread 0x0000025747e837f0 Exception <a 'sun/nio/fs/WindowsException'{0x00000006541cde90}> (0x00000006541cde90)
|
|
||||||
thrown [s\open\src\hotspot\share\prims\jni.cpp, line 516]
|
|
||||||
Event: 21.767 Thread 0x0000025747e837f0 Exception <a 'sun/nio/fs/WindowsException'{0x00000006541ce058}> (0x00000006541ce058)
|
|
||||||
thrown [s\open\src\hotspot\share\prims\jni.cpp, line 516]
|
|
||||||
|
|
||||||
VM Operations (20 events):
|
|
||||||
Event: 20.989 Executing VM operation: CollectForMetadataAllocation done
|
|
||||||
Event: 21.085 Executing VM operation: CollectForMetadataAllocation
|
|
||||||
Event: 21.085 Executing VM operation: CollectForMetadataAllocation done
|
|
||||||
Event: 21.113 Executing VM operation: G1Concurrent
|
|
||||||
Event: 21.154 Executing VM operation: G1Concurrent done
|
|
||||||
Event: 21.154 Executing VM operation: HandshakeAllThreads
|
|
||||||
Event: 21.209 Executing VM operation: HandshakeAllThreads done
|
|
||||||
Event: 21.232 Executing VM operation: HandshakeAllThreads
|
|
||||||
Event: 21.233 Executing VM operation: HandshakeAllThreads done
|
|
||||||
Event: 21.239 Executing VM operation: G1Concurrent
|
|
||||||
Event: 21.242 Executing VM operation: G1Concurrent done
|
|
||||||
Event: 21.624 Executing VM operation: ICBufferFull
|
|
||||||
Event: 21.624 Executing VM operation: ICBufferFull done
|
|
||||||
Event: 21.637 Executing VM operation: G1CollectForAllocation
|
|
||||||
Event: 21.648 Executing VM operation: G1CollectForAllocation done
|
|
||||||
Event: 21.701 Executing VM operation: G1CollectForAllocation
|
|
||||||
Event: 21.713 Executing VM operation: G1CollectForAllocation done
|
|
||||||
Event: 21.745 Executing VM operation: HandshakeAllThreads
|
|
||||||
Event: 21.745 Executing VM operation: HandshakeAllThreads done
|
|
||||||
Event: 21.792 Executing VM operation: G1CollectForAllocation
|
|
||||||
|
|
||||||
Events (20 events):
|
|
||||||
Event: 21.764 Thread 0x000002577ec3aa20 flushing nmethod 0x000002575db72390
|
|
||||||
Event: 21.764 Thread 0x000002577ec3aa20 flushing nmethod 0x000002575db78210
|
|
||||||
Event: 21.764 Thread 0x000002577ec3aa20 flushing nmethod 0x000002575db86710
|
|
||||||
Event: 21.764 Thread 0x000002577ec3aa20 flushing nmethod 0x000002575db86c10
|
|
||||||
Event: 21.764 Thread 0x000002577ec3aa20 flushing nmethod 0x000002575db9c110
|
|
||||||
Event: 21.764 Thread 0x000002577ec3aa20 flushing nmethod 0x000002575db9cd10
|
|
||||||
Event: 21.764 Thread 0x000002577ec3aa20 flushing nmethod 0x000002575db9d110
|
|
||||||
Event: 21.764 Thread 0x000002577ec3aa20 flushing nmethod 0x000002575db9d710
|
|
||||||
Event: 21.764 Thread 0x000002577ec3aa20 flushing nmethod 0x000002575db9f490
|
|
||||||
Event: 21.764 Thread 0x000002577ec3aa20 flushing nmethod 0x000002575dbb2110
|
|
||||||
Event: 21.764 Thread 0x000002577ec3aa20 flushing nmethod 0x000002575dbb7010
|
|
||||||
Event: 21.764 Thread 0x000002577ec3aa20 flushing nmethod 0x000002575dbb7390
|
|
||||||
Event: 21.764 Thread 0x000002577ec3aa20 flushing nmethod 0x000002575dbe5990
|
|
||||||
Event: 21.764 Thread 0x000002577ec3aa20 flushing nmethod 0x000002575dc2a290
|
|
||||||
Event: 21.764 Thread 0x000002577ec3aa20 flushing nmethod 0x000002575dc58490
|
|
||||||
Event: 21.764 Thread 0x000002577ec3aa20 flushing nmethod 0x000002575dc5b890
|
|
||||||
Event: 21.764 Thread 0x000002577ec3aa20 flushing nmethod 0x000002575dc5c090
|
|
||||||
Event: 21.764 Thread 0x000002577ec3aa20 flushing nmethod 0x000002575dc5d090
|
|
||||||
Event: 21.764 Thread 0x000002577ec3aa20 flushing nmethod 0x000002575dc5e190
|
|
||||||
Event: 21.764 Thread 0x000002577ec3aa20 flushing nmethod 0x000002575dc5e910
|
|
||||||
|
|
||||||
|
|
||||||
Dynamic libraries:
|
|
||||||
0x00007ff7ebc30000 - 0x00007ff7ebc40000 D:\Program Files\Java\jdk-17\bin\java.exe
|
|
||||||
0x00007ffc3de30000 - 0x00007ffc3e028000 C:\WINDOWS\SYSTEM32\ntdll.dll
|
|
||||||
0x00007ffc3caf0000 - 0x00007ffc3cbb2000 C:\WINDOWS\System32\KERNEL32.DLL
|
|
||||||
0x00007ffc3b630000 - 0x00007ffc3b92e000 C:\WINDOWS\System32\KERNELBASE.dll
|
|
||||||
0x00007ffc3b930000 - 0x00007ffc3ba30000 C:\WINDOWS\System32\ucrtbase.dll
|
|
||||||
0x00007ffc36620000 - 0x00007ffc3663b000 D:\Program Files\Java\jdk-17\bin\VCRUNTIME140.dll
|
|
||||||
0x00007ffc2e970000 - 0x00007ffc2e989000 D:\Program Files\Java\jdk-17\bin\jli.dll
|
|
||||||
0x00007ffc3c010000 - 0x00007ffc3c0c1000 C:\WINDOWS\System32\ADVAPI32.dll
|
|
||||||
0x00007ffc3c1f0000 - 0x00007ffc3c28e000 C:\WINDOWS\System32\msvcrt.dll
|
|
||||||
0x00007ffc3cbd0000 - 0x00007ffc3cc6f000 C:\WINDOWS\System32\sechost.dll
|
|
||||||
0x00007ffc3be50000 - 0x00007ffc3bf73000 C:\WINDOWS\System32\RPCRT4.dll
|
|
||||||
0x00007ffc3bd60000 - 0x00007ffc3bd87000 C:\WINDOWS\System32\bcrypt.dll
|
|
||||||
0x00007ffc3c800000 - 0x00007ffc3c99d000 C:\WINDOWS\System32\USER32.dll
|
|
||||||
0x00007ffc3be20000 - 0x00007ffc3be42000 C:\WINDOWS\System32\win32u.dll
|
|
||||||
0x00007ffc3bf80000 - 0x00007ffc3bfab000 C:\WINDOWS\System32\GDI32.dll
|
|
||||||
0x00007ffc3bb80000 - 0x00007ffc3bc97000 C:\WINDOWS\System32\gdi32full.dll
|
|
||||||
0x00007ffc26790000 - 0x00007ffc26a2a000 C:\WINDOWS\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.19041.4355_none_60b8b9eb71f62e16\COMCTL32.dll
|
|
||||||
0x00007ffc3ba30000 - 0x00007ffc3bacd000 C:\WINDOWS\System32\msvcp_win.dll
|
|
||||||
0x00007ffc3afe0000 - 0x00007ffc3afea000 C:\WINDOWS\SYSTEM32\VERSION.dll
|
|
||||||
0x00007ffc3c0e0000 - 0x00007ffc3c10f000 C:\WINDOWS\System32\IMM32.DLL
|
|
||||||
0x000000005ca60000 - 0x000000005ca6d000 D:\Program Files (x86)\360\360SAFE\safemon\SafeWrapper.dll
|
|
||||||
0x00007ffc2e060000 - 0x00007ffc2e165000 D:\Program Files (x86)\360\360SAFE\safemon\libzdtp64.dll
|
|
||||||
0x00007ffc3cc70000 - 0x00007ffc3d3dd000 C:\WINDOWS\System32\SHELL32.dll
|
|
||||||
0x00007ffc3c190000 - 0x00007ffc3c1e5000 C:\WINDOWS\System32\SHLWAPI.dll
|
|
||||||
0x00007ffc36610000 - 0x00007ffc3661c000 D:\Program Files\Java\jdk-17\bin\vcruntime140_1.dll
|
|
||||||
0x00007ffc03e10000 - 0x00007ffc03e9e000 D:\Program Files\Java\jdk-17\bin\msvcp140.dll
|
|
||||||
0x00007ffbe4ab0000 - 0x00007ffbe5691000 D:\Program Files\Java\jdk-17\bin\server\jvm.dll
|
|
||||||
0x00007ffc3c0d0000 - 0x00007ffc3c0d8000 C:\WINDOWS\System32\PSAPI.DLL
|
|
||||||
0x00007ffc27990000 - 0x00007ffc27999000 C:\WINDOWS\SYSTEM32\WSOCK32.dll
|
|
||||||
0x00007ffc32310000 - 0x00007ffc32337000 C:\WINDOWS\SYSTEM32\WINMM.dll
|
|
||||||
0x00007ffc3ca80000 - 0x00007ffc3caeb000 C:\WINDOWS\System32\WS2_32.dll
|
|
||||||
0x00007ffc39cc0000 - 0x00007ffc39cd2000 C:\WINDOWS\SYSTEM32\kernel.appcore.dll
|
|
||||||
0x00007ffc2e880000 - 0x00007ffc2e88a000 D:\Program Files\Java\jdk-17\bin\jimage.dll
|
|
||||||
0x00007ffc397f0000 - 0x00007ffc399d4000 C:\WINDOWS\SYSTEM32\DBGHELP.DLL
|
|
||||||
0x00007ffc2d790000 - 0x00007ffc2d7c4000 C:\WINDOWS\SYSTEM32\dbgcore.DLL
|
|
||||||
0x00007ffc3bd90000 - 0x00007ffc3be12000 C:\WINDOWS\System32\bcryptPrimitives.dll
|
|
||||||
0x00007ffc27490000 - 0x00007ffc2749e000 D:\Program Files\Java\jdk-17\bin\instrument.dll
|
|
||||||
0x00007ffc27460000 - 0x00007ffc27485000 D:\Program Files\Java\jdk-17\bin\java.dll
|
|
||||||
0x00007ffbfa7d0000 - 0x00007ffbfa8a7000 D:\Program Files\Java\jdk-17\bin\jsvml.dll
|
|
||||||
0x00007ffc38f70000 - 0x00007ffc39714000 C:\WINDOWS\SYSTEM32\windows.storage.dll
|
|
||||||
0x00007ffc3da90000 - 0x00007ffc3dde3000 C:\WINDOWS\System32\combase.dll
|
|
||||||
0x00007ffc3ae40000 - 0x00007ffc3ae6e000 C:\WINDOWS\SYSTEM32\Wldp.dll
|
|
||||||
0x00007ffc3d640000 - 0x00007ffc3d70d000 C:\WINDOWS\System32\OLEAUT32.dll
|
|
||||||
0x00007ffc3d9e0000 - 0x00007ffc3da8d000 C:\WINDOWS\System32\SHCORE.dll
|
|
||||||
0x00007ffc3b400000 - 0x00007ffc3b424000 C:\WINDOWS\SYSTEM32\profapi.dll
|
|
||||||
0x00007ffc25b50000 - 0x00007ffc25b68000 D:\Program Files\Java\jdk-17\bin\zip.dll
|
|
||||||
0x00007ffc25e90000 - 0x00007ffc25ea9000 D:\Program Files\Java\jdk-17\bin\net.dll
|
|
||||||
0x00007ffc34d20000 - 0x00007ffc34e2d000 C:\WINDOWS\SYSTEM32\WINHTTP.dll
|
|
||||||
0x00007ffc3aba0000 - 0x00007ffc3ac0a000 C:\WINDOWS\system32\mswsock.dll
|
|
||||||
0x00007ffc25bd0000 - 0x00007ffc25be6000 D:\Program Files\Java\jdk-17\bin\nio.dll
|
|
||||||
0x00007ffc25ef0000 - 0x00007ffc25f0a000 D:\Program Files\JetBrains\IntelliJ IDEA 2024.3.1\bin\breakgen64.dll
|
|
||||||
0x00007ffc2ccf0000 - 0x00007ffc2cd14000 C:\Users\ADAM5\AppData\Local\Temp\jansi-2.4.1-b87462ac789684e0-jansi.dll
|
|
||||||
0x00007ffc27a20000 - 0x00007ffc27a30000 D:\Program Files\Java\jdk-17\bin\verify.dll
|
|
||||||
0x00007ffc3a6e0000 - 0x00007ffc3a713000 C:\WINDOWS\SYSTEM32\ntmarta.dll
|
|
||||||
|
|
||||||
dbghelp: loaded successfully - version: 4.0.5 - missing functions: none
|
|
||||||
symbol engine: initialized successfully - sym options: 0x614 - pdb path: .;D:\Program Files\Java\jdk-17\bin;C:\WINDOWS\SYSTEM32;C:\WINDOWS\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.19041.4355_none_60b8b9eb71f62e16;D:\Program Files (x86)\360\360SAFE\safemon;D:\Program Files\Java\jdk-17\bin\server;D:\Program Files\JetBrains\IntelliJ IDEA 2024.3.1\bin;C:\Users\ADAM5\AppData\Local\Temp
|
|
||||||
|
|
||||||
VM Arguments:
|
|
||||||
jvm_args: -Dmaven.multiModuleProjectDirectory=E:\Idea-project\ikingtec-new6.0\microservices-platform -Djansi.passthrough=true -Dmaven.home=D:\Program Files\JetBrains\IntelliJ IDEA 2024.3.1\plugins\maven\lib\maven3 -Dclassworlds.conf=D:\Program Files\JetBrains\IntelliJ IDEA 2024.3.1\plugins\maven\lib\maven3\bin\m2.conf -Dmaven.ext.class.path=D:\Program Files\JetBrains\IntelliJ IDEA 2024.3.1\plugins\maven\lib\maven-event-listener.jar -javaagent:D:\Program Files\JetBrains\IntelliJ IDEA 2024.3.1\lib\idea_rt.jar=58940:D:\Program Files\JetBrains\IntelliJ IDEA 2024.3.1\bin -Dfile.encoding=UTF-8
|
|
||||||
java_command: org.codehaus.classworlds.Launcher -Didea.version=2024.3.1 -T 8 -s D:\maven\apache-maven-3.5.2\conf\settings.xml package
|
|
||||||
java_class_path (initial): D:\Program Files\JetBrains\IntelliJ IDEA 2024.3.1\plugins\maven\lib\maven3\boot\plexus-classworlds-2.8.0.jar;D:\Program Files\JetBrains\IntelliJ IDEA 2024.3.1\plugins\maven\lib\maven3\boot\plexus-classworlds.license
|
|
||||||
Launcher Type: SUN_STANDARD
|
|
||||||
|
|
||||||
[Global flags]
|
|
||||||
intx CICompilerCount = 4 {product} {ergonomic}
|
|
||||||
uint ConcGCThreads = 2 {product} {ergonomic}
|
|
||||||
uint G1ConcRefinementThreads = 8 {product} {ergonomic}
|
|
||||||
size_t G1HeapRegionSize = 4194304 {product} {ergonomic}
|
|
||||||
uintx GCDrainStackTargetSize = 64 {product} {ergonomic}
|
|
||||||
size_t InitialHeapSize = 536870912 {product} {ergonomic}
|
|
||||||
size_t MarkStackSize = 4194304 {product} {ergonomic}
|
|
||||||
size_t MaxHeapSize = 8573157376 {product} {ergonomic}
|
|
||||||
size_t MaxNewSize = 5142216704 {product} {ergonomic}
|
|
||||||
size_t MinHeapDeltaBytes = 4194304 {product} {ergonomic}
|
|
||||||
size_t MinHeapSize = 8388608 {product} {ergonomic}
|
|
||||||
uintx NonNMethodCodeHeapSize = 5839372 {pd product} {ergonomic}
|
|
||||||
uintx NonProfiledCodeHeapSize = 122909434 {pd product} {ergonomic}
|
|
||||||
uintx ProfiledCodeHeapSize = 122909434 {pd product} {ergonomic}
|
|
||||||
uintx ReservedCodeCacheSize = 251658240 {pd product} {ergonomic}
|
|
||||||
bool SegmentedCodeCache = true {product} {ergonomic}
|
|
||||||
size_t SoftMaxHeapSize = 8573157376 {manageable} {ergonomic}
|
|
||||||
bool UseCompressedClassPointers = true {product lp64_product} {ergonomic}
|
|
||||||
bool UseCompressedOops = true {product lp64_product} {ergonomic}
|
|
||||||
bool UseG1GC = true {product} {ergonomic}
|
|
||||||
bool UseLargePagesIndividualAllocation = false {pd product} {ergonomic}
|
|
||||||
|
|
||||||
Logging:
|
|
||||||
Log output configuration:
|
|
||||||
#0: stdout all=warning uptime,level,tags
|
|
||||||
#1: stderr all=off uptime,level,tags
|
|
||||||
|
|
||||||
Environment Variables:
|
|
||||||
JAVA_HOME=D:\Program Files\Java\jdk-17
|
|
||||||
PATH=C:\Program Files\Common Files\Oracle\Java\javapath;D:\Python39\Scripts\;D:\Python39\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;D:\Program Files\Java\jdk-17\bin;node_global;D:\maven\apache-maven-3.5.2\bin;D:\Program Files\nodejs\node_global\node_modules;E:\gradle\gradle-5.2.1-all\gradle-5.2.1\bin;C:\Users\ADAM5\.windows-build-tools\python27;D:\Program Files (x86)\Yarn\bin\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;node_global;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;D:\Program Files\Microsoft VS Code\bin;D:\P;ogram Files\Git\cmd;C:\Program Files\dotnet\;C:\Program Files\GitHub CLI\;D:\nvm;D:\Program Files\nodejs;D:\Program Files\apache-ant-1.10.15-bin\apache-ant-1.10.15\bin;D:\Program Files (x86)\Tencent\΢ÐÅweb¿ª·¢Õß¹¤¾ß\dll;;;D:\Program Files\Git\cmd;C:\Users\ADAM5\AppData\Local\Microsoft\WindowsApps;D:\Program Files (x86)\SSH Communications Security\SSH Secure Shell;C:\Users\ADAM5\AppData\Roaming\npm;C:\Users\ADAM5\AppData\Local\Yarn\bin;D:\Program Files\JetBrains\PyCharm Community Edition 2020.3.2\bin;C:\Users\ADAM5\AppData\Local\Programs\Fiddler;D:\Program Files (x86)\GitHub CLI\;C:\Users\ADAM5\AppData\Local\Microsoft\WindowsApps;D:\Program Files (x86)\nvm;D:\Program Files\nodejs;D:\Program Files (x86)\Fiddler2\Fiddler;D:\nvm;D:\Program Files\nodejs;D:\Program Files\JetBrains\IntelliJ IDEA 2024.3.1\bin;
|
|
||||||
USERNAME=ADAM5
|
|
||||||
OS=Windows_NT
|
|
||||||
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 158 Stepping 13, GenuineIntel
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
--------------- S Y S T E M ---------------
|
|
||||||
|
|
||||||
OS:
|
|
||||||
Windows 10 , 64 bit Build 19041 (10.0.19041.5198)
|
|
||||||
OS uptime: 6 days 7:35 hours
|
|
||||||
|
|
||||||
CPU: total 8 (initial active 8) (8 cores per cpu, 1 threads per core) family 6 model 158 stepping 13 microcode 0xb8, cx8, cmov, fxsr, mmx, 3dnowpref, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, lzcnt, tsc, tscinvbit, avx, avx2, aes, erms, clmul, bmi1, bmi2, rtm, adx, fma, vzeroupper, clflush, clflushopt
|
|
||||||
|
|
||||||
Memory: 4k page, system-wide physical 32701M (5698M free)
|
|
||||||
TotalPageFile size 54576M (AvailPageFile size 117M)
|
|
||||||
current process WorkingSet (physical memory assigned to process): 1750M, peak: 1755M
|
|
||||||
current process commit charge ("private bytes"): 1812M, peak: 2516M
|
|
||||||
|
|
||||||
vm_info: Java HotSpot(TM) 64-Bit Server VM (17.0.13+10-LTS-268) for windows-amd64 JRE (17.0.13+10-LTS-268), built on Sep 30 2024 06:33:13 by "mach5one" with MS VC++ 17.6 (VS2022)
|
|
||||||
|
|
||||||
END.
|
|
||||||
@@ -1,221 +0,0 @@
|
|||||||
#
|
|
||||||
# There is insufficient memory for the Java Runtime Environment to continue.
|
|
||||||
# Native memory allocation (mmap) failed to map 536870912 bytes for G1 virtual space
|
|
||||||
# Possible reasons:
|
|
||||||
# The system is out of physical RAM or swap space
|
|
||||||
# The process is running with CompressedOops enabled, and the Java Heap may be blocking the growth of the native heap
|
|
||||||
# Possible solutions:
|
|
||||||
# Reduce memory load on the system
|
|
||||||
# Increase physical memory or swap space
|
|
||||||
# Check if swap backing store is full
|
|
||||||
# Decrease Java heap size (-Xmx/-Xms)
|
|
||||||
# Decrease number of Java threads
|
|
||||||
# Decrease Java thread stack sizes (-Xss)
|
|
||||||
# Set larger code cache with -XX:ReservedCodeCacheSize=
|
|
||||||
# JVM is running with Zero Based Compressed Oops mode in which the Java heap is
|
|
||||||
# placed in the first 32GB address space. The Java Heap base address is the
|
|
||||||
# maximum limit for the native heap growth. Please use -XX:HeapBaseMinAddress
|
|
||||||
# to set the Java Heap base and to place the Java Heap above 32GB virtual address.
|
|
||||||
# This output file may be truncated or incomplete.
|
|
||||||
#
|
|
||||||
# Out of Memory Error (os_windows.cpp:3548), pid=8960, tid=12132
|
|
||||||
#
|
|
||||||
# JRE version: (17.0.13+10) (build )
|
|
||||||
# Java VM: Java HotSpot(TM) 64-Bit Server VM (17.0.13+10-LTS-268, mixed mode, emulated-client, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, windows-amd64)
|
|
||||||
# No core dump will be written. Minidumps are not enabled by default on client versions of Windows
|
|
||||||
#
|
|
||||||
|
|
||||||
--------------- S U M M A R Y ------------
|
|
||||||
|
|
||||||
Command Line: -XX:TieredStopAtLevel=1 -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dspring.jmx.enabled=true -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true -Dmanagement.endpoints.jmx.exposure.include=* -javaagent:D:\Program Files\JetBrains\IntelliJ IDEA 2024.3.1\lib\idea_rt.jar=55248:D:\Program Files\JetBrains\IntelliJ IDEA 2024.3.1\bin -Dfile.encoding=UTF-8 com.zlt.tourism.CulturalTourismApplication
|
|
||||||
|
|
||||||
Host: Intel(R) Core(TM) i7-9700F CPU @ 3.00GHz, 8 cores, 31G, Windows 10 , 64 bit Build 19041 (10.0.19041.5198)
|
|
||||||
Time: Sun Jan 5 15:41:20 2025 Windows 10 , 64 bit Build 19041 (10.0.19041.5198) elapsed time: 0.016570 seconds (0d 0h 0m 0s)
|
|
||||||
|
|
||||||
--------------- T H R E A D ---------------
|
|
||||||
|
|
||||||
Current thread (0x000001d97c4e6800): JavaThread "Unknown thread" [_thread_in_vm, id=12132, stack(0x0000004a1ad00000,0x0000004a1ae00000)]
|
|
||||||
|
|
||||||
Stack: [0x0000004a1ad00000,0x0000004a1ae00000]
|
|
||||||
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
|
|
||||||
V [jvm.dll+0x67a23a]
|
|
||||||
V [jvm.dll+0x7da96d]
|
|
||||||
V [jvm.dll+0x7dc2b3]
|
|
||||||
V [jvm.dll+0x7dc923]
|
|
||||||
V [jvm.dll+0x2450ef]
|
|
||||||
V [jvm.dll+0x677279]
|
|
||||||
V [jvm.dll+0x66bf22]
|
|
||||||
V [jvm.dll+0x302006]
|
|
||||||
V [jvm.dll+0x3095a6]
|
|
||||||
V [jvm.dll+0x359e9e]
|
|
||||||
V [jvm.dll+0x35a0cf]
|
|
||||||
V [jvm.dll+0x2d90d8]
|
|
||||||
V [jvm.dll+0x2da044]
|
|
||||||
V [jvm.dll+0x7ace81]
|
|
||||||
V [jvm.dll+0x367701]
|
|
||||||
V [jvm.dll+0x78bcc9]
|
|
||||||
V [jvm.dll+0x3ec9bf]
|
|
||||||
V [jvm.dll+0x3ee5f1]
|
|
||||||
C [jli.dll+0x5297]
|
|
||||||
C [ucrtbase.dll+0x21bb2]
|
|
||||||
C [KERNEL32.DLL+0x17374]
|
|
||||||
C [ntdll.dll+0x4cc91]
|
|
||||||
|
|
||||||
|
|
||||||
--------------- P R O C E S S ---------------
|
|
||||||
|
|
||||||
Threads class SMR info:
|
|
||||||
_java_thread_list=0x00007ffbe5568a18, length=0, elements={
|
|
||||||
}
|
|
||||||
|
|
||||||
Java Threads: ( => current thread )
|
|
||||||
|
|
||||||
Other Threads:
|
|
||||||
0x000001d97c554a50 GCTaskThread "GC Thread#0" [stack: 0x0000004a1ae00000,0x0000004a1af00000] [id=3964]
|
|
||||||
0x000001d97c565820 ConcurrentGCThread "G1 Main Marker" [stack: 0x0000004a1af00000,0x0000004a1b000000] [id=28228]
|
|
||||||
0x000001d97c5668d0 ConcurrentGCThread "G1 Conc#0" [stack: 0x0000004a1b000000,0x0000004a1b100000] [id=4148]
|
|
||||||
|
|
||||||
[error occurred during error reporting (printing all threads), id 0xc0000005, EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ffbe4d99bc7]
|
|
||||||
|
|
||||||
VM state: not at safepoint (not fully initialized)
|
|
||||||
|
|
||||||
VM Mutex/Monitor currently owned by a thread: ([mutex/lock_event])
|
|
||||||
[0x000001d97c4e37c0] Heap_lock - owner thread: 0x000001d97c4e6800
|
|
||||||
|
|
||||||
Heap address: 0x0000000601000000, size: 8176 MB, Compressed Oops mode: Zero based, Oop shift amount: 3
|
|
||||||
|
|
||||||
CDS archive(s) mapped at: [0x0000000000000000-0x0000000000000000-0x0000000000000000), size 0, SharedBaseAddress: 0x0000000800000000, ArchiveRelocationMode: 1.
|
|
||||||
Narrow klass base: 0x0000000000000000, Narrow klass shift: 0, Narrow klass range: 0x0
|
|
||||||
|
|
||||||
GC Precious Log:
|
|
||||||
<Empty>
|
|
||||||
|
|
||||||
Heap:
|
|
||||||
garbage-first heap total 0K, used 0K [0x0000000601000000, 0x0000000800000000)
|
|
||||||
region size 4096K, 0 young (0K), 0 survivors (0K)
|
|
||||||
|
|
||||||
[error occurred during error reporting (printing heap information), id 0xc0000005, EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ffbe5183a29]
|
|
||||||
|
|
||||||
GC Heap History (0 events):
|
|
||||||
No events
|
|
||||||
|
|
||||||
Deoptimization events (0 events):
|
|
||||||
No events
|
|
||||||
|
|
||||||
Classes unloaded (0 events):
|
|
||||||
No events
|
|
||||||
|
|
||||||
Classes redefined (0 events):
|
|
||||||
No events
|
|
||||||
|
|
||||||
Internal exceptions (0 events):
|
|
||||||
No events
|
|
||||||
|
|
||||||
VM Operations (0 events):
|
|
||||||
No events
|
|
||||||
|
|
||||||
Events (1 events):
|
|
||||||
Event: 0.011 Loaded shared library D:\Program Files\Java\jdk-17\bin\java.dll
|
|
||||||
|
|
||||||
|
|
||||||
Dynamic libraries:
|
|
||||||
0x00007ff7ebc30000 - 0x00007ff7ebc40000 D:\Program Files\Java\jdk-17\bin\java.exe
|
|
||||||
0x00007ffc3de30000 - 0x00007ffc3e028000 C:\WINDOWS\SYSTEM32\ntdll.dll
|
|
||||||
0x00007ffc3caf0000 - 0x00007ffc3cbb2000 C:\WINDOWS\System32\KERNEL32.DLL
|
|
||||||
0x00007ffc3b630000 - 0x00007ffc3b92e000 C:\WINDOWS\System32\KERNELBASE.dll
|
|
||||||
0x00007ffc3b930000 - 0x00007ffc3ba30000 C:\WINDOWS\System32\ucrtbase.dll
|
|
||||||
0x00007ffc36620000 - 0x00007ffc3663b000 D:\Program Files\Java\jdk-17\bin\VCRUNTIME140.dll
|
|
||||||
0x00007ffc2e970000 - 0x00007ffc2e989000 D:\Program Files\Java\jdk-17\bin\jli.dll
|
|
||||||
0x00007ffc3c010000 - 0x00007ffc3c0c1000 C:\WINDOWS\System32\ADVAPI32.dll
|
|
||||||
0x00007ffc3c1f0000 - 0x00007ffc3c28e000 C:\WINDOWS\System32\msvcrt.dll
|
|
||||||
0x00007ffc3cbd0000 - 0x00007ffc3cc6f000 C:\WINDOWS\System32\sechost.dll
|
|
||||||
0x00007ffc3be50000 - 0x00007ffc3bf73000 C:\WINDOWS\System32\RPCRT4.dll
|
|
||||||
0x00007ffc3bd60000 - 0x00007ffc3bd87000 C:\WINDOWS\System32\bcrypt.dll
|
|
||||||
0x00007ffc3c800000 - 0x00007ffc3c99d000 C:\WINDOWS\System32\USER32.dll
|
|
||||||
0x00007ffc3be20000 - 0x00007ffc3be42000 C:\WINDOWS\System32\win32u.dll
|
|
||||||
0x00007ffc3bf80000 - 0x00007ffc3bfab000 C:\WINDOWS\System32\GDI32.dll
|
|
||||||
0x00007ffc3bb80000 - 0x00007ffc3bc97000 C:\WINDOWS\System32\gdi32full.dll
|
|
||||||
0x00007ffc26790000 - 0x00007ffc26a2a000 C:\WINDOWS\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.19041.4355_none_60b8b9eb71f62e16\COMCTL32.dll
|
|
||||||
0x00007ffc3ba30000 - 0x00007ffc3bacd000 C:\WINDOWS\System32\msvcp_win.dll
|
|
||||||
0x00007ffc3afe0000 - 0x00007ffc3afea000 C:\WINDOWS\SYSTEM32\VERSION.dll
|
|
||||||
0x00007ffc3c0e0000 - 0x00007ffc3c10f000 C:\WINDOWS\System32\IMM32.DLL
|
|
||||||
0x000000005ca60000 - 0x000000005ca6d000 D:\Program Files (x86)\360\360SAFE\safemon\SafeWrapper.dll
|
|
||||||
0x00007ffc2e060000 - 0x00007ffc2e165000 D:\Program Files (x86)\360\360SAFE\safemon\libzdtp64.dll
|
|
||||||
0x00007ffc3cc70000 - 0x00007ffc3d3dd000 C:\WINDOWS\System32\SHELL32.dll
|
|
||||||
0x00007ffc3c190000 - 0x00007ffc3c1e5000 C:\WINDOWS\System32\SHLWAPI.dll
|
|
||||||
0x00007ffc36610000 - 0x00007ffc3661c000 D:\Program Files\Java\jdk-17\bin\vcruntime140_1.dll
|
|
||||||
0x00007ffc03e10000 - 0x00007ffc03e9e000 D:\Program Files\Java\jdk-17\bin\msvcp140.dll
|
|
||||||
0x00007ffbe4ab0000 - 0x00007ffbe5691000 D:\Program Files\Java\jdk-17\bin\server\jvm.dll
|
|
||||||
0x00007ffc3c0d0000 - 0x00007ffc3c0d8000 C:\WINDOWS\System32\PSAPI.DLL
|
|
||||||
0x00007ffc32310000 - 0x00007ffc32337000 C:\WINDOWS\SYSTEM32\WINMM.dll
|
|
||||||
0x00007ffc27990000 - 0x00007ffc27999000 C:\WINDOWS\SYSTEM32\WSOCK32.dll
|
|
||||||
0x00007ffc3ca80000 - 0x00007ffc3caeb000 C:\WINDOWS\System32\WS2_32.dll
|
|
||||||
0x00007ffc39cc0000 - 0x00007ffc39cd2000 C:\WINDOWS\SYSTEM32\kernel.appcore.dll
|
|
||||||
0x00007ffc2e880000 - 0x00007ffc2e88a000 D:\Program Files\Java\jdk-17\bin\jimage.dll
|
|
||||||
0x00007ffc397f0000 - 0x00007ffc399d4000 C:\WINDOWS\SYSTEM32\DBGHELP.DLL
|
|
||||||
0x00007ffc2d790000 - 0x00007ffc2d7c4000 C:\WINDOWS\SYSTEM32\dbgcore.DLL
|
|
||||||
0x00007ffc3bd90000 - 0x00007ffc3be12000 C:\WINDOWS\System32\bcryptPrimitives.dll
|
|
||||||
0x00007ffc27490000 - 0x00007ffc2749e000 D:\Program Files\Java\jdk-17\bin\instrument.dll
|
|
||||||
0x00007ffc27460000 - 0x00007ffc27485000 D:\Program Files\Java\jdk-17\bin\java.dll
|
|
||||||
|
|
||||||
dbghelp: loaded successfully - version: 4.0.5 - missing functions: none
|
|
||||||
symbol engine: initialized successfully - sym options: 0x614 - pdb path: .;D:\Program Files\Java\jdk-17\bin;C:\WINDOWS\SYSTEM32;C:\WINDOWS\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.19041.4355_none_60b8b9eb71f62e16;D:\Program Files (x86)\360\360SAFE\safemon;D:\Program Files\Java\jdk-17\bin\server
|
|
||||||
|
|
||||||
VM Arguments:
|
|
||||||
jvm_args: -XX:TieredStopAtLevel=1 -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dspring.jmx.enabled=true -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true -Dmanagement.endpoints.jmx.exposure.include=* -javaagent:D:\Program Files\JetBrains\IntelliJ IDEA 2024.3.1\lib\idea_rt.jar=55248:D:\Program Files\JetBrains\IntelliJ IDEA 2024.3.1\bin -Dfile.encoding=UTF-8
|
|
||||||
java_command: com.zlt.tourism.CulturalTourismApplication
|
|
||||||
java_class_path (initial): E:\Idea-project\ikingtec-new6.0\microservices-platform\zlt-business\tourism-center\tourism-service\target\classes;E:\Idea-project\ikingtec-new6.0\microservices-platform\zlt-business\tourism-center\tourism-core\target\classes;D:\maven\ikingtec-repo\com\github\pagehelper\pagehelper-spring-boot-starter\1.4.6\pagehelper-spring-boot-starter-1.4.6.jar;D:\maven\ikingtec-repo\org\mybatis\spring\boot\mybatis-spring-boot-starter\2.2.2\mybatis-spring-boot-starter-2.2.2.jar;D:\maven\ikingtec-repo\org\mybatis\spring\boot\mybatis-spring-boot-autoconfigure\2.2.2\mybatis-spring-boot-autoconfigure-2.2.2.jar;D:\maven\ikingtec-repo\com\github\pagehelper\pagehelper-spring-boot-autoconfigure\1.4.6\pagehelper-spring-boot-autoconfigure-1.4.6.jar;D:\maven\ikingtec-repo\com\github\pagehelper\pagehelper\5.3.2\pagehelper-5.3.2.jar;D:\maven\ikingtec-repo\org\springframework\statemachine\spring-statemachine-core\2.5.1\spring-statemachine-core-2.5.1.jar;D:\maven\ikingtec-repo\org\springframework\spring-tx\6.0.14\spring-tx-6.0.14.jar;D:\maven\ikingtec-repo\org\springframework\spring-messaging\6.0.14\spring-messaging-6.0.14.jar;D:\maven\ikingtec-repo\javax\servlet\javax.servlet-api\3.1.0\javax.servlet-api-3.1.0.jar;D:\maven\ikingtec-repo\com\alibaba\fastjson\1.2.83\fastjson-1.2.83.jar;E:\Idea-project\ikingtec-new6.0\microservices-platform\zlt-config\target\classes;D:\maven\ikingtec-repo\com\alibaba\cloud\spring-cloud-starter-alibaba-nacos-config\2022.0.0.0\spring-cloud-starter-alibaba-nacos-config-2022.0.0.0.jar;D:\maven\ikingtec-repo\org\slf4j\slf4j-api\2.0.9\slf4j-api-2.0.9.jar;D:\maven\ikingtec-repo\jakarta\annotation\jakarta.annotation-api\2.1.1\jakarta.annotation-api-2.1.1.jar;E:\Idea-project\ikingtec-new6.0\microservices-platform\zlt-commons\zlt-common-spring-boot-starter\target\classes;E:\Idea-project\ikingtec-new6.0\microservices-platform\zlt-commons\zlt-common-core\target\classes;D:\maven\ikingtec-repo\com\baomidou\mybatis-plus-extension\3.5.4.1\mybatis-plus-e
|
|
||||||
Launcher Type: SUN_STANDARD
|
|
||||||
|
|
||||||
[Global flags]
|
|
||||||
intx CICompilerCount = 4 {product} {ergonomic}
|
|
||||||
uint ConcGCThreads = 2 {product} {ergonomic}
|
|
||||||
uint G1ConcRefinementThreads = 8 {product} {ergonomic}
|
|
||||||
size_t G1HeapRegionSize = 4194304 {product} {ergonomic}
|
|
||||||
uintx GCDrainStackTargetSize = 64 {product} {ergonomic}
|
|
||||||
size_t InitialHeapSize = 536870912 {product} {ergonomic}
|
|
||||||
bool ManagementServer = true {product} {command line}
|
|
||||||
size_t MarkStackSize = 4194304 {product} {ergonomic}
|
|
||||||
size_t MaxHeapSize = 8573157376 {product} {ergonomic}
|
|
||||||
size_t MinHeapDeltaBytes = 4194304 {product} {ergonomic}
|
|
||||||
size_t MinHeapSize = 8388608 {product} {ergonomic}
|
|
||||||
uintx NonProfiledCodeHeapSize = 0 {pd product} {ergonomic}
|
|
||||||
bool ProfileInterpreter = false {pd product} {command line}
|
|
||||||
uintx ProfiledCodeHeapSize = 0 {pd product} {ergonomic}
|
|
||||||
size_t SoftMaxHeapSize = 8573157376 {manageable} {ergonomic}
|
|
||||||
intx TieredStopAtLevel = 1 {product} {command line}
|
|
||||||
bool UseCompressedClassPointers = true {product lp64_product} {ergonomic}
|
|
||||||
bool UseCompressedOops = true {product lp64_product} {ergonomic}
|
|
||||||
bool UseG1GC = true {product} {ergonomic}
|
|
||||||
bool UseLargePagesIndividualAllocation = false {pd product} {ergonomic}
|
|
||||||
|
|
||||||
Logging:
|
|
||||||
Log output configuration:
|
|
||||||
#0: stdout all=warning uptime,level,tags
|
|
||||||
#1: stderr all=off uptime,level,tags
|
|
||||||
|
|
||||||
Environment Variables:
|
|
||||||
JAVA_HOME=D:\Program Files\Java\jdk-17
|
|
||||||
PATH=C:\Program Files\Common Files\Oracle\Java\javapath;D:\Python39\Scripts\;D:\Python39\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;D:\Program Files\Java\jdk-17\bin;node_global;D:\maven\apache-maven-3.5.2\bin;D:\Program Files\nodejs\node_global\node_modules;E:\gradle\gradle-5.2.1-all\gradle-5.2.1\bin;C:\Users\ADAM5\.windows-build-tools\python27;D:\Program Files (x86)\Yarn\bin\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;node_global;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;D:\Program Files\Microsoft VS Code\bin;D:\P;ogram Files\Git\cmd;C:\Program Files\dotnet\;C:\Program Files\GitHub CLI\;D:\nvm;D:\Program Files\nodejs;D:\Program Files\apache-ant-1.10.15-bin\apache-ant-1.10.15\bin;D:\Program Files (x86)\Tencent\΢ÐÅweb¿ª·¢Õß¹¤¾ß\dll;;;D:\Program Files\Git\cmd;C:\Users\ADAM5\AppData\Local\Microsoft\WindowsApps;D:\Program Files (x86)\SSH Communications Security\SSH Secure Shell;C:\Users\ADAM5\AppData\Roaming\npm;C:\Users\ADAM5\AppData\Local\Yarn\bin;D:\Program Files\JetBrains\PyCharm Community Edition 2020.3.2\bin;C:\Users\ADAM5\AppData\Local\Programs\Fiddler;D:\Program Files (x86)\GitHub CLI\;C:\Users\ADAM5\AppData\Local\Microsoft\WindowsApps;D:\Program Files (x86)\nvm;D:\Program Files\nodejs;D:\Program Files (x86)\Fiddler2\Fiddler;D:\nvm;D:\Program Files\nodejs;D:\Program Files\JetBrains\IntelliJ IDEA 2024.3.1\bin;
|
|
||||||
USERNAME=ADAM5
|
|
||||||
OS=Windows_NT
|
|
||||||
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 158 Stepping 13, GenuineIntel
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
--------------- S Y S T E M ---------------
|
|
||||||
|
|
||||||
OS:
|
|
||||||
Windows 10 , 64 bit Build 19041 (10.0.19041.5198)
|
|
||||||
OS uptime: 6 days 20:09 hours
|
|
||||||
|
|
||||||
CPU: total 8 (initial active 8) (8 cores per cpu, 1 threads per core) family 6 model 158 stepping 13 microcode 0xb8, cx8, cmov, fxsr, mmx, 3dnowpref, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, lzcnt, tsc, tscinvbit, avx, avx2, aes, erms, clmul, bmi1, bmi2, rtm, adx, fma, vzeroupper, clflush, clflushopt
|
|
||||||
|
|
||||||
Memory: 4k page, system-wide physical 32701M (6439M free)
|
|
||||||
TotalPageFile size 54576M (AvailPageFile size 25M)
|
|
||||||
current process WorkingSet (physical memory assigned to process): 12M, peak: 12M
|
|
||||||
current process commit charge ("private bytes"): 56M, peak: 568M
|
|
||||||
|
|
||||||
vm_info: Java HotSpot(TM) 64-Bit Server VM (17.0.13+10-LTS-268) for windows-amd64 JRE (17.0.13+10-LTS-268), built on Sep 30 2024 06:33:13 by "mach5one" with MS VC++ 17.6 (VS2022)
|
|
||||||
|
|
||||||
END.
|
|
||||||
@@ -60,10 +60,6 @@
|
|||||||
<tomcat-embed-core.version>10.1.11</tomcat-embed-core.version>
|
<tomcat-embed-core.version>10.1.11</tomcat-embed-core.version>
|
||||||
<httpclient.version>5.2.1</httpclient.version>
|
<httpclient.version>5.2.1</httpclient.version>
|
||||||
<oauth2-oidc-sdk.version>11.7</oauth2-oidc-sdk.version>
|
<oauth2-oidc-sdk.version>11.7</oauth2-oidc-sdk.version>
|
||||||
<dji-cloud-sdk.version>1.3.1</dji-cloud-sdk.version>
|
|
||||||
<okhttp3.version>4.9.1</okhttp3.version>
|
|
||||||
<glassfish-jaxb.version>2.3.3</glassfish-jaxb.version>
|
|
||||||
<javax-jaxb.version>2.3.0</javax-jaxb.version>
|
|
||||||
<easyexcel.version>3.3.3</easyexcel.version>
|
<easyexcel.version>3.3.3</easyexcel.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
@@ -454,6 +450,19 @@
|
|||||||
</build>
|
</build>
|
||||||
|
|
||||||
<repositories>
|
<repositories>
|
||||||
|
|
||||||
|
<!-- <!– 添加本地仓库,优先级最高 –>
|
||||||
|
<repository>
|
||||||
|
<id>local</id>
|
||||||
|
<name>Local Repository</name>
|
||||||
|
<url>file:${user.home}/.m2/repository</url>
|
||||||
|
<releases>
|
||||||
|
<enabled>true</enabled>
|
||||||
|
</releases>
|
||||||
|
<snapshots>
|
||||||
|
<enabled>true</enabled>
|
||||||
|
</snapshots>
|
||||||
|
</repository>-->
|
||||||
<repository>
|
<repository>
|
||||||
<id>aliyun-repos</id>
|
<id>aliyun-repos</id>
|
||||||
<url>https://maven.aliyun.com/repository/public</url>
|
<url>https://maven.aliyun.com/repository/public</url>
|
||||||
@@ -491,8 +500,7 @@
|
|||||||
<module>zlt-monitor</module>
|
<module>zlt-monitor</module>
|
||||||
<!-- 配置 -->
|
<!-- 配置 -->
|
||||||
<module>zlt-config</module>
|
<module>zlt-config</module>
|
||||||
<!-- demo -->
|
|
||||||
<!--<module>zlt-demo</module>-->
|
|
||||||
</modules>
|
</modules>
|
||||||
|
|
||||||
<licenses>
|
<licenses>
|
||||||
|
|||||||
Binary file not shown.
@@ -0,0 +1,57 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
|
<parent>
|
||||||
|
<groupId>com.zlt</groupId>
|
||||||
|
<artifactId>zlt-business</artifactId>
|
||||||
|
<version>6.0.0</version>
|
||||||
|
</parent>
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<artifactId>demo-center</artifactId>
|
||||||
|
<description>示例业务模块</description>
|
||||||
|
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.zlt</groupId>
|
||||||
|
<artifactId>zlt-common-spring-boot-starter</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.zlt</groupId>
|
||||||
|
<artifactId>zlt-db-spring-boot-starter</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.zlt</groupId>
|
||||||
|
<artifactId>zlt-log-spring-boot-starter</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.zlt</groupId>
|
||||||
|
<artifactId>zlt-redis-spring-boot-starter</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.zlt</groupId>
|
||||||
|
<artifactId>zlt-loadbalancer-spring-boot-starter</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.zlt</groupId>
|
||||||
|
<artifactId>zlt-sentinel-spring-boot-starter</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-starter-web</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>mysql</groupId>
|
||||||
|
<artifactId>mysql-connector-java</artifactId>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</project>
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
package com.central.demo;
|
||||||
|
|
||||||
|
import org.springframework.boot.SpringApplication;
|
||||||
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||||
|
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
|
||||||
|
|
||||||
|
@EnableDiscoveryClient
|
||||||
|
@SpringBootApplication
|
||||||
|
public class DemoCenterApplication {
|
||||||
|
public static void main(String[] args) {
|
||||||
|
SpringApplication.run(DemoCenterApplication.class, args);
|
||||||
|
}
|
||||||
|
}
|
||||||
+16
@@ -0,0 +1,16 @@
|
|||||||
|
package com.central.demo.controller;
|
||||||
|
|
||||||
|
import com.central.common.model.Result;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/demo")
|
||||||
|
public class DemoController {
|
||||||
|
|
||||||
|
@GetMapping("/hello")
|
||||||
|
public Result<String> hello() {
|
||||||
|
return Result.succeed("Hello from Demo Center!");
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
spring:
|
||||||
|
application:
|
||||||
|
name: demo-center
|
||||||
|
cloud:
|
||||||
|
nacos:
|
||||||
|
discovery:
|
||||||
|
server-addr: ${NACOS_HOST:localhost}:${NACOS_PORT:8848}
|
||||||
|
config:
|
||||||
|
server-addr: ${NACOS_HOST:localhost}:${NACOS_PORT:8848}
|
||||||
|
file-extension: yml
|
||||||
|
|
||||||
|
server:
|
||||||
|
port: 8100
|
||||||
@@ -1,146 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
|
||||||
<parent>
|
|
||||||
<groupId>com.zlt</groupId>
|
|
||||||
<artifactId>zlt-business</artifactId>
|
|
||||||
<version>6.0.0</version>
|
|
||||||
</parent>
|
|
||||||
|
|
||||||
<artifactId>device-center</artifactId>
|
|
||||||
<description>设备中心</description>
|
|
||||||
|
|
||||||
<properties>
|
|
||||||
<maven.compiler.source>17</maven.compiler.source>
|
|
||||||
<maven.compiler.target>17</maven.compiler.target>
|
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
||||||
</properties>
|
|
||||||
<dependencies>
|
|
||||||
|
|
||||||
<!-- 公共实体类模块 -->
|
|
||||||
<dependency>
|
|
||||||
<groupId>com.zlt</groupId>
|
|
||||||
<artifactId>zlt-config</artifactId>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>com.zlt</groupId>
|
|
||||||
<artifactId>zlt-log-spring-boot-starter</artifactId>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>com.zlt</groupId>
|
|
||||||
<artifactId>zlt-common-spring-boot-starter</artifactId>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>com.zlt</groupId>
|
|
||||||
<artifactId>zlt-db-spring-boot-starter</artifactId>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>com.zlt</groupId>
|
|
||||||
<artifactId>zlt-redis-spring-boot-starter</artifactId>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>com.zlt</groupId>
|
|
||||||
<artifactId>zlt-loadbalancer-spring-boot-starter</artifactId>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>com.zlt</groupId>
|
|
||||||
<artifactId>zlt-sentinel-spring-boot-starter</artifactId>
|
|
||||||
</dependency>
|
|
||||||
<!-- swagger -->
|
|
||||||
<dependency>
|
|
||||||
<groupId>com.github.xiaoymin</groupId>
|
|
||||||
<artifactId>knife4j-openapi3-jakarta-spring-boot-starter</artifactId>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>com.zlt</groupId>
|
|
||||||
<artifactId>search-client</artifactId>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.springframework.boot</groupId>
|
|
||||||
<artifactId>spring-boot-starter-web</artifactId>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
|
||||||
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.springframework.boot</groupId>
|
|
||||||
<artifactId>spring-boot-starter-actuator</artifactId>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<dependency>
|
|
||||||
<groupId>mysql</groupId>
|
|
||||||
<artifactId>mysql-connector-java</artifactId>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<dependency>
|
|
||||||
<groupId>io.micrometer</groupId>
|
|
||||||
<artifactId>micrometer-registry-prometheus</artifactId>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>junit</groupId>
|
|
||||||
<artifactId>junit</artifactId>
|
|
||||||
<scope>test</scope>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.hibernate</groupId>
|
|
||||||
<artifactId>hibernate-validator</artifactId>
|
|
||||||
</dependency>
|
|
||||||
<!-- 验证依赖 -->
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.springframework.boot</groupId>
|
|
||||||
<artifactId>spring-boot-starter-validation</artifactId>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>cn.hutool</groupId>
|
|
||||||
<artifactId>hutool-all</artifactId>
|
|
||||||
<version>5.8.25</version>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
</dependencies>
|
|
||||||
|
|
||||||
<build>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.springframework.boot</groupId>
|
|
||||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<goals>
|
|
||||||
<goal>repackage</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>com.spotify</groupId>
|
|
||||||
<artifactId>docker-maven-plugin</artifactId>
|
|
||||||
<configuration>
|
|
||||||
<imageName>${docker.image.prefix}/${project.artifactId}</imageName>
|
|
||||||
<imageTags>
|
|
||||||
<imageTag>${project.version}</imageTag>
|
|
||||||
<imageTag>latest</imageTag>
|
|
||||||
</imageTags>
|
|
||||||
<forceTags>true</forceTags>
|
|
||||||
<baseImage>${docker.baseImage}</baseImage>
|
|
||||||
<volumes>${docker.volumes}</volumes>
|
|
||||||
<env>
|
|
||||||
<JAVA_OPTS>${docker.java.opts}</JAVA_OPTS>
|
|
||||||
</env>
|
|
||||||
<entryPoint>["sh","-c","java $JAVA_OPTS ${docker.java.security.egd} -jar /${project.build.finalName}.jar"]</entryPoint>
|
|
||||||
<resources>
|
|
||||||
<resource>
|
|
||||||
<targetPath>/</targetPath>
|
|
||||||
<directory>${project.build.directory}</directory>
|
|
||||||
<include>${project.build.finalName}.jar</include>
|
|
||||||
</resource>
|
|
||||||
</resources>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
<finalName>${project.artifactId}</finalName>
|
|
||||||
</build>
|
|
||||||
</project>
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
package com.central.device;
|
|
||||||
|
|
||||||
import com.central.common.lb.annotation.EnableFeignInterceptor;
|
|
||||||
import com.central.search.annotation.EnableSearchClient;
|
|
||||||
import org.springframework.boot.SpringApplication;
|
|
||||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
||||||
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
|
|
||||||
import org.springframework.transaction.annotation.EnableTransactionManagement;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @author 作者 lsl E-mail: 1272745473@qq.com
|
|
||||||
*/
|
|
||||||
@EnableDiscoveryClient
|
|
||||||
@EnableSearchClient
|
|
||||||
@EnableTransactionManagement
|
|
||||||
@EnableFeignInterceptor
|
|
||||||
@SpringBootApplication
|
|
||||||
public class DeviceCenterApp {
|
|
||||||
public static void main(String[] args) {
|
|
||||||
SpringApplication.run(DeviceCenterApp.class, args);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-273
@@ -1,273 +0,0 @@
|
|||||||
package com.central.device.controller;
|
|
||||||
|
|
||||||
import cn.hutool.core.collection.CollUtil;
|
|
||||||
import com.alibaba.excel.EasyExcel;
|
|
||||||
import com.alibaba.excel.support.ExcelTypeEnum;
|
|
||||||
import com.central.common.model.PageResult;
|
|
||||||
import com.central.common.model.Result;
|
|
||||||
import com.central.device.model.AgeDevice;
|
|
||||||
import com.central.device.model.excel.AgeDeviceExcel;
|
|
||||||
import com.central.device.service.IAgeDeviceService;
|
|
||||||
import io.swagger.v3.oas.annotations.Operation;
|
|
||||||
import io.swagger.v3.oas.annotations.Parameter;
|
|
||||||
import io.swagger.v3.oas.annotations.Parameters;
|
|
||||||
import io.swagger.v3.oas.annotations.enums.ParameterIn;
|
|
||||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
||||||
import jakarta.servlet.http.HttpServletResponse;
|
|
||||||
import lombok.RequiredArgsConstructor;
|
|
||||||
import lombok.extern.slf4j.Slf4j;
|
|
||||||
import org.springframework.beans.BeanUtils;
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.web.bind.annotation.*;
|
|
||||||
import org.springframework.web.multipart.MultipartFile;
|
|
||||||
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.net.URLEncoder;
|
|
||||||
import java.nio.charset.StandardCharsets;
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
import java.util.stream.Collectors;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Device information
|
|
||||||
*
|
|
||||||
* @author lsl
|
|
||||||
* @date 2024-12-19 17:51:47
|
|
||||||
*/
|
|
||||||
@Slf4j
|
|
||||||
@RestController
|
|
||||||
@RequestMapping("/device")
|
|
||||||
@Tag(name = "设备管理")
|
|
||||||
@RequiredArgsConstructor
|
|
||||||
public class AgeDeviceController {
|
|
||||||
|
|
||||||
|
|
||||||
@Autowired
|
|
||||||
private IAgeDeviceService ageDeviceService;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 列表
|
|
||||||
*/
|
|
||||||
@Operation(summary = "查询列表")
|
|
||||||
@Parameters({
|
|
||||||
@Parameter(name = "page",description = "分页起始位置",required = true,in=ParameterIn.QUERY),
|
|
||||||
@Parameter(name = "limit",description = "分页结束位置",required = true,in=ParameterIn.QUERY)
|
|
||||||
})
|
|
||||||
@GetMapping
|
|
||||||
public PageResult list(@RequestParam Map<String, Object> params) {
|
|
||||||
return ageDeviceService.findList(params);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 查询
|
|
||||||
*/
|
|
||||||
@Operation(summary = "查询")
|
|
||||||
@GetMapping("/{id}")
|
|
||||||
public Result findUserById(@PathVariable Long id) {
|
|
||||||
AgeDevice model = ageDeviceService.getById(id);
|
|
||||||
return Result.succeed(model, "查询成功");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 新增or更新
|
|
||||||
*/
|
|
||||||
@Operation(summary = "保存")
|
|
||||||
@PostMapping
|
|
||||||
public Result save(@RequestBody AgeDevice ageDevice) {
|
|
||||||
ageDeviceService.saveOrUpdate(ageDevice);
|
|
||||||
return Result.succeed("保存成功");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 删除
|
|
||||||
*/
|
|
||||||
@Operation(summary = "删除")
|
|
||||||
@Parameter(name = "id", description = "id", in = ParameterIn.PATH, required = true)
|
|
||||||
@DeleteMapping("/{id}")
|
|
||||||
public Result delete(@PathVariable Long id) {
|
|
||||||
ageDeviceService.removeById(id);
|
|
||||||
return Result.succeed("删除成功");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 导出设备信息
|
|
||||||
*/
|
|
||||||
@Operation(summary = "导出设备信息")
|
|
||||||
@PostMapping("/export")
|
|
||||||
public void exportDevices(@RequestBody Map<String, Object> params, HttpServletResponse response) {
|
|
||||||
try {
|
|
||||||
// 设置响应头
|
|
||||||
response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");
|
|
||||||
response.setCharacterEncoding(StandardCharsets.UTF_8.name());
|
|
||||||
String fileName = URLEncoder.encode("设备信息", StandardCharsets.UTF_8.name()).replaceAll("\\+", "%20");
|
|
||||||
response.setHeader("Content-disposition", "attachment;filename*=utf-8''" + fileName + ".xlsx");
|
|
||||||
|
|
||||||
// 查询导出数据
|
|
||||||
List<AgeDevice> deviceList = ageDeviceService.findListByParams(params);
|
|
||||||
if (CollUtil.isEmpty(deviceList)) {
|
|
||||||
deviceList = new ArrayList<>();
|
|
||||||
}
|
|
||||||
|
|
||||||
// 转换并写入Excel
|
|
||||||
List<AgeDeviceExcel> excelList = deviceList.stream()
|
|
||||||
.map(AgeDeviceExcel::fromDevice)
|
|
||||||
.collect(java.util.stream.Collectors.toList());
|
|
||||||
|
|
||||||
EasyExcel.write(response.getOutputStream(), AgeDeviceExcel.class)
|
|
||||||
.excelType(ExcelTypeEnum.XLSX)
|
|
||||||
.sheet("设备信息")
|
|
||||||
.doWrite(excelList);
|
|
||||||
|
|
||||||
} catch (Exception e) {
|
|
||||||
log.error("导出设备信息失败", e);
|
|
||||||
// 重置response
|
|
||||||
response.reset();
|
|
||||||
response.setContentType("application/json");
|
|
||||||
response.setCharacterEncoding(StandardCharsets.UTF_8.name());
|
|
||||||
try {
|
|
||||||
response.getWriter().println("{\"code\":500,\"msg\":\"导出失败\"}");
|
|
||||||
} catch (IOException ex) {
|
|
||||||
log.error("写入响应失败", ex);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 导入设备信息
|
|
||||||
*/
|
|
||||||
@Operation(summary = "导入设备信息")
|
|
||||||
@PostMapping("/import")
|
|
||||||
public Result<String> importDevices(@RequestParam("file") MultipartFile file) {
|
|
||||||
try {
|
|
||||||
if (file.isEmpty()) {
|
|
||||||
return Result.failed("请选择要导入的文件");
|
|
||||||
}
|
|
||||||
|
|
||||||
// 文件大小校验(10MB)
|
|
||||||
if (file.getSize() > 10 * 1024 * 1024) {
|
|
||||||
return Result.failed("文件大小不能超过10MB");
|
|
||||||
}
|
|
||||||
|
|
||||||
// 文件类型校验
|
|
||||||
String fileName = file.getOriginalFilename();
|
|
||||||
if (fileName == null || (!fileName.endsWith(".xlsx") && !fileName.endsWith(".xls"))) {
|
|
||||||
return Result.failed("请上传Excel文件");
|
|
||||||
}
|
|
||||||
|
|
||||||
// 读取Excel数据
|
|
||||||
List<AgeDeviceExcel> excelList = EasyExcel.read(file.getInputStream())
|
|
||||||
.head(AgeDeviceExcel.class)
|
|
||||||
.sheet()
|
|
||||||
.doReadSync();
|
|
||||||
|
|
||||||
if (CollUtil.isEmpty(excelList)) {
|
|
||||||
return Result.failed("导入数据为空");
|
|
||||||
}
|
|
||||||
|
|
||||||
// 数据校验和转换
|
|
||||||
List<String> errorMsgs = new ArrayList<>();
|
|
||||||
List<AgeDevice> deviceList = new ArrayList<>();
|
|
||||||
|
|
||||||
for (int i = 0; i < excelList.size(); i++) {
|
|
||||||
AgeDeviceExcel excelData = excelList.get(i);
|
|
||||||
try {
|
|
||||||
// 数据校验
|
|
||||||
validateExcelData(excelData, i + 1, errorMsgs);
|
|
||||||
if (errorMsgs.isEmpty()) {
|
|
||||||
deviceList.add(excelData.toDevice());
|
|
||||||
}
|
|
||||||
} catch (Exception e) {
|
|
||||||
log.error("第{}行数据处理失败", i + 1, e);
|
|
||||||
errorMsgs.add(String.format("第%d行数据处理失败:%s", i + 1, e.getMessage()));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!errorMsgs.isEmpty()) {
|
|
||||||
return Result.failed("导入失败:" + String.join("; ", errorMsgs));
|
|
||||||
}
|
|
||||||
|
|
||||||
// 批量保存数据
|
|
||||||
boolean success = ageDeviceService.importDevices(deviceList);
|
|
||||||
return success ? Result.succeed("导入成功") : Result.failed("导入失败");
|
|
||||||
|
|
||||||
} catch (Exception e) {
|
|
||||||
log.error("导入设备信息失败", e);
|
|
||||||
return Result.failed("导入失败:" + e.getMessage());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Operation(summary = "下载导入模板")
|
|
||||||
@GetMapping("/template")
|
|
||||||
public void downloadTemplate(HttpServletResponse response) {
|
|
||||||
try {
|
|
||||||
response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");
|
|
||||||
response.setCharacterEncoding(StandardCharsets.UTF_8.name());
|
|
||||||
String fileName = URLEncoder.encode("设备导入模板", StandardCharsets.UTF_8.name()).replaceAll("\\+", "%20");
|
|
||||||
response.setHeader("Content-disposition", "attachment;filename*=utf-8''" + fileName + ".xlsx");
|
|
||||||
|
|
||||||
// 创建模板数据
|
|
||||||
List<AgeDeviceExcel> templateList = new ArrayList<>();
|
|
||||||
// 可以添加一行示例数据
|
|
||||||
AgeDeviceExcel template = new AgeDeviceExcel();
|
|
||||||
template.setDeviceSn("示例:DEVICE001");
|
|
||||||
template.setDeviceName("示例:测试设备1");
|
|
||||||
templateList.add(template);
|
|
||||||
|
|
||||||
EasyExcel.write(response.getOutputStream(), AgeDeviceExcel.class)
|
|
||||||
.excelType(ExcelTypeEnum.XLSX)
|
|
||||||
.sheet("设备信息")
|
|
||||||
.doWrite(templateList);
|
|
||||||
|
|
||||||
} catch (Exception e) {
|
|
||||||
log.error("下载模板失败", e);
|
|
||||||
response.reset();
|
|
||||||
response.setContentType("application/json");
|
|
||||||
response.setCharacterEncoding(StandardCharsets.UTF_8.name());
|
|
||||||
try {
|
|
||||||
response.getWriter().println("{\"code\":500,\"msg\":\"下载模板失败\"}");
|
|
||||||
} catch (IOException ex) {
|
|
||||||
log.error("写入响应失败", ex);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 验证Excel数据
|
|
||||||
*/
|
|
||||||
private void validateExcelData(AgeDeviceExcel excelData, int rowIndex, List<String> errorMsgs) {
|
|
||||||
if (excelData == null) {
|
|
||||||
errorMsgs.add(String.format("第%d行数据为空", rowIndex));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// 必填字段校验
|
|
||||||
if (org.springframework.util.StringUtils.isEmpty(excelData.getDeviceSn())) {
|
|
||||||
errorMsgs.add(String.format("第%d行:设备序列号不能为空", rowIndex));
|
|
||||||
}
|
|
||||||
if (org.springframework.util.StringUtils.isEmpty(excelData.getDeviceName())) {
|
|
||||||
errorMsgs.add(String.format("第%d行:设备名称不能为空", rowIndex));
|
|
||||||
}
|
|
||||||
|
|
||||||
// 字段格式校验
|
|
||||||
if (excelData.getDeviceType() != null && (excelData.getDeviceType() < 0 || excelData.getDeviceType() > 100)) {
|
|
||||||
errorMsgs.add(String.format("第%d行:设备类型取值范围为0-100", rowIndex));
|
|
||||||
}
|
|
||||||
|
|
||||||
// 重复性校验
|
|
||||||
if (!org.springframework.util.StringUtils.isEmpty(excelData.getDeviceSn())) {
|
|
||||||
boolean exists = ageDeviceService.checkDeviceSnExists(excelData.getDeviceSn());
|
|
||||||
if (exists) {
|
|
||||||
errorMsgs.add(String.format("第%d行:设备序列号已存在", rowIndex));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private List<AgeDeviceExcel> convertToExcelList(List<AgeDevice> deviceList) {
|
|
||||||
return deviceList.stream().map(device -> {
|
|
||||||
AgeDeviceExcel excel = new AgeDeviceExcel();
|
|
||||||
BeanUtils.copyProperties(device, excel);
|
|
||||||
return excel;
|
|
||||||
}).collect(Collectors.toList());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-76
@@ -1,76 +0,0 @@
|
|||||||
package com.central.device.controller;
|
|
||||||
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
import lombok.RequiredArgsConstructor;
|
|
||||||
import org.springframework.web.bind.annotation.*;
|
|
||||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
||||||
import io.swagger.v3.oas.annotations.enums.ParameterIn;
|
|
||||||
import io.swagger.v3.oas.annotations.Operation;
|
|
||||||
import io.swagger.v3.oas.annotations.Parameter;
|
|
||||||
import io.swagger.v3.oas.annotations.Parameters;
|
|
||||||
import lombok.extern.slf4j.Slf4j;
|
|
||||||
|
|
||||||
import com.central.device.model.AgeDeviceFirmware;
|
|
||||||
import com.central.device.service.IAgeDeviceFirmwareService;
|
|
||||||
import com.central.common.model.PageResult;
|
|
||||||
import com.central.common.model.Result;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Firmware file information
|
|
||||||
*
|
|
||||||
* @author lsl
|
|
||||||
* @date 2024-12-19 17:52:54
|
|
||||||
*/
|
|
||||||
@Slf4j
|
|
||||||
@RestController
|
|
||||||
@RequestMapping("/firmware")
|
|
||||||
@Tag(name = "Firmware file information")
|
|
||||||
@RequiredArgsConstructor
|
|
||||||
public class AgeDeviceFirmwareController {
|
|
||||||
private final IAgeDeviceFirmwareService ageDeviceFirmwareService;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 列表
|
|
||||||
*/
|
|
||||||
@Operation(summary = "查询列表")
|
|
||||||
@Parameters({
|
|
||||||
@Parameter(name = "page",description = "分页起始位置",required = true,in=ParameterIn.QUERY),
|
|
||||||
@Parameter(name = "limit",description = "分页结束位置",required = true,in=ParameterIn.QUERY)
|
|
||||||
})
|
|
||||||
@GetMapping
|
|
||||||
public PageResult list(@RequestParam Map<String, Object> params) {
|
|
||||||
return ageDeviceFirmwareService.findList(params);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 查询
|
|
||||||
*/
|
|
||||||
@Operation(summary = "查询")
|
|
||||||
@GetMapping("/{id}")
|
|
||||||
public Result findUserById(@PathVariable Long id) {
|
|
||||||
AgeDeviceFirmware model = ageDeviceFirmwareService.getById(id);
|
|
||||||
return Result.succeed(model, "查询成功");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 新增or更新
|
|
||||||
*/
|
|
||||||
@Operation(summary = "保存")
|
|
||||||
@PostMapping
|
|
||||||
public Result save(@RequestBody AgeDeviceFirmware ageDeviceFirmware) {
|
|
||||||
ageDeviceFirmwareService.saveOrUpdate(ageDeviceFirmware);
|
|
||||||
return Result.succeed("保存成功");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 删除
|
|
||||||
*/
|
|
||||||
@Operation(summary = "删除")
|
|
||||||
@Parameter(name = "id", description = "id", in = ParameterIn.PATH, required = true)
|
|
||||||
@DeleteMapping("/{id}")
|
|
||||||
public Result delete(@PathVariable Long id) {
|
|
||||||
ageDeviceFirmwareService.removeById(id);
|
|
||||||
return Result.succeed("删除成功");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-76
@@ -1,76 +0,0 @@
|
|||||||
package com.central.device.controller;
|
|
||||||
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
import lombok.RequiredArgsConstructor;
|
|
||||||
import org.springframework.web.bind.annotation.*;
|
|
||||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
||||||
import io.swagger.v3.oas.annotations.enums.ParameterIn;
|
|
||||||
import io.swagger.v3.oas.annotations.Operation;
|
|
||||||
import io.swagger.v3.oas.annotations.Parameter;
|
|
||||||
import io.swagger.v3.oas.annotations.Parameters;
|
|
||||||
import lombok.extern.slf4j.Slf4j;
|
|
||||||
|
|
||||||
import com.central.device.model.AgeDeviceHms;
|
|
||||||
import com.central.device.service.IAgeDeviceHmsService;
|
|
||||||
import com.central.common.model.PageResult;
|
|
||||||
import com.central.common.model.Result;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Device's hms information
|
|
||||||
*
|
|
||||||
* @author lsl
|
|
||||||
* @date 2024-12-19 17:53:01
|
|
||||||
*/
|
|
||||||
@Slf4j
|
|
||||||
@RestController
|
|
||||||
@RequestMapping("/hms")
|
|
||||||
@Tag(name = "Device's hms information")
|
|
||||||
@RequiredArgsConstructor
|
|
||||||
public class AgeDeviceHmsController {
|
|
||||||
private final IAgeDeviceHmsService ageDeviceHmsService;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 列表
|
|
||||||
*/
|
|
||||||
@Operation(summary = "查询列表")
|
|
||||||
@Parameters({
|
|
||||||
@Parameter(name = "page",description = "分页起始位置",required = true,in=ParameterIn.QUERY),
|
|
||||||
@Parameter(name = "limit",description = "分页结束位置",required = true,in=ParameterIn.QUERY)
|
|
||||||
})
|
|
||||||
@GetMapping
|
|
||||||
public PageResult list(@RequestParam Map<String, Object> params) {
|
|
||||||
return ageDeviceHmsService.findList(params);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 查询
|
|
||||||
*/
|
|
||||||
@Operation(summary = "查询")
|
|
||||||
@GetMapping("/{id}")
|
|
||||||
public Result findUserById(@PathVariable Long id) {
|
|
||||||
AgeDeviceHms model = ageDeviceHmsService.getById(id);
|
|
||||||
return Result.succeed(model, "查询成功");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 新增or更新
|
|
||||||
*/
|
|
||||||
@Operation(summary = "保存")
|
|
||||||
@PostMapping
|
|
||||||
public Result save(@RequestBody AgeDeviceHms ageDeviceHms) {
|
|
||||||
ageDeviceHmsService.saveOrUpdate(ageDeviceHms);
|
|
||||||
return Result.succeed("保存成功");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 删除
|
|
||||||
*/
|
|
||||||
@Operation(summary = "删除")
|
|
||||||
@Parameter(name = "id", description = "id", in = ParameterIn.PATH, required = true)
|
|
||||||
@DeleteMapping("/{id}")
|
|
||||||
public Result delete(@PathVariable Long id) {
|
|
||||||
ageDeviceHmsService.removeById(id);
|
|
||||||
return Result.succeed("删除成功");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-76
@@ -1,76 +0,0 @@
|
|||||||
package com.central.device.controller;
|
|
||||||
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
import lombok.RequiredArgsConstructor;
|
|
||||||
import org.springframework.web.bind.annotation.*;
|
|
||||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
||||||
import io.swagger.v3.oas.annotations.enums.ParameterIn;
|
|
||||||
import io.swagger.v3.oas.annotations.Operation;
|
|
||||||
import io.swagger.v3.oas.annotations.Parameter;
|
|
||||||
import io.swagger.v3.oas.annotations.Parameters;
|
|
||||||
import lombok.extern.slf4j.Slf4j;
|
|
||||||
|
|
||||||
import com.central.device.model.AgeDeviceLogs;
|
|
||||||
import com.central.device.service.IAgeDeviceLogsService;
|
|
||||||
import com.central.common.model.PageResult;
|
|
||||||
import com.central.common.model.Result;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Log for uploading logs
|
|
||||||
*
|
|
||||||
* @author lsl
|
|
||||||
* @date 2024-12-19 17:53:03
|
|
||||||
*/
|
|
||||||
@Slf4j
|
|
||||||
@RestController
|
|
||||||
@RequestMapping("/logs")
|
|
||||||
@Tag(name = "Log for uploading logs")
|
|
||||||
@RequiredArgsConstructor
|
|
||||||
public class AgeDeviceLogsController {
|
|
||||||
private final IAgeDeviceLogsService ageDeviceLogsService;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 列表
|
|
||||||
*/
|
|
||||||
@Operation(summary = "查询列表")
|
|
||||||
@Parameters({
|
|
||||||
@Parameter(name = "page",description = "分页起始位置",required = true,in=ParameterIn.QUERY),
|
|
||||||
@Parameter(name = "limit",description = "分页结束位置",required = true,in=ParameterIn.QUERY)
|
|
||||||
})
|
|
||||||
@GetMapping
|
|
||||||
public PageResult list(@RequestParam Map<String, Object> params) {
|
|
||||||
return ageDeviceLogsService.findList(params);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 查询
|
|
||||||
*/
|
|
||||||
@Operation(summary = "查询")
|
|
||||||
@GetMapping("/{id}")
|
|
||||||
public Result findUserById(@PathVariable Long id) {
|
|
||||||
AgeDeviceLogs model = ageDeviceLogsService.getById(id);
|
|
||||||
return Result.succeed(model, "查询成功");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 新增or更新
|
|
||||||
*/
|
|
||||||
@Operation(summary = "保存")
|
|
||||||
@PostMapping
|
|
||||||
public Result save(@RequestBody AgeDeviceLogs ageDeviceLogs) {
|
|
||||||
ageDeviceLogsService.saveOrUpdate(ageDeviceLogs);
|
|
||||||
return Result.succeed("保存成功");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 删除
|
|
||||||
*/
|
|
||||||
@Operation(summary = "删除")
|
|
||||||
@Parameter(name = "id", description = "id", in = ParameterIn.PATH, required = true)
|
|
||||||
@DeleteMapping("/{id}")
|
|
||||||
public Result delete(@PathVariable Long id) {
|
|
||||||
ageDeviceLogsService.removeById(id);
|
|
||||||
return Result.succeed("删除成功");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-76
@@ -1,76 +0,0 @@
|
|||||||
package com.central.device.controller;
|
|
||||||
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
import lombok.RequiredArgsConstructor;
|
|
||||||
import org.springframework.web.bind.annotation.*;
|
|
||||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
||||||
import io.swagger.v3.oas.annotations.enums.ParameterIn;
|
|
||||||
import io.swagger.v3.oas.annotations.Operation;
|
|
||||||
import io.swagger.v3.oas.annotations.Parameter;
|
|
||||||
import io.swagger.v3.oas.annotations.Parameters;
|
|
||||||
import lombok.extern.slf4j.Slf4j;
|
|
||||||
|
|
||||||
import com.central.device.model.AgeDevicePayload;
|
|
||||||
import com.central.device.service.IAgeDevicePayloadService;
|
|
||||||
import com.central.common.model.PageResult;
|
|
||||||
import com.central.common.model.Result;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The payload information of the device.
|
|
||||||
*
|
|
||||||
* @author lsl
|
|
||||||
* @date 2024-12-19 17:53:19
|
|
||||||
*/
|
|
||||||
@Slf4j
|
|
||||||
@RestController
|
|
||||||
@RequestMapping("/payload")
|
|
||||||
@Tag(name = "The payload information of the device.")
|
|
||||||
@RequiredArgsConstructor
|
|
||||||
public class AgeDevicePayloadController {
|
|
||||||
private final IAgeDevicePayloadService ageDevicePayloadService;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 列表
|
|
||||||
*/
|
|
||||||
@Operation(summary = "查询列表")
|
|
||||||
@Parameters({
|
|
||||||
@Parameter(name = "page",description = "分页起始位置",required = true,in=ParameterIn.QUERY),
|
|
||||||
@Parameter(name = "limit",description = "分页结束位置",required = true,in=ParameterIn.QUERY)
|
|
||||||
})
|
|
||||||
@GetMapping
|
|
||||||
public PageResult list(@RequestParam Map<String, Object> params) {
|
|
||||||
return ageDevicePayloadService.findList(params);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 查询
|
|
||||||
*/
|
|
||||||
@Operation(summary = "查询")
|
|
||||||
@GetMapping("/{id}")
|
|
||||||
public Result findUserById(@PathVariable Long id) {
|
|
||||||
AgeDevicePayload model = ageDevicePayloadService.getById(id);
|
|
||||||
return Result.succeed(model, "查询成功");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 新增or更新
|
|
||||||
*/
|
|
||||||
@Operation(summary = "保存")
|
|
||||||
@PostMapping
|
|
||||||
public Result save(@RequestBody AgeDevicePayload ageDevicePayload) {
|
|
||||||
ageDevicePayloadService.saveOrUpdate(ageDevicePayload);
|
|
||||||
return Result.succeed("保存成功");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 删除
|
|
||||||
*/
|
|
||||||
@Operation(summary = "删除")
|
|
||||||
@Parameter(name = "id", description = "id", in = ParameterIn.PATH, required = true)
|
|
||||||
@DeleteMapping("/{id}")
|
|
||||||
public Result delete(@PathVariable Long id) {
|
|
||||||
ageDevicePayloadService.removeById(id);
|
|
||||||
return Result.succeed("删除成功");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-76
@@ -1,76 +0,0 @@
|
|||||||
package com.central.device.controller;
|
|
||||||
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
import lombok.RequiredArgsConstructor;
|
|
||||||
import org.springframework.web.bind.annotation.*;
|
|
||||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
||||||
import io.swagger.v3.oas.annotations.enums.ParameterIn;
|
|
||||||
import io.swagger.v3.oas.annotations.Operation;
|
|
||||||
import io.swagger.v3.oas.annotations.Parameter;
|
|
||||||
import io.swagger.v3.oas.annotations.Parameters;
|
|
||||||
import lombok.extern.slf4j.Slf4j;
|
|
||||||
|
|
||||||
import com.central.device.model.AgeFirmwareModel;
|
|
||||||
import com.central.device.service.IAgeFirmwareModelService;
|
|
||||||
import com.central.common.model.PageResult;
|
|
||||||
import com.central.common.model.Result;
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* @author lsl
|
|
||||||
* @date 2024-12-19 17:53:20
|
|
||||||
*/
|
|
||||||
@Slf4j
|
|
||||||
@RestController
|
|
||||||
@RequestMapping("/firmware/model")
|
|
||||||
@Tag(name = "")
|
|
||||||
@RequiredArgsConstructor
|
|
||||||
public class AgeFirmwareModelController {
|
|
||||||
private final IAgeFirmwareModelService ageFirmwareModelService;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 列表
|
|
||||||
*/
|
|
||||||
@Operation(summary = "查询列表")
|
|
||||||
@Parameters({
|
|
||||||
@Parameter(name = "page",description = "分页起始位置",required = true,in=ParameterIn.QUERY),
|
|
||||||
@Parameter(name = "limit",description = "分页结束位置",required = true,in=ParameterIn.QUERY)
|
|
||||||
})
|
|
||||||
@GetMapping
|
|
||||||
public PageResult list(@RequestParam Map<String, Object> params) {
|
|
||||||
return ageFirmwareModelService.findList(params);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 查询
|
|
||||||
*/
|
|
||||||
@Operation(summary = "查询")
|
|
||||||
@GetMapping("/{id}")
|
|
||||||
public Result findUserById(@PathVariable Long id) {
|
|
||||||
AgeFirmwareModel model = ageFirmwareModelService.getById(id);
|
|
||||||
return Result.succeed(model, "查询成功");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 新增or更新
|
|
||||||
*/
|
|
||||||
@Operation(summary = "保存")
|
|
||||||
@PostMapping
|
|
||||||
public Result save(@RequestBody AgeFirmwareModel ageFirmwareModel) {
|
|
||||||
ageFirmwareModelService.saveOrUpdate(ageFirmwareModel);
|
|
||||||
return Result.succeed("保存成功");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 删除
|
|
||||||
*/
|
|
||||||
@Operation(summary = "删除")
|
|
||||||
@Parameter(name = "id", description = "id", in = ParameterIn.PATH, required = true)
|
|
||||||
@DeleteMapping("/{id}")
|
|
||||||
public Result delete(@PathVariable Long id) {
|
|
||||||
ageFirmwareModelService.removeById(id);
|
|
||||||
return Result.succeed("删除成功");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-76
@@ -1,76 +0,0 @@
|
|||||||
package com.central.device.controller;
|
|
||||||
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
import lombok.RequiredArgsConstructor;
|
|
||||||
import org.springframework.web.bind.annotation.*;
|
|
||||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
||||||
import io.swagger.v3.oas.annotations.enums.ParameterIn;
|
|
||||||
import io.swagger.v3.oas.annotations.Operation;
|
|
||||||
import io.swagger.v3.oas.annotations.Parameter;
|
|
||||||
import io.swagger.v3.oas.annotations.Parameters;
|
|
||||||
import lombok.extern.slf4j.Slf4j;
|
|
||||||
|
|
||||||
import com.central.device.model.AgeWorkspace;
|
|
||||||
import com.central.device.service.IAgeWorkspaceService;
|
|
||||||
import com.central.common.model.PageResult;
|
|
||||||
import com.central.common.model.Result;
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* @author lsl
|
|
||||||
* @date 2024-12-19 17:52:26
|
|
||||||
*/
|
|
||||||
@Slf4j
|
|
||||||
@RestController
|
|
||||||
@RequestMapping("/workspace")
|
|
||||||
@Tag(name = "")
|
|
||||||
@RequiredArgsConstructor
|
|
||||||
public class AgeWorkspaceController {
|
|
||||||
private final IAgeWorkspaceService ageWorkspaceService;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 列表
|
|
||||||
*/
|
|
||||||
@Operation(summary = "查询列表")
|
|
||||||
@Parameters({
|
|
||||||
@Parameter(name = "page",description = "分页起始位置",required = true,in=ParameterIn.QUERY),
|
|
||||||
@Parameter(name = "limit",description = "分页结束位置",required = true,in=ParameterIn.QUERY)
|
|
||||||
})
|
|
||||||
@GetMapping
|
|
||||||
public PageResult list(@RequestParam Map<String, Object> params) {
|
|
||||||
return ageWorkspaceService.findList(params);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 查询
|
|
||||||
*/
|
|
||||||
@Operation(summary = "查询")
|
|
||||||
@GetMapping("/{id}")
|
|
||||||
public Result findUserById(@PathVariable Long id) {
|
|
||||||
AgeWorkspace model = ageWorkspaceService.getById(id);
|
|
||||||
return Result.succeed(model, "查询成功");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 新增or更新
|
|
||||||
*/
|
|
||||||
@Operation(summary = "保存")
|
|
||||||
@PostMapping
|
|
||||||
public Result save(@RequestBody AgeWorkspace ageWorkspace) {
|
|
||||||
ageWorkspaceService.saveOrUpdate(ageWorkspace);
|
|
||||||
return Result.succeed("保存成功");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 删除
|
|
||||||
*/
|
|
||||||
@Operation(summary = "删除")
|
|
||||||
@Parameter(name = "id", description = "id", in = ParameterIn.PATH, required = true)
|
|
||||||
@DeleteMapping("/{id}")
|
|
||||||
public Result delete(@PathVariable Long id) {
|
|
||||||
ageWorkspaceService.removeById(id);
|
|
||||||
return Result.succeed("删除成功");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-217
@@ -1,217 +0,0 @@
|
|||||||
package com.central.device.controller;
|
|
||||||
|
|
||||||
import com.alibaba.fastjson.JSONObject;
|
|
||||||
import com.alibaba.nacos.shaded.com.google.gson.Gson;
|
|
||||||
import com.alibaba.nacos.shaded.com.google.gson.JsonElement;
|
|
||||||
import com.alibaba.nacos.shaded.com.google.gson.JsonObject;
|
|
||||||
import com.central.common.model.Result;
|
|
||||||
import com.central.device.feign.OrderCenterService;
|
|
||||||
import com.central.device.message.ControlEnum;
|
|
||||||
import com.central.device.message.ControlMessageConstant;
|
|
||||||
import com.central.device.model.LineFile;
|
|
||||||
import com.central.device.service.ILineFileService;
|
|
||||||
import com.central.device.service.LiveStreamService;
|
|
||||||
import com.central.device.util.IotRequestResult;
|
|
||||||
import com.central.device.util.MapUtil;
|
|
||||||
import com.central.device.util.RequestUtils;
|
|
||||||
import com.fasterxml.jackson.core.JsonProcessingException;
|
|
||||||
import io.swagger.v3.oas.annotations.Operation;
|
|
||||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
||||||
import lombok.extern.slf4j.Slf4j;
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.beans.factory.annotation.Value;
|
|
||||||
import org.springframework.util.Assert;
|
|
||||||
import org.springframework.util.StringUtils;
|
|
||||||
import org.springframework.web.bind.annotation.*;
|
|
||||||
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 设备操作controller
|
|
||||||
* @author lishilin
|
|
||||||
* @date 2024-12-31
|
|
||||||
*/
|
|
||||||
@Tag(name = "MQTT设备管理")
|
|
||||||
@Slf4j
|
|
||||||
@RestController
|
|
||||||
public class ApiDeviceController {
|
|
||||||
|
|
||||||
@Value("${jetlinks.server.baseUrl}")
|
|
||||||
private String baseUrl;// = "http://119.45.169.13:8848/";
|
|
||||||
|
|
||||||
@Autowired
|
|
||||||
private LiveStreamService liveStreamService;
|
|
||||||
|
|
||||||
@Autowired
|
|
||||||
private RequestUtils requestUtils;
|
|
||||||
|
|
||||||
private ControlMessageConstant controlMessageConstant = new ControlMessageConstant();
|
|
||||||
|
|
||||||
@Autowired
|
|
||||||
private OrderCenterService orderCenterService;
|
|
||||||
|
|
||||||
@Autowired
|
|
||||||
private ILineFileService lineFileService;
|
|
||||||
/**
|
|
||||||
* 获取设备属性
|
|
||||||
*/
|
|
||||||
@Operation(summary = "获取设备属性")
|
|
||||||
@GetMapping("/property/_query/{deviceId}/{property}")
|
|
||||||
public Result getProperty(@RequestParam Map<String,Object> param,@PathVariable("deviceId") String deviceId) throws IOException {
|
|
||||||
|
|
||||||
//温度属性,属性在设备管理的设备型号中设置
|
|
||||||
String property = MapUtil.getStrValue(param, "property");
|
|
||||||
String url = baseUrl + "/device/" + deviceId + "/property/" + property;
|
|
||||||
|
|
||||||
Map<String, String> result = requestUtils.getGetRequestResultMap(url,new HashMap<>());
|
|
||||||
return Result.succeed(result,"查询成功");
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 设置设备属性测试
|
|
||||||
*/
|
|
||||||
@Operation(summary = "设备属性设置")
|
|
||||||
@PostMapping("/setting/{deviceId}/property")
|
|
||||||
public Result writeProperties(@RequestBody Map<String, Object> param, @PathVariable("deviceId") String deviceId) {
|
|
||||||
log.info("开始设置设备属性: deviceId={}, param={}", deviceId, param);
|
|
||||||
try {
|
|
||||||
// 1. 参数校验
|
|
||||||
String control = MapUtil.getStrValue(param, "control");
|
|
||||||
String orderNo = MapUtil.getStrValue(param, "order_no");
|
|
||||||
if (!validateParams(control, orderNo)) {
|
|
||||||
return Result.failed("参数错误");
|
|
||||||
}
|
|
||||||
|
|
||||||
// 2. 检查订单状态
|
|
||||||
String orderStatus = orderCenterService.getOrderStatusByOrderNo(orderNo);
|
|
||||||
if (!isValidOrderStatus(orderStatus)) {
|
|
||||||
return Result.failed("设备已处理,请关注订单详情");
|
|
||||||
}
|
|
||||||
|
|
||||||
// 3. 构建控制消息
|
|
||||||
JsonObject controlMessage = buildControlMessage(control, orderNo, deviceId);
|
|
||||||
if (controlMessage == null) {
|
|
||||||
return Result.failed("暂未开放控制权限");
|
|
||||||
}
|
|
||||||
|
|
||||||
// 4. 发送设备控制请求
|
|
||||||
String url = baseUrl + "/device/instance/" + deviceId + "/property";
|
|
||||||
Map<String, String> result = requestUtils.getPostRequestResultMap(url, controlMessage.toString());
|
|
||||||
|
|
||||||
// 5. 处理响应结果
|
|
||||||
return handleDeviceResponse(result, orderNo);
|
|
||||||
|
|
||||||
} catch (Exception e) {
|
|
||||||
log.error("设置设备属性异常: deviceId={}, error={}", deviceId, e.getMessage(), e);
|
|
||||||
return Result.failed("系统异常");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private boolean validateParams(String control, String orderNo) {
|
|
||||||
return !StringUtils.isEmpty(control) && !StringUtils.isEmpty(orderNo);
|
|
||||||
}
|
|
||||||
|
|
||||||
private boolean isValidOrderStatus(String orderStatus) {
|
|
||||||
return !StringUtils.isEmpty(orderStatus) && orderStatus.equals("1");
|
|
||||||
}
|
|
||||||
|
|
||||||
private JsonObject buildControlMessage(String control, String orderNo, String deviceId) {
|
|
||||||
if (!ControlEnum.contains(ControlEnum.valueOf(control.toUpperCase()))) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
Gson gson = new Gson();
|
|
||||||
JsonObject jsonObject = gson.fromJson(controlMessageConstant.CONTROL_MESSAGE_MAP.get(control), JsonObject.class);
|
|
||||||
JsonObject data = jsonObject.getAsJsonObject("data");
|
|
||||||
// 设置订单信息
|
|
||||||
data.addProperty("order_no", orderNo);
|
|
||||||
|
|
||||||
// 获取航线信息
|
|
||||||
Map<String, Object> wayResult = orderCenterService.getWaylineByOrderNo(orderNo);
|
|
||||||
String waylineFilePath = MapUtil.getStrValue(wayResult, "waylineFilePath");
|
|
||||||
String waylineId = MapUtil.getStrValue(wayResult, "waylineId");
|
|
||||||
log.info("waylineFilePath:{}, waylineId:{}", waylineFilePath, waylineId);
|
|
||||||
data.addProperty("wayline_link_url", waylineFilePath);
|
|
||||||
LineFile lineFile = lineFileService.findLineFileByWaylineId(waylineId);
|
|
||||||
Assert.notNull(lineFile,"航线文件签名不正确");
|
|
||||||
data.addProperty("file_md5", lineFile.getSign());
|
|
||||||
// 设置设备视频流地址
|
|
||||||
try {
|
|
||||||
data.add("stream_urls", gson.fromJson(liveStreamService.generateStreamUrls(deviceId).toJSONString(), JsonElement.class));
|
|
||||||
} catch (Exception e) {
|
|
||||||
log.error("生成设备推流/拉流地址异常: deviceId={}, error={}", deviceId, e.getMessage(), e);
|
|
||||||
data.addProperty("stream_urls", "{}"); // 或者空字符串 ""
|
|
||||||
}
|
|
||||||
|
|
||||||
return jsonObject;
|
|
||||||
}
|
|
||||||
|
|
||||||
private Result handleDeviceResponse(Map<String, String> result, String orderNo) throws JsonProcessingException {
|
|
||||||
JSONObject object = JSONObject.parseObject(result.get(""));
|
|
||||||
if (object == null) {
|
|
||||||
return Result.failed("请求IOT平台异常");
|
|
||||||
}
|
|
||||||
|
|
||||||
IotRequestResult requestResult = IotRequestResult.getInstance(object);
|
|
||||||
if (requestResult.getStatus() == 200 || requestResult.getStatus() == 500) {
|
|
||||||
log.info("设置设备属性返回消息: message={}", requestResult.getMessage());
|
|
||||||
if (requestResult.getMessage().equals("Device is offline")){
|
|
||||||
// 设备离线时自动创建退款订单
|
|
||||||
log.info("设备离线,开始自动创建退款订单: orderNo={}", orderNo);
|
|
||||||
|
|
||||||
Result refundResult = createRefundForOfflineDevice(orderNo);
|
|
||||||
if (refundResult.getResp_code() != null && refundResult.getResp_code() == 0) {
|
|
||||||
return Result.failed("设备已离线,已自动创建退款订单");
|
|
||||||
} else {
|
|
||||||
log.error("自动创建退款订单失败: orderNo={}, error={}", orderNo, refundResult.getResp_msg());
|
|
||||||
return Result.failed("设备已离线,退款处理失败,请联系客服");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Result updateResult = orderCenterService.updateOrderStatusDoing(orderNo);
|
|
||||||
if (updateResult.getResp_code() != null && updateResult.getResp_code() == 0) {
|
|
||||||
return Result.succeed(updateResult.getData(), "设置成功");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return Result.failed("请重试");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 设备离线时自动创建退款订单
|
|
||||||
* @param orderNo 订单号
|
|
||||||
* @return 退款结果
|
|
||||||
*/
|
|
||||||
private Result createRefundForOfflineDevice(String orderNo) {
|
|
||||||
try {
|
|
||||||
// 构建退款请求体
|
|
||||||
Map<String, Object> refundBody = new HashMap<>();
|
|
||||||
refundBody.put("refundReason", "设备离线,无法提供服务");
|
|
||||||
refundBody.put("refundImgs", ""); // 可以设置为空或者添加默认图片
|
|
||||||
|
|
||||||
// 通过 OrderCenterService 调用退款接口
|
|
||||||
Result refundResult = orderCenterService.createRefundForOfflineDevice(orderNo, refundBody);
|
|
||||||
|
|
||||||
if (refundResult != null && refundResult.getResp_code() != null && refundResult.getResp_code() == 0) {
|
|
||||||
log.info("自动创建退款订单成功: orderNo={}", orderNo);
|
|
||||||
return Result.succeed("退款订单创建成功");
|
|
||||||
} else {
|
|
||||||
log.error("自动创建退款订单失败: orderNo={}, error={}", orderNo,
|
|
||||||
refundResult != null ? refundResult.getResp_msg() : "null");
|
|
||||||
return Result.failed("退款订单创建失败");
|
|
||||||
}
|
|
||||||
|
|
||||||
} catch (Exception e) {
|
|
||||||
log.error("自动创建退款订单异常: orderNo={}, error={}", orderNo, e.getMessage(), e);
|
|
||||||
return Result.failed("退款订单创建异常: " + e.getMessage());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@GetMapping("/device/wayline")
|
|
||||||
public Result<Map> getWayline(@RequestParam String no){
|
|
||||||
return Result.succeed(orderCenterService.getWaylineByOrderNo(no));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-76
@@ -1,76 +0,0 @@
|
|||||||
package com.central.device.controller;
|
|
||||||
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
import lombok.RequiredArgsConstructor;
|
|
||||||
import org.springframework.web.bind.annotation.*;
|
|
||||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
||||||
import io.swagger.v3.oas.annotations.enums.ParameterIn;
|
|
||||||
import io.swagger.v3.oas.annotations.Operation;
|
|
||||||
import io.swagger.v3.oas.annotations.Parameter;
|
|
||||||
import io.swagger.v3.oas.annotations.Parameters;
|
|
||||||
import lombok.extern.slf4j.Slf4j;
|
|
||||||
|
|
||||||
import com.central.device.model.IaFile;
|
|
||||||
import com.central.device.service.IIaFileService;
|
|
||||||
import com.central.common.model.PageResult;
|
|
||||||
import com.central.common.model.Result;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Media file information
|
|
||||||
*
|
|
||||||
* @author lsl
|
|
||||||
* @date 2024-12-19 17:52:18
|
|
||||||
*/
|
|
||||||
@Slf4j
|
|
||||||
@RestController
|
|
||||||
@RequestMapping("/file")
|
|
||||||
@Tag(name = "Media file information")
|
|
||||||
@RequiredArgsConstructor
|
|
||||||
public class IaFileController {
|
|
||||||
private final IIaFileService iaFileService;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 列表
|
|
||||||
*/
|
|
||||||
@Operation(summary = "查询列表")
|
|
||||||
@Parameters({
|
|
||||||
@Parameter(name = "page",description = "分页起始位置",required = true,in=ParameterIn.QUERY),
|
|
||||||
@Parameter(name = "limit",description = "分页结束位置",required = true,in=ParameterIn.QUERY)
|
|
||||||
})
|
|
||||||
@GetMapping
|
|
||||||
public PageResult list(@RequestParam Map<String, Object> params) {
|
|
||||||
return iaFileService.findList(params);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 查询
|
|
||||||
*/
|
|
||||||
@Operation(summary = "查询")
|
|
||||||
@GetMapping("/{id}")
|
|
||||||
public Result findUserById(@PathVariable Long id) {
|
|
||||||
IaFile model = iaFileService.getById(id);
|
|
||||||
return Result.succeed(model, "查询成功");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 新增or更新
|
|
||||||
*/
|
|
||||||
@Operation(summary = "保存")
|
|
||||||
@PostMapping
|
|
||||||
public Result save(@RequestBody IaFile iaFile) {
|
|
||||||
iaFileService.saveOrUpdate(iaFile);
|
|
||||||
return Result.succeed("保存成功");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 删除
|
|
||||||
*/
|
|
||||||
@Operation(summary = "删除")
|
|
||||||
@Parameter(name = "id", description = "id", in = ParameterIn.PATH, required = true)
|
|
||||||
@DeleteMapping("/{id}")
|
|
||||||
public Result delete(@PathVariable Long id) {
|
|
||||||
iaFileService.removeById(id);
|
|
||||||
return Result.succeed("删除成功");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-85
@@ -1,85 +0,0 @@
|
|||||||
package com.central.device.controller;
|
|
||||||
|
|
||||||
import com.central.common.model.PageResult;
|
|
||||||
import com.central.common.model.Result;
|
|
||||||
import com.central.device.model.LineFile;
|
|
||||||
import com.central.device.service.ILineFileService;
|
|
||||||
import io.swagger.v3.oas.annotations.Operation;
|
|
||||||
import io.swagger.v3.oas.annotations.Parameter;
|
|
||||||
import io.swagger.v3.oas.annotations.Parameters;
|
|
||||||
import io.swagger.v3.oas.annotations.enums.ParameterIn;
|
|
||||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
||||||
import lombok.RequiredArgsConstructor;
|
|
||||||
import lombok.extern.slf4j.Slf4j;
|
|
||||||
import org.springframework.web.bind.annotation.*;
|
|
||||||
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Wayline file information
|
|
||||||
*
|
|
||||||
* @author lsl
|
|
||||||
* @date 2024-12-19 17:51:52
|
|
||||||
*/
|
|
||||||
@Slf4j
|
|
||||||
@RestController
|
|
||||||
@RequestMapping("/wayline")
|
|
||||||
@Tag(name = "Wayline file information")
|
|
||||||
@RequiredArgsConstructor
|
|
||||||
public class LineFileController {
|
|
||||||
private final ILineFileService lineFileService;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 列表
|
|
||||||
*/
|
|
||||||
@Operation(summary = "查询列表")
|
|
||||||
@Parameters({
|
|
||||||
@Parameter(name = "page",description = "分页起始位置",required = true,in=ParameterIn.QUERY),
|
|
||||||
@Parameter(name = "limit",description = "分页结束位置",required = true,in=ParameterIn.QUERY)
|
|
||||||
})
|
|
||||||
@GetMapping
|
|
||||||
public PageResult list(@RequestParam Map<String, Object> params) {
|
|
||||||
return lineFileService.findList(params);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 查询
|
|
||||||
*/
|
|
||||||
@Operation(summary = "查询")
|
|
||||||
@GetMapping("/{id}")
|
|
||||||
public Result findById(@PathVariable String id) {
|
|
||||||
LineFile model = lineFileService.findLineFileByWaylineId(id);
|
|
||||||
return Result.succeed(model, "查询成功");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 查询
|
|
||||||
*/
|
|
||||||
@Operation(summary = "查询")
|
|
||||||
@GetMapping("/sign/{id}")
|
|
||||||
public String findLineSignById(@PathVariable String id) {
|
|
||||||
LineFile model = lineFileService.findLineFileByWaylineId(id);
|
|
||||||
return model.getSign();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 新增or更新
|
|
||||||
*/
|
|
||||||
@Operation(summary = "保存")
|
|
||||||
@PostMapping
|
|
||||||
public Result save(@RequestBody LineFile lineFile) {
|
|
||||||
lineFileService.saveOrUpdate(lineFile);
|
|
||||||
return Result.succeed("保存成功");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 删除
|
|
||||||
*/
|
|
||||||
@Operation(summary = "删除")
|
|
||||||
@Parameter(name = "id", description = "id", in = ParameterIn.PATH, required = true)
|
|
||||||
@DeleteMapping("/{id}")
|
|
||||||
public Result delete(@PathVariable Long id) {
|
|
||||||
lineFileService.removeById(id);
|
|
||||||
return Result.succeed("删除成功");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-76
@@ -1,76 +0,0 @@
|
|||||||
package com.central.device.controller;
|
|
||||||
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
import lombok.RequiredArgsConstructor;
|
|
||||||
import org.springframework.web.bind.annotation.*;
|
|
||||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
||||||
import io.swagger.v3.oas.annotations.enums.ParameterIn;
|
|
||||||
import io.swagger.v3.oas.annotations.Operation;
|
|
||||||
import io.swagger.v3.oas.annotations.Parameter;
|
|
||||||
import io.swagger.v3.oas.annotations.Parameters;
|
|
||||||
import lombok.extern.slf4j.Slf4j;
|
|
||||||
|
|
||||||
import com.central.device.model.LineJob;
|
|
||||||
import com.central.device.service.ILineJobService;
|
|
||||||
import com.central.common.model.PageResult;
|
|
||||||
import com.central.common.model.Result;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Wayline mission information of the dock.
|
|
||||||
*
|
|
||||||
* @author lsl
|
|
||||||
* @date 2024-12-19 17:51:53
|
|
||||||
*/
|
|
||||||
@Slf4j
|
|
||||||
@RestController
|
|
||||||
@RequestMapping("/linejob")
|
|
||||||
@Tag(name = "Wayline mission information of the dock.")
|
|
||||||
@RequiredArgsConstructor
|
|
||||||
public class LineJobController {
|
|
||||||
private final ILineJobService lineJobService;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 列表
|
|
||||||
*/
|
|
||||||
@Operation(summary = "查询列表")
|
|
||||||
@Parameters({
|
|
||||||
@Parameter(name = "page",description = "分页起始位置",required = true,in=ParameterIn.QUERY),
|
|
||||||
@Parameter(name = "limit",description = "分页结束位置",required = true,in=ParameterIn.QUERY)
|
|
||||||
})
|
|
||||||
@GetMapping
|
|
||||||
public PageResult list(@RequestParam Map<String, Object> params) {
|
|
||||||
return lineJobService.findList(params);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 查询
|
|
||||||
*/
|
|
||||||
@Operation(summary = "查询")
|
|
||||||
@GetMapping("/{id}")
|
|
||||||
public Result findUserById(@PathVariable Long id) {
|
|
||||||
LineJob model = lineJobService.getById(id);
|
|
||||||
return Result.succeed(model, "查询成功");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 新增or更新
|
|
||||||
*/
|
|
||||||
@Operation(summary = "保存")
|
|
||||||
@PostMapping
|
|
||||||
public Result save(@RequestBody LineJob lineJob) {
|
|
||||||
lineJobService.saveOrUpdate(lineJob);
|
|
||||||
return Result.succeed("保存成功");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 删除
|
|
||||||
*/
|
|
||||||
@Operation(summary = "删除")
|
|
||||||
@Parameter(name = "id", description = "id", in = ParameterIn.PATH, required = true)
|
|
||||||
@DeleteMapping("/{id}")
|
|
||||||
public Result delete(@PathVariable Long id) {
|
|
||||||
lineJobService.removeById(id);
|
|
||||||
return Result.succeed("删除成功");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-26
@@ -1,26 +0,0 @@
|
|||||||
package com.central.device.controller;
|
|
||||||
|
|
||||||
import com.alibaba.fastjson.JSONObject;
|
|
||||||
import com.central.common.model.Result;
|
|
||||||
import com.central.device.service.LiveStreamService;
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
|
||||||
import org.springframework.web.bind.annotation.RequestParam;
|
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
|
||||||
|
|
||||||
@RestController
|
|
||||||
public class LiveStreamController {
|
|
||||||
|
|
||||||
@Autowired
|
|
||||||
private LiveStreamService liveStreamService;
|
|
||||||
|
|
||||||
@GetMapping("/live/stream-urls")
|
|
||||||
public JSONObject getJsonStreamUrls(@RequestParam String deviceId) {
|
|
||||||
return liveStreamService.generateStreamUrls(deviceId);
|
|
||||||
}
|
|
||||||
|
|
||||||
@GetMapping("/stream-urls")
|
|
||||||
public Result<JSONObject> getStreamUrls(@RequestParam String deviceId) {
|
|
||||||
return Result.succeed(liveStreamService.generateStreamUrls(deviceId));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-76
@@ -1,76 +0,0 @@
|
|||||||
package com.central.device.controller;
|
|
||||||
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
import lombok.RequiredArgsConstructor;
|
|
||||||
import org.springframework.web.bind.annotation.*;
|
|
||||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
||||||
import io.swagger.v3.oas.annotations.enums.ParameterIn;
|
|
||||||
import io.swagger.v3.oas.annotations.Operation;
|
|
||||||
import io.swagger.v3.oas.annotations.Parameter;
|
|
||||||
import io.swagger.v3.oas.annotations.Parameters;
|
|
||||||
import lombok.extern.slf4j.Slf4j;
|
|
||||||
|
|
||||||
import com.central.device.model.SFile;
|
|
||||||
import com.central.device.service.ISFileService;
|
|
||||||
import com.central.common.model.PageResult;
|
|
||||||
import com.central.common.model.Result;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Logs file information
|
|
||||||
*
|
|
||||||
* @author lsl
|
|
||||||
* @date 2024-12-19 17:53:36
|
|
||||||
*/
|
|
||||||
@Slf4j
|
|
||||||
@RestController
|
|
||||||
@RequestMapping("/sfile")
|
|
||||||
@Tag(name = "Logs file information")
|
|
||||||
@RequiredArgsConstructor
|
|
||||||
public class SFileController {
|
|
||||||
private final ISFileService sFileService;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 列表
|
|
||||||
*/
|
|
||||||
@Operation(summary = "查询列表")
|
|
||||||
@Parameters({
|
|
||||||
@Parameter(name = "page",description = "分页起始位置",required = true,in=ParameterIn.QUERY),
|
|
||||||
@Parameter(name = "limit",description = "分页结束位置",required = true,in=ParameterIn.QUERY)
|
|
||||||
})
|
|
||||||
@GetMapping
|
|
||||||
public PageResult list(@RequestParam Map<String, Object> params) {
|
|
||||||
return sFileService.findList(params);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 查询
|
|
||||||
*/
|
|
||||||
@Operation(summary = "查询")
|
|
||||||
@GetMapping("/{id}")
|
|
||||||
public Result findUserById(@PathVariable Long id) {
|
|
||||||
SFile model = sFileService.getById(id);
|
|
||||||
return Result.succeed(model, "查询成功");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 新增or更新
|
|
||||||
*/
|
|
||||||
@Operation(summary = "保存")
|
|
||||||
@PostMapping
|
|
||||||
public Result save(@RequestBody SFile sFile) {
|
|
||||||
sFileService.saveOrUpdate(sFile);
|
|
||||||
return Result.succeed("保存成功");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 删除
|
|
||||||
*/
|
|
||||||
@Operation(summary = "删除")
|
|
||||||
@Parameter(name = "id", description = "id", in = ParameterIn.PATH, required = true)
|
|
||||||
@DeleteMapping("/{id}")
|
|
||||||
public Result delete(@PathVariable Long id) {
|
|
||||||
sFileService.removeById(id);
|
|
||||||
return Result.succeed("删除成功");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-76
@@ -1,76 +0,0 @@
|
|||||||
package com.central.device.controller;
|
|
||||||
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
import lombok.RequiredArgsConstructor;
|
|
||||||
import org.springframework.web.bind.annotation.*;
|
|
||||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
||||||
import io.swagger.v3.oas.annotations.enums.ParameterIn;
|
|
||||||
import io.swagger.v3.oas.annotations.Operation;
|
|
||||||
import io.swagger.v3.oas.annotations.Parameter;
|
|
||||||
import io.swagger.v3.oas.annotations.Parameters;
|
|
||||||
import lombok.extern.slf4j.Slf4j;
|
|
||||||
|
|
||||||
import com.central.device.model.SFileIndex;
|
|
||||||
import com.central.device.service.ISFileIndexService;
|
|
||||||
import com.central.common.model.PageResult;
|
|
||||||
import com.central.common.model.Result;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The boot index table corresponding to the logs file.
|
|
||||||
*
|
|
||||||
* @author lsl
|
|
||||||
* @date 2024-12-19 17:53:23
|
|
||||||
*/
|
|
||||||
@Slf4j
|
|
||||||
@RestController
|
|
||||||
@RequestMapping("/sfile/index")
|
|
||||||
@Tag(name = "The boot index table corresponding to the logs file.")
|
|
||||||
@RequiredArgsConstructor
|
|
||||||
public class SFileIndexController {
|
|
||||||
private final ISFileIndexService sFileIndexService;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 列表
|
|
||||||
*/
|
|
||||||
@Operation(summary = "查询列表")
|
|
||||||
@Parameters({
|
|
||||||
@Parameter(name = "page",description = "分页起始位置",required = true,in=ParameterIn.QUERY),
|
|
||||||
@Parameter(name = "limit",description = "分页结束位置",required = true,in=ParameterIn.QUERY)
|
|
||||||
})
|
|
||||||
@GetMapping
|
|
||||||
public PageResult list(@RequestParam Map<String, Object> params) {
|
|
||||||
return sFileIndexService.findList(params);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 查询
|
|
||||||
*/
|
|
||||||
@Operation(summary = "查询")
|
|
||||||
@GetMapping("/{id}")
|
|
||||||
public Result findUserById(@PathVariable Long id) {
|
|
||||||
SFileIndex model = sFileIndexService.getById(id);
|
|
||||||
return Result.succeed(model, "查询成功");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 新增or更新
|
|
||||||
*/
|
|
||||||
@Operation(summary = "保存")
|
|
||||||
@PostMapping
|
|
||||||
public Result save(@RequestBody SFileIndex sFileIndex) {
|
|
||||||
sFileIndexService.saveOrUpdate(sFileIndex);
|
|
||||||
return Result.succeed("保存成功");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 删除
|
|
||||||
*/
|
|
||||||
@Operation(summary = "删除")
|
|
||||||
@Parameter(name = "id", description = "id", in = ParameterIn.PATH, required = true)
|
|
||||||
@DeleteMapping("/{id}")
|
|
||||||
public Result delete(@PathVariable Long id) {
|
|
||||||
sFileIndexService.removeById(id);
|
|
||||||
return Result.succeed("删除成功");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-68
@@ -1,68 +0,0 @@
|
|||||||
package com.central.device.controller.token;
|
|
||||||
|
|
||||||
import com.alibaba.fastjson.JSON;
|
|
||||||
import com.alibaba.fastjson.JSONObject;
|
|
||||||
import com.central.common.model.Result;
|
|
||||||
import com.central.device.util.Utils;
|
|
||||||
import com.central.device.util.http.HeaderUtils;
|
|
||||||
import com.central.device.util.http.HttpRequest;
|
|
||||||
import com.central.device.util.http.Response;
|
|
||||||
import com.central.device.util.http.SimpleHttpRequest;
|
|
||||||
import io.swagger.v3.oas.annotations.Operation;
|
|
||||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
||||||
import org.apache.commons.lang3.StringUtils;
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.beans.factory.annotation.Value;
|
|
||||||
import org.springframework.util.Assert;
|
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
|
||||||
import org.springframework.web.bind.annotation.RequestParam;
|
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
|
||||||
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* token获取
|
|
||||||
* @author lishilin
|
|
||||||
* @date 2024-12-31
|
|
||||||
*/
|
|
||||||
@Tag(name = "token获取")
|
|
||||||
@RestController
|
|
||||||
@RequestMapping("/token")
|
|
||||||
public class ApiTokenController {
|
|
||||||
|
|
||||||
@Value("${jetlinks.server.baseUrl}")
|
|
||||||
private String jetlinksServiceUrl;//= "http://119.45.169.13:8848/";
|
|
||||||
|
|
||||||
@Autowired
|
|
||||||
private HeaderUtils headerUtils;
|
|
||||||
|
|
||||||
@Operation(summary = "客户端获取通信平台token")
|
|
||||||
@GetMapping("/query")
|
|
||||||
public Result token(@RequestParam(required = false) String expires) throws IOException {
|
|
||||||
|
|
||||||
if (StringUtils.isBlank(expires)) {
|
|
||||||
expires = String.valueOf(7200);
|
|
||||||
}
|
|
||||||
|
|
||||||
String url = jetlinksServiceUrl + "/token";
|
|
||||||
|
|
||||||
HttpRequest request = new SimpleHttpRequest(url);
|
|
||||||
|
|
||||||
Map<String, Object> param = new HashMap<>(2);
|
|
||||||
param.put("expires", expires);
|
|
||||||
request.headers(headerUtils.createHeadersOfJsonString(JSON.toJSONString(param)));
|
|
||||||
request.requestBody(JSON.toJSONString(param));
|
|
||||||
|
|
||||||
Response response = request.post();
|
|
||||||
Map<String, String> result = Utils.queryStringToMap(new String(response.asBytes(), "utf8"), "utf8");
|
|
||||||
JSONObject jsonObject = JSON.parseObject(result.get(""));
|
|
||||||
Assert.notNull(jsonObject, "获取IOT数据异常");
|
|
||||||
if (jsonObject.getString("message").equals("success")) {
|
|
||||||
return Result.succeed(jsonObject, "获取成功");
|
|
||||||
}
|
|
||||||
return Result.failed("请重试");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-42
@@ -1,42 +0,0 @@
|
|||||||
package com.central.device.feign;
|
|
||||||
|
|
||||||
import com.central.common.constant.ServiceNameConstants;
|
|
||||||
import com.central.common.model.Result;
|
|
||||||
import com.central.device.feign.fallback.OrderCenterServiceFallbackFactory;
|
|
||||||
import org.springframework.cloud.openfeign.FeignClient;
|
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
|
||||||
import org.springframework.web.bind.annotation.PathVariable;
|
|
||||||
import org.springframework.web.bind.annotation.PostMapping;
|
|
||||||
import org.springframework.web.bind.annotation.RequestBody;
|
|
||||||
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* user-center模块远程调用
|
|
||||||
*
|
|
||||||
* @author lsl
|
|
||||||
* @version 1.0
|
|
||||||
* @description user-center模块远程调用
|
|
||||||
* @create 2025/1/13
|
|
||||||
**/
|
|
||||||
@FeignClient(name = ServiceNameConstants.ORDER_SERVICE, fallbackFactory = OrderCenterServiceFallbackFactory.class, dismiss404 = true)
|
|
||||||
public interface OrderCenterService {
|
|
||||||
|
|
||||||
@PostMapping("/status")
|
|
||||||
Result updateOrderStatusDoing(@RequestBody String orderNo);
|
|
||||||
|
|
||||||
@GetMapping("/{orderNo}/status")
|
|
||||||
String getOrderStatusByOrderNo(@PathVariable("orderNo") String orderNo);
|
|
||||||
|
|
||||||
@GetMapping("/qrcode/wayline/{orderNo}")
|
|
||||||
Map<String,Object> getWaylineByOrderNo(@PathVariable("orderNo") String orderNo);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 设备离线时自动创建退款订单
|
|
||||||
* @param orderNo 订单号
|
|
||||||
* @param refundBody 退款请求体
|
|
||||||
* @return 退款结果
|
|
||||||
*/
|
|
||||||
@PostMapping("/refund/{orderNo}")
|
|
||||||
Result createRefundForOfflineDevice(@PathVariable("orderNo") String orderNo, @RequestBody Map<String, Object> refundBody);
|
|
||||||
}
|
|
||||||
-49
@@ -1,49 +0,0 @@
|
|||||||
package com.central.device.feign.fallback;
|
|
||||||
|
|
||||||
import com.central.common.model.Result;
|
|
||||||
import com.central.device.feign.OrderCenterService;
|
|
||||||
import lombok.extern.slf4j.Slf4j;
|
|
||||||
import org.springframework.cloud.openfeign.FallbackFactory;
|
|
||||||
import org.springframework.stereotype.Component;
|
|
||||||
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 任务中心调用失败回调
|
|
||||||
*
|
|
||||||
* @author lsl
|
|
||||||
* @version 1.0
|
|
||||||
* @description 任务中心调用失败回调
|
|
||||||
* @create 2025/1/17 11:33
|
|
||||||
**/
|
|
||||||
@Slf4j
|
|
||||||
@Component
|
|
||||||
public class OrderCenterServiceFallbackFactory implements FallbackFactory<OrderCenterService> {
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public OrderCenterService create(Throwable cause) {
|
|
||||||
return new OrderCenterService() {
|
|
||||||
@Override
|
|
||||||
public Result updateOrderStatusDoing(String orderNo) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String getOrderStatusByOrderNo(String orderNo) {
|
|
||||||
return "";
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Map<String,Object> getWaylineByOrderNo(String orderNo) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Result createRefundForOfflineDevice(String orderNo, Map<String, Object> refundBody) {
|
|
||||||
log.error("调用订单中心退款接口失败: orderNo={}, cause={}", orderNo, cause.getMessage());
|
|
||||||
return Result.failed("退款服务调用失败");
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-73
@@ -1,73 +0,0 @@
|
|||||||
package com.central.device.listener;
|
|
||||||
|
|
||||||
import com.alibaba.excel.context.AnalysisContext;
|
|
||||||
import com.alibaba.excel.read.listener.ReadListener;
|
|
||||||
import com.central.device.model.AgeDevice;
|
|
||||||
import com.central.device.model.excel.AgeDeviceExcel;
|
|
||||||
import com.central.device.service.IAgeDeviceService;
|
|
||||||
import lombok.RequiredArgsConstructor;
|
|
||||||
import lombok.extern.slf4j.Slf4j;
|
|
||||||
import org.apache.commons.lang3.StringUtils;
|
|
||||||
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.Date;
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
@Slf4j
|
|
||||||
@RequiredArgsConstructor
|
|
||||||
public class DeviceImportListener implements ReadListener<AgeDeviceExcel> {
|
|
||||||
private final IAgeDeviceService deviceService;
|
|
||||||
private final List<AgeDevice> deviceList = new ArrayList<>();
|
|
||||||
private static final int BATCH_COUNT = 100;
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void invoke(AgeDeviceExcel data, AnalysisContext context) {
|
|
||||||
log.info("解析到一条数据: {}", data);
|
|
||||||
|
|
||||||
// 数据校验
|
|
||||||
validateData(data);
|
|
||||||
|
|
||||||
// 转换为实体
|
|
||||||
AgeDevice device = data.toDevice();
|
|
||||||
|
|
||||||
// 设置默认值
|
|
||||||
if (device.getCreateTime() == null) {
|
|
||||||
device.setCreateTime(new Date());
|
|
||||||
}
|
|
||||||
device.setUpdateTime(new Date());
|
|
||||||
|
|
||||||
deviceList.add(device);
|
|
||||||
|
|
||||||
if (deviceList.size() >= BATCH_COUNT) {
|
|
||||||
saveData();
|
|
||||||
deviceList.clear();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void doAfterAllAnalysed(AnalysisContext context) {
|
|
||||||
saveData();
|
|
||||||
log.info("所有数据解析完成!");
|
|
||||||
}
|
|
||||||
|
|
||||||
private void validateData(AgeDeviceExcel data) {
|
|
||||||
if (StringUtils.isEmpty(data.getDeviceSn())) {
|
|
||||||
throw new IllegalArgumentException("设备序列号不能为空");
|
|
||||||
}
|
|
||||||
if (StringUtils.isEmpty(data.getDeviceName())) {
|
|
||||||
throw new IllegalArgumentException("设备名称不能为空");
|
|
||||||
}
|
|
||||||
// 检查设备序列号是否已存在
|
|
||||||
AgeDevice existDevice = deviceService.getByDeviceSn(data.getDeviceSn());
|
|
||||||
if (existDevice != null) {
|
|
||||||
throw new IllegalArgumentException("设备序列号已存在:" + data.getDeviceSn());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void saveData() {
|
|
||||||
if (!deviceList.isEmpty()) {
|
|
||||||
log.info("开始保存数据,数量:{}", deviceList.size());
|
|
||||||
deviceService.saveBatch(deviceList);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-27
@@ -1,27 +0,0 @@
|
|||||||
package com.central.device.mapper;
|
|
||||||
|
|
||||||
import com.central.device.model.AgeDeviceFirmware;
|
|
||||||
import com.central.db.mapper.SuperMapper;
|
|
||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
||||||
import org.apache.ibatis.annotations.Param;
|
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Firmware file information
|
|
||||||
*
|
|
||||||
* @author lsl
|
|
||||||
* @date 2024-12-19 17:52:54
|
|
||||||
*/
|
|
||||||
@Mapper
|
|
||||||
public interface AgeDeviceFirmwareMapper extends SuperMapper<AgeDeviceFirmware> {
|
|
||||||
/**
|
|
||||||
* 分页查询用户列表
|
|
||||||
* @param page
|
|
||||||
* @param params
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
List<AgeDeviceFirmware> findList(Page<AgeDeviceFirmware> page, @Param("p") Map<String, Object> params);
|
|
||||||
}
|
|
||||||
-27
@@ -1,27 +0,0 @@
|
|||||||
package com.central.device.mapper;
|
|
||||||
|
|
||||||
import com.central.device.model.AgeDeviceHms;
|
|
||||||
import com.central.db.mapper.SuperMapper;
|
|
||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
||||||
import org.apache.ibatis.annotations.Param;
|
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Device's hms information
|
|
||||||
*
|
|
||||||
* @author lsl
|
|
||||||
* @date 2024-12-19 17:53:01
|
|
||||||
*/
|
|
||||||
@Mapper
|
|
||||||
public interface AgeDeviceHmsMapper extends SuperMapper<AgeDeviceHms> {
|
|
||||||
/**
|
|
||||||
* 分页查询用户列表
|
|
||||||
* @param page
|
|
||||||
* @param params
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
List<AgeDeviceHms> findList(Page<AgeDeviceHms> page, @Param("p") Map<String, Object> params);
|
|
||||||
}
|
|
||||||
-27
@@ -1,27 +0,0 @@
|
|||||||
package com.central.device.mapper;
|
|
||||||
|
|
||||||
import com.central.device.model.AgeDeviceLogs;
|
|
||||||
import com.central.db.mapper.SuperMapper;
|
|
||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
||||||
import org.apache.ibatis.annotations.Param;
|
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Log for uploading logs
|
|
||||||
*
|
|
||||||
* @author lsl
|
|
||||||
* @date 2024-12-19 17:53:03
|
|
||||||
*/
|
|
||||||
@Mapper
|
|
||||||
public interface AgeDeviceLogsMapper extends SuperMapper<AgeDeviceLogs> {
|
|
||||||
/**
|
|
||||||
* 分页查询用户列表
|
|
||||||
* @param page
|
|
||||||
* @param params
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
List<AgeDeviceLogs> findList(Page<AgeDeviceLogs> page, @Param("p") Map<String, Object> params);
|
|
||||||
}
|
|
||||||
-45
@@ -1,45 +0,0 @@
|
|||||||
package com.central.device.mapper;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
||||||
import com.central.db.mapper.SuperMapper;
|
|
||||||
import com.central.device.model.AgeDevice;
|
|
||||||
import com.central.device.model.vo.DistributionDataVO;
|
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
|
||||||
import org.apache.ibatis.annotations.Param;
|
|
||||||
import org.apache.ibatis.annotations.Select;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Device information
|
|
||||||
*
|
|
||||||
* @author lsl
|
|
||||||
* @date 2024-12-19 17:51:47
|
|
||||||
*/
|
|
||||||
@Mapper
|
|
||||||
public interface AgeDeviceMapper extends SuperMapper<AgeDevice> {
|
|
||||||
/**
|
|
||||||
* 分页查询用户列表
|
|
||||||
* @param page
|
|
||||||
* @param params
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
List<AgeDevice> findList(Page<AgeDevice> page, @Param("p") Map<String, Object> params);
|
|
||||||
|
|
||||||
@Select("SELECT COUNT(*) FROM manage_device WHERE is_del = 0")
|
|
||||||
Long getTotalDevices();
|
|
||||||
|
|
||||||
@Select("SELECT COUNT(*) FROM manage_device WHERE is_del = 0 AND status = 1")
|
|
||||||
Long getOnlineDevices();
|
|
||||||
|
|
||||||
@Select({
|
|
||||||
"SELECT",
|
|
||||||
" device_type as type,",
|
|
||||||
" COUNT(*) as value",
|
|
||||||
"FROM manage_device",
|
|
||||||
"WHERE is_del = 0",
|
|
||||||
"GROUP BY device_type"
|
|
||||||
})
|
|
||||||
List<DistributionDataVO> getDeviceDistribution();
|
|
||||||
}
|
|
||||||
-27
@@ -1,27 +0,0 @@
|
|||||||
package com.central.device.mapper;
|
|
||||||
|
|
||||||
import com.central.device.model.AgeDevicePayload;
|
|
||||||
import com.central.db.mapper.SuperMapper;
|
|
||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
||||||
import org.apache.ibatis.annotations.Param;
|
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The payload information of the device.
|
|
||||||
*
|
|
||||||
* @author lsl
|
|
||||||
* @date 2024-12-19 17:53:19
|
|
||||||
*/
|
|
||||||
@Mapper
|
|
||||||
public interface AgeDevicePayloadMapper extends SuperMapper<AgeDevicePayload> {
|
|
||||||
/**
|
|
||||||
* 分页查询用户列表
|
|
||||||
* @param page
|
|
||||||
* @param params
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
List<AgeDevicePayload> findList(Page<AgeDevicePayload> page, @Param("p") Map<String, Object> params);
|
|
||||||
}
|
|
||||||
-27
@@ -1,27 +0,0 @@
|
|||||||
package com.central.device.mapper;
|
|
||||||
|
|
||||||
import com.central.device.model.AgeFirmwareModel;
|
|
||||||
import com.central.db.mapper.SuperMapper;
|
|
||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
||||||
import org.apache.ibatis.annotations.Param;
|
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* @author lsl
|
|
||||||
* @date 2024-12-19 17:53:20
|
|
||||||
*/
|
|
||||||
@Mapper
|
|
||||||
public interface AgeFirmwareModelMapper extends SuperMapper<AgeFirmwareModel> {
|
|
||||||
/**
|
|
||||||
* 分页查询用户列表
|
|
||||||
* @param page
|
|
||||||
* @param params
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
List<AgeFirmwareModel> findList(Page<AgeFirmwareModel> page, @Param("p") Map<String, Object> params);
|
|
||||||
}
|
|
||||||
-27
@@ -1,27 +0,0 @@
|
|||||||
package com.central.device.mapper;
|
|
||||||
|
|
||||||
import com.central.device.model.AgeWorkspace;
|
|
||||||
import com.central.db.mapper.SuperMapper;
|
|
||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
||||||
import org.apache.ibatis.annotations.Param;
|
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* @author lsl
|
|
||||||
* @date 2024-12-19 17:52:26
|
|
||||||
*/
|
|
||||||
@Mapper
|
|
||||||
public interface AgeWorkspaceMapper extends SuperMapper<AgeWorkspace> {
|
|
||||||
/**
|
|
||||||
* 分页查询用户列表
|
|
||||||
* @param page
|
|
||||||
* @param params
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
List<AgeWorkspace> findList(Page<AgeWorkspace> page, @Param("p") Map<String, Object> params);
|
|
||||||
}
|
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
package com.central.device.mapper;
|
|
||||||
|
|
||||||
import com.central.device.model.IaFile;
|
|
||||||
import com.central.db.mapper.SuperMapper;
|
|
||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
||||||
import org.apache.ibatis.annotations.Param;
|
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Media file information
|
|
||||||
*
|
|
||||||
* @author lsl
|
|
||||||
* @date 2024-12-19 17:52:18
|
|
||||||
*/
|
|
||||||
@Mapper
|
|
||||||
public interface IaFileMapper extends SuperMapper<IaFile> {
|
|
||||||
/**
|
|
||||||
* 分页查询用户列表
|
|
||||||
* @param page
|
|
||||||
* @param params
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
List<IaFile> findList(Page<IaFile> page, @Param("p") Map<String, Object> params);
|
|
||||||
}
|
|
||||||
-34
@@ -1,34 +0,0 @@
|
|||||||
package com.central.device.mapper;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
||||||
import com.central.db.mapper.SuperMapper;
|
|
||||||
import com.central.device.model.LineFile;
|
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
|
||||||
import org.apache.ibatis.annotations.Param;
|
|
||||||
import org.apache.ibatis.annotations.Select;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Wayline file information
|
|
||||||
*
|
|
||||||
* @author lsl
|
|
||||||
* @date 2024-12-19 17:51:52
|
|
||||||
*/
|
|
||||||
@Mapper
|
|
||||||
public interface LineFileMapper extends SuperMapper<LineFile> {
|
|
||||||
/**
|
|
||||||
* 分页查询用户列表
|
|
||||||
* @param page
|
|
||||||
* @param params
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
List<LineFile> findList(Page<LineFile> page, @Param("p") Map<String, Object> params);
|
|
||||||
|
|
||||||
@Select("SELECT COUNT(*) FROM wayline_file WHERE is_del = 0")
|
|
||||||
Long getTotalWaylines();
|
|
||||||
|
|
||||||
@Select("SELECT COUNT(*) FROM wayline_file WHERE is_del = 0 AND last_use_time >= DATE_SUB(NOW(), INTERVAL 7 DAY)")
|
|
||||||
Long getActiveWaylines();
|
|
||||||
}
|
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
package com.central.device.mapper;
|
|
||||||
|
|
||||||
import com.central.device.model.LineJob;
|
|
||||||
import com.central.db.mapper.SuperMapper;
|
|
||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
||||||
import org.apache.ibatis.annotations.Param;
|
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Wayline mission information of the dock.
|
|
||||||
*
|
|
||||||
* @author lsl
|
|
||||||
* @date 2024-12-19 17:51:53
|
|
||||||
*/
|
|
||||||
@Mapper
|
|
||||||
public interface LineJobMapper extends SuperMapper<LineJob> {
|
|
||||||
/**
|
|
||||||
* 分页查询用户列表
|
|
||||||
* @param page
|
|
||||||
* @param params
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
List<LineJob> findList(Page<LineJob> page, @Param("p") Map<String, Object> params);
|
|
||||||
}
|
|
||||||
-27
@@ -1,27 +0,0 @@
|
|||||||
package com.central.device.mapper;
|
|
||||||
|
|
||||||
import com.central.device.model.SFileIndex;
|
|
||||||
import com.central.db.mapper.SuperMapper;
|
|
||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
||||||
import org.apache.ibatis.annotations.Param;
|
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The boot index table corresponding to the logs file.
|
|
||||||
*
|
|
||||||
* @author lsl
|
|
||||||
* @date 2024-12-19 17:53:23
|
|
||||||
*/
|
|
||||||
@Mapper
|
|
||||||
public interface SFileIndexMapper extends SuperMapper<SFileIndex> {
|
|
||||||
/**
|
|
||||||
* 分页查询用户列表
|
|
||||||
* @param page
|
|
||||||
* @param params
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
List<SFileIndex> findList(Page<SFileIndex> page, @Param("p") Map<String, Object> params);
|
|
||||||
}
|
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
package com.central.device.mapper;
|
|
||||||
|
|
||||||
import com.central.device.model.SFile;
|
|
||||||
import com.central.db.mapper.SuperMapper;
|
|
||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
||||||
import org.apache.ibatis.annotations.Param;
|
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Logs file information
|
|
||||||
*
|
|
||||||
* @author lsl
|
|
||||||
* @date 2024-12-19 17:53:36
|
|
||||||
*/
|
|
||||||
@Mapper
|
|
||||||
public interface SFileMapper extends SuperMapper<SFile> {
|
|
||||||
/**
|
|
||||||
* 分页查询用户列表
|
|
||||||
* @param page
|
|
||||||
* @param params
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
List<SFile> findList(Page<SFile> page, @Param("p") Map<String, Object> params);
|
|
||||||
}
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
package com.central.device.message;
|
|
||||||
|
|
||||||
import lombok.AllArgsConstructor;
|
|
||||||
import lombok.Getter;
|
|
||||||
|
|
||||||
@Getter
|
|
||||||
@AllArgsConstructor
|
|
||||||
public enum ControlEnum {
|
|
||||||
RETURN_HOME("return_home"),
|
|
||||||
TAKEOFF_TO_POINT("takeoff_to_point"),
|
|
||||||
FLY_TO_POINT("fly_to_point"),
|
|
||||||
FLY_TO_POINT_STOP("fly_to_point_stop"),
|
|
||||||
FLY_TO_POINT_UPDATE("fly_to_point_stop"),
|
|
||||||
FLIGHTTASK_PAUSE("flighttask_pause"),
|
|
||||||
FLIGHTTASK_PREPARE ("flighttask_prepare"),
|
|
||||||
FLIGHTTASK_RECOVERY( "flighttask_recovery");
|
|
||||||
|
|
||||||
private final String name;
|
|
||||||
|
|
||||||
// 静态方法:检查某个参数是否是枚举的一个实例
|
|
||||||
public static boolean contains(ControlEnum value) {
|
|
||||||
for (ControlEnum v : ControlEnum.values()) {
|
|
||||||
if (v == value) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-91
@@ -1,91 +0,0 @@
|
|||||||
package com.central.device.message;
|
|
||||||
|
|
||||||
import lombok.Getter;
|
|
||||||
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
|
|
||||||
@Getter
|
|
||||||
public class ControlMessageConstant {
|
|
||||||
|
|
||||||
|
|
||||||
public final static String TAKEOFF_TO_POINT = "{\n" +
|
|
||||||
" \"data\": {\n" +
|
|
||||||
"\t \"flight_id\": flight_id,\n" +
|
|
||||||
"\t \"max_speed\": 5,\n" +
|
|
||||||
"\t \"rc_lost_action\": 2,\n" +
|
|
||||||
"\t \"rth_altitude\": 60.0,\n" +
|
|
||||||
"\t \"rth_mode\": 1,\n" +
|
|
||||||
"\t \"security_takeoff_height\": 60.0,\n" +
|
|
||||||
"\t \"target_height\": 70.0,\n" +
|
|
||||||
"\t \"target_latitude\": 39.102603,\n" +
|
|
||||||
"\t \"target_longitude\": 117.711972,\n" +
|
|
||||||
"\t \"commander_mode_lost_action\": 0,\n" +
|
|
||||||
"\t \"commander_flight_mode\": 1,\n" +
|
|
||||||
"\t \"commander_flight_height\": 70.0,\n" +
|
|
||||||
"\t \"simulate_mission\": {\n" +
|
|
||||||
"\t },\n" +
|
|
||||||
"\t \"flight_safety_advance_check\": 0\n" +
|
|
||||||
"\t},\n" +
|
|
||||||
"\t\"method\": \"takeoff_to_point\"\n" +
|
|
||||||
"}";
|
|
||||||
|
|
||||||
public final static String FLY_TO_ID = "{\n" +
|
|
||||||
"\t\"data\": {\n" +
|
|
||||||
"\t\t\"fly_to_id\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx\",\n" +
|
|
||||||
"\t\t\"max_speed\": 12,\n" +
|
|
||||||
"\t\t\"points\": [\n" +
|
|
||||||
"\t\t\t{\n" +
|
|
||||||
"\t\t\t\t\"height\": 100,\n" +
|
|
||||||
"\t\t\t\t\"latitude\": 12.23,\n" +
|
|
||||||
"\t\t\t\t\"longitude\": 12.23\n" +
|
|
||||||
"\t\t\t}\n" +
|
|
||||||
"\t\t]\n" +
|
|
||||||
"\t},\n" +
|
|
||||||
"\t\"method\": \"fly_to_point\"\n" +
|
|
||||||
"}";
|
|
||||||
public final static String FLY_TO_ID_STOP = "{\n" +
|
|
||||||
"\t\"data\": {},\n" +
|
|
||||||
"\t\"method\": \"fly_to_point_stop\"\n" +
|
|
||||||
"}";
|
|
||||||
public final static String FLY_TO_POINT_UPDATE = "{\n" +
|
|
||||||
"\t\"data\": {\n" +
|
|
||||||
"\t\t\"max_speed\": 12,\n" +
|
|
||||||
"\t\t\"points\": [\n" +
|
|
||||||
"\t\t\t{\n" +
|
|
||||||
"\t\t\t\t\"height\": 100,\n" +
|
|
||||||
"\t\t\t\t\"latitude\": 12.23,\n" +
|
|
||||||
"\t\t\t\t\"longitude\": 12.23\n" +
|
|
||||||
"\t\t\t}\n" +
|
|
||||||
"\t\t]\n" +
|
|
||||||
"\t},\n" +
|
|
||||||
"\t\"method\": \"fly_to_point_update\"\n" +
|
|
||||||
"}";
|
|
||||||
public final static String RETURN_HOME = "{\n" +
|
|
||||||
"\t\"data\": {},\n" +
|
|
||||||
"\t\"method\": \"return_home\"\n" +
|
|
||||||
"}";
|
|
||||||
|
|
||||||
public final static String FLIGHTTASK_PAUSE = "{\"data\": {}, \"method\": \"flighttask_pause\"}";
|
|
||||||
|
|
||||||
public final static String FLIGHTTASK_PREPARE = "{\"data\": {},\"method\": \"flighttask_prepare\"}";
|
|
||||||
|
|
||||||
public final static String FLIGHTTASK_RECOVERY = "{\"data\": {}, \"method\": \"flighttask_recovery\"}";
|
|
||||||
|
|
||||||
public Map<String,String> CONTROL_MESSAGE_MAP
|
|
||||||
= new HashMap();
|
|
||||||
|
|
||||||
public ControlMessageConstant(){
|
|
||||||
CONTROL_MESSAGE_MAP.put("fly_to_point_stop", FLY_TO_ID_STOP);
|
|
||||||
CONTROL_MESSAGE_MAP.put("fly_to_point", FLY_TO_ID);
|
|
||||||
CONTROL_MESSAGE_MAP.put("fly_to_point_update", FLY_TO_POINT_UPDATE);
|
|
||||||
CONTROL_MESSAGE_MAP.put("flighttask_pause", FLIGHTTASK_PAUSE);
|
|
||||||
CONTROL_MESSAGE_MAP.put("flighttask_prepare", FLIGHTTASK_PREPARE);
|
|
||||||
CONTROL_MESSAGE_MAP.put("return_home", RETURN_HOME);
|
|
||||||
CONTROL_MESSAGE_MAP.put("flighttask_recovery", FLIGHTTASK_RECOVERY);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,747 +0,0 @@
|
|||||||
# iot说明
|
|
||||||
|
|
||||||
# 上报主题说明:
|
|
||||||
|
|
||||||
设备运行日志上报主题:/fire_alarm
|
|
||||||
|
|
||||||
# 上报内容:
|
|
||||||
|
|
||||||
## 状态包:
|
|
||||||
|
|
||||||
| home_position_is_valid | Home 点有效性 | enum_int | {"0":"无效","1":"有效"} | | r | 0 |
|
|
||||||
| --- | --- | --- | --- | --- | --- | --- |
|
|
||||||
| heading | 机场朝向角 | double | {"max":"180","min":"-180","step":"","unit_name":"度 / °"} | | r | 0 |
|
|
||||||
| rtcm_info | 机场 RTK 标定源 | struct | | | r | 1 |
|
|
||||||
| »mount_point | 网络 RTK 挂载点信息 | text | | | | 0 |
|
|
||||||
| »port | 网络端口信息 | text | | | | 0 |
|
|
||||||
| »host | 网络 host 信息 | text | | | | 0 |
|
|
||||||
| »rtcm_device_type | 设备类型 | enum_int | {"1":"机场"} | | | 0 |
|
|
||||||
| »source_type | 标定类型 | enum_int | {"0":"未标定","1":"自收敛标定","2":"手动标定","3":"网络RTK标定"} | | | 0 |
|
|
||||||
| wireless_link_topo | 图传连接拓扑 | struct | | | r | 1 |
|
|
||||||
| »secret_code | 加密编码 | array | {"size": 28, "item_type": int} | | | 0 |
|
|
||||||
| »center_node | 飞行器对频信息 | struct | | | | 0 |
|
|
||||||
| »»sdr_id | 扰码信息 | int | | | | 0 |
|
|
||||||
| »»sn | 设备sn | text | | | | 0 |
|
|
||||||
| »leaf_nodes | 机场或遥控器对频信息 | array | {"size": -, "item_type": struct} | | | 0 |
|
|
||||||
| »»sdr_id | 扰码信息 | int | | | | 0 |
|
|
||||||
| »»sn | 设备sn | text | | | | 0 |
|
|
||||||
| »»control_source_index | 控制源序号 | int | {"max":"2","min":"1","step":"1","unit_name":"无 / "} | | | 0 |
|
|
||||||
| air_conditioner | 机场空调工作状态信息 | struct | | | r | 0 |
|
|
||||||
| »air_conditioner_state | 机场空调状态 | enum_int | {"0":"空闲模式(无制冷、制热、除湿等)","1":"制冷模式","2":"制热模式","3":"除湿模式","4":"制冷退出模式","5":"制热退出模式","6":"除湿退出模式","7":"制冷准备模式","8":"制热准备模式","9":"除湿准备模式"} | 机场空调工作状态信息,空调仅存在一种工作模式 | | 0 |
|
|
||||||
| »switch_time | 剩余等待可切换时间 | int | {"unit_name":"秒 / s"} | 空调状态顺序为准备模式切换到工作状模式、随后可操作后切换到退出模式、退出完成后切换到空闲模式,因此本物模型表示进行某个指令操作后还需要多久可以切换至下一状态。例如当前为空闲状态,开启制冷模式后将进入制冷准备模式,则本时间表示还需要多久可以进入制冷工作模式。以此类推 | | 0 |
|
|
||||||
| air_transfer_enable | 空中回传 | bool | {"false":"关闭","true":"开启"} | 用户在指令飞行过程中拍照的照片快速回传至云端 | rw | 1 |
|
|
||||||
| silent_mode | 机场静音模式 | enum_int | {"0":"非静音模式","1":"静音模式"} | 开启静音模式,意味着:1. 风扇转速降低、空调制冷性能下降、炎热天气下作业间隔变长。2. 蜂鸣器声音将关闭,开关舱盖时请注意周围安全。3. 机场待机状态的白色指示灯关闭,其他运行状态的指示灯正常。 | rw | 1 |
|
|
||||||
| user_experience_improvement | 用户体验改善计划 | enum_int | {"0":"初始状态","1":"拒绝加入用户体验改善计划","2":"同意加入用户体验改善计划"} | | rw | 1 |
|
|
||||||
| dongle_infos | 4G Dongle信息 | array | {"size": -, "item_type": struct} | | r | 1 |
|
|
||||||
| »imei | dongle imei | text | | Dongle 的唯一识别标志 | r | 0 |
|
|
||||||
| »dongle_type | Dongle 类型 | enum_int | {"6":"旧 Dongle","10":"支持 eSIM 的新 Dongle"} | Dongle 类型 | r | 0 |
|
|
||||||
| »eid | dongle eid | text | | eSIM 的唯一识别标志,用于公众号查询套餐、购买服务 | r | 0 |
|
|
||||||
| »esim_activate_state | eSIM 激活状态 | enum_int | {"0":"未激活","1":"已激活"} | 需要激活才能使用 | r | 0 |
|
|
||||||
| »sim_card_state | SIM 卡状态 | enum_int | {"0":"未插入","1":"已插入"} | Dongle 中实体 SIM 卡的插入状态 | r | 0 |
|
|
||||||
| »sim_slot | SIM 卡槽使能状态 | enum_int | {"0":"未知","1":"实体 SIM 卡","2":"eSIM"} | 标识 Dongle 当前正在使用的 SIM 卡槽 | r | 0 |
|
|
||||||
| »esim_infos | eSIM 信息 | array | {"size": -, "item_type": struct} | | r | 0 |
|
|
||||||
| »»telecom_operator | 支持的运营商 | enum_int | {"0":"未知","1":"移动","2":"联通","3":"电信"} | eSIM 支持的运营商 | r | 0 |
|
|
||||||
| »»enabled | eSIM 使能状态 | bool | {"false":"未使用","true":"使用中"} | 同时刻只能有一个 eSIM 是使能的 | r | 0 |
|
|
||||||
| »»iccid | sim iccid | text | | SIM 卡的唯一识别标志,可以用于实体 SIM 卡的套餐购买 | r | 0 |
|
|
||||||
| »sim_info | SIM 卡信息 | struct | | 可插入 Dongle 的实体 SIM 卡信息 | r | 0 |
|
|
||||||
| »»telecom_operator | 支持的运营商 | enum_int | {"0":"未知","1":"移动","2":"联通","3":"电信"} | SIM 卡支持的运营商 | r | 0 |
|
|
||||||
| »»sim_type | SIM 卡类型 | enum_int | {"0":"未知","1":"其他普通 SIM 卡","2":"三网卡"} | 实体 SIM 卡的类型 | r | 0 |
|
|
||||||
| »»iccid | sim iccid | text | | SIM 卡的唯一识别标志,可以用于实体 SIM 卡的套餐购买 | r | 0 |
|
|
||||||
| drone_battery_maintenance_info | 飞行器电池保养信息 | struct | | | | 0 |
|
|
||||||
| »maintenance_state | 保养状态 | enum_int | {"0":"无需保养","1":"待保养","2":"正在保养"} | | | 0 |
|
|
||||||
| »maintenance_time_left | 电池保养剩余时间 | int | {"unit_name":"小时 / h"} | 向下取整 | | 0 |
|
|
||||||
| »heat_state | 电池加热保温状态 | enum_int | {"0":"电池未开启加热或保温","1":"电池在加热中","2":"电池在保温中"} | 当飞行器舱内关机时由本物模型上报机场连接飞行器的电池加热保温信息 | | 0 |
|
|
||||||
| »batteries | 电池详细信息 | array | {"size": -, "item_type": struct} | 当飞行器舱内关机时由本物模型上报机场连接飞行器的电池信息,基本数据与飞行器物模型中电池信息基本保持一致 | | 0 |
|
|
||||||
| »»capacity_percent | 电池剩余电量 | int | {"max":100,"min":0} | 保留小数点后一位,正常范围0-100,设备端获取不到数据的异常值为 32767 | | 0 |
|
|
||||||
| »»index | 电池序号 | enum_int | {"0":"左电池","1":"右电池"} | | | 0 |
|
|
||||||
| »»voltage | 电压 | int | {"unit_name":"毫伏 / mV"} | 正常范围0-28000mV,设备端获取不到数据的异常值为32767 | | 0 |
|
|
||||||
| »»temperature | 温度 | float | {"unit_name":"摄氏度 / °C"} | 保留小数点后一位,正常范围-40-150°C,设备端获取不到数据的异常值为32767 | | 0 |
|
|
||||||
| air_conditioner | 机场空调工作状态信息 | struct | | | r | 0 |
|
|
||||||
| »air_conditioner_state | 机场空调状态 | enum_int | {"0":"空闲模式(无制冷、制热、除湿等)","1":"制冷模式","2":"制热模式","3":"除湿模式","4":"制冷退出模式","5":"制热退出模式","6":"除湿退出模式","7":"制冷准备模式","8":"制热准备模式","9":"除湿准备模式"} | 机场空调工作状态信息,空调仅存在一种工作模式 | | 0 |
|
|
||||||
| »switch_time | 剩余等待可切换时间 | int | {"unit_name":"秒 / s"} | 模式切换顺序为准备模式、工作(制冷、制热、除湿)模式、退出模式、空闲模式。本属性将上报,可以切换下一个模式指令还需要等待的时间。例如当前机场空调在进入制冷模式后,必须制冷5分钟后才可以退出制冷模式,本属性将上报还需要多久退出制冷模式,为0表示随时可退出 | | 0 |
|
|
||||||
| maintain_status | 保养信息 | struct | | | r | 0 |
|
|
||||||
| »maintain_status_array | 保养信息数组 | array | {"size": -, "item_type": struct} | | | 0 |
|
|
||||||
| »»state | 保养状态 | enum_int | {"0":"无保养","1":"有保养"} | | | 0 |
|
|
||||||
| »»last_maintain_type | 上一次保养类型 | enum_int | {"0":"无保养","17":"机场常规保养","18":"机场深度保养"} | | | 0 |
|
|
||||||
| »»last_maintain_time | 上一次保养时间 | date | {"unit_name":"秒 / s"} | | | 0 |
|
|
||||||
| »»last_maintain_work_sorties | 上一次保养时作业架次 | int | {"max":"2147483647","min":"0","step":"1"} | | | 0 |
|
|
||||||
| position_state | 搜星状态 | struct | | | r | 0 |
|
|
||||||
| »is_calibration | 是否标定 | enum_int | {"0":"未标定","1":"已标定"} | | | 0 |
|
|
||||||
| »is_fixed | 是否收敛 | enum_int | {"0":"未开始","1":"收敛中","2":"收敛成功","3":"收敛失败"} | | | 0 |
|
|
||||||
| »quality | 搜星档位 | enum_int | {"1":"1档","2":"2档","3":"3档","4":"4档","5":"5档","10":"RTK fixed"} | | | 0 |
|
|
||||||
| »gps_number | GPS 搜星数量 | int | | | | 0 |
|
|
||||||
| »rtk_number | RTK 搜星数量 | int | | | | 0 |
|
|
||||||
| emergency_stop_state | 紧急停止按钮状态 | enum_int | {"0":"关闭","1":"开启"} | | r | 0 |
|
|
||||||
| drone_charge_state | 飞行器充电状态 | struct | | 飞行器充电状态 | r | 0 |
|
|
||||||
| »capacity_percent | 电量百分比 | int | {"max":"100","min":"0"} | | | 0 |
|
|
||||||
| »state | 充电状态 | enum_int | {"0":"空闲","1":"充电中"} | | | 0 |
|
|
||||||
| backup_battery | 机场备用电池信息 | struct | | | r | 0 |
|
|
||||||
| »switch | 备用电池开关 | enum_int | {"0":"关闭","1":"开启"} | | | 0 |
|
|
||||||
| »voltage | 备用电池电压 | int | {"desc":"备用电池关闭时电压为0","max":"30000","min":"0","step":"1","unit_name":"毫伏 / mV"} | | | 0 |
|
|
||||||
| »temperature | 备用电池温度 | float | {"step":"0.1","unit_name":"摄氏度 / °C"} | 保留小数点后一位 | | 0 |
|
|
||||||
| alarm_state | 机场声光报警状态 | enum_int | {"0":"关闭","1":"开启"} | | r | 0 |
|
|
||||||
| battery_store_mode | 电池运行模式 | enum_int | {"1":"计划模式","2":"待命模式"} | 计划模式适合规律作业场景,无任务时电池电量保持在55%~60%,电池寿命较长。待命模式适合应急作业场景,无任务时电池电量保持在90%~95%,电池寿命较短。 | r | 0 |
|
|
||||||
| activation_time | 机场激活时间(unix 时间戳) | int | {"unit_name":"秒 / s"} | | r | 0 |
|
|
||||||
| height | 椭球高度 | double | {"unit_name":"米 / m"} | | r | 0 |
|
|
||||||
| alternate_land_point | 备降点 | struct | | | r | 0 |
|
|
||||||
| »longitude | 经度 | float | {} | | | 0 |
|
|
||||||
| »latitude | 纬度 | float | {} | | | 0 |
|
|
||||||
| »safe_land_height | 安全高度(备降转移高) | float | {} | | | 0 |
|
|
||||||
| »is_configured | 是否设置备降点 | enum_int | {"0":"未设置","1":"已设置"} | | | 0 |
|
|
||||||
| »height | 椭球高度 | float | | | | 0 |
|
|
||||||
| compatible_status | 固件一致性 | enum_int | {"0":"不需要一致性升级","1":"需要一致性升级"} | 一致性升级:指飞行器某些模块的固件版本与系统匹配版本不一致,需要进行升级。常见的情况例如:飞行器与遥控器已经升级至最新版本,但替换电池时发现电池未升级,此时一致性升级将被提示。普通升级:开发者将飞行器所有模块升级至指定固件版本。 | r | 1 |
|
|
||||||
| acc_time | 机场累计运行时长 | int | {"unit_name":"秒 / s"} | | r | 1 |
|
|
||||||
| first_power_on | 首次上电时间 | int | {"unit_name":"毫秒 / ms"} | | r | 0 |
|
|
||||||
| storage | 存储容量 | struct | | | r | 0 |
|
|
||||||
| »total | 总容量 | int | {"unit_name":"千字节 / KB"} | | | 0 |
|
|
||||||
| »used | 已使用容量 | int | {"unit_name":"千字节 / KB"} | | | 0 |
|
|
||||||
| working_current | 工作电流 | float | {"unit_name":"毫安 / mA"} | | r | 0 |
|
|
||||||
| working_voltage | 工作电压 | int | {"unit_name":"毫伏 / mV"} | | r | 0 |
|
|
||||||
| humidity | 舱内湿度 | float | {"max":"100","min":"0","step":"0.1","unit_name":"相对湿度 / %RH"} | | r | 0 |
|
|
||||||
| temperature | 舱内温度 | float | {"unit_name":"摄氏度 / °C"} | | r | 0 |
|
|
||||||
| environment_temperature | 环境温度 | float | {"unit_name":"摄氏度 / °C"} | | r | 0 |
|
|
||||||
| wind_speed | 风速 | float | {"unit_name":"米每秒 / m/s"} | | r | 0 |
|
|
||||||
| rainfall | 降雨量 | enum_int | {"0":"无雨","1":"小雨","2":"中雨","3":"大雨"} | | r | 0 |
|
|
||||||
| live_capacity | 网关设备直播能力 | struct | | | r | 1 |
|
|
||||||
| »available_video_number | 可选择推流的码流数量 | int | | | | 0 |
|
|
||||||
| »coexist_video_number_max | 可同时推流的最大码流数量 | int | | | | 0 |
|
|
||||||
| »device_list | 可选择的视频设备源 | array | {"size": -, "item_type": struct} | 可选择的视频设备源(设备层,比如飞行器) | | 0 |
|
|
||||||
| »»sn | 飞行器等视频源设备序列号(SN) | text | | | | 0 |
|
|
||||||
| »»available_video_number | 该序列号设备可以被选择推流的码流数 | int | | | | 0 |
|
|
||||||
| »»coexist_video_number_max | 该序列号设备可以同时被推流的码流数 | int | | | | 0 |
|
|
||||||
| »»camera_list | 该序列号设备上的相机列表 | array | {"size": -, "item_type": struct} | | | 0 |
|
|
||||||
| »»»camera_index | 相机索引 | text | | 使用 *{type-subtype-gimbalindex}* 的格式 | | 0 |
|
|
||||||
| »»»available_video_number | 该相机级别的视频源可以被选择推流的码流数 | int | | | | 0 |
|
|
||||||
| »»»coexist_video_number_max | 该相机级别的视频源可以同时被推流的码流数 | int | | | | 0 |
|
|
||||||
| »»»video_list | 该相机级别的视频源可以选择的码流列表 | array | {"size": -, "item_type": struct} | | | 0 |
|
|
||||||
| »»»»video_index | 该相机级别的视频源可以选择的码流索引 | text | | | | 0 |
|
|
||||||
| »»»»video_type | 该相机级别的视频源可以选择的码流类型 | text | | | | 0 |
|
|
||||||
| »»»»switchable_video_types | 该视频流支持切换的视频镜头类型 | array | {"size": -, "item_type": text} | | | 0 |
|
|
||||||
| live_status | 网关当前整体直播状态推送 | array | {"size": -, "item_type": struct} | | r | 1 |
|
|
||||||
| »video_id | 直播码流标识符 | text | | 某路在推视频码流的标识符,格式为 *{sn}/{camera_index}/{video_index}*。其中 *{sn}* 为视频源设备序列号。*{camera_index}* 为相机索引,使用 *{type-subtype-gimbalindex}* 的格式。*{video_index}* 为该相机级别的视频源可以选择的码流索引。 | | 0 |
|
|
||||||
| »video_type | 视频类型 | text | {"length":"24"} | 表明视频镜头的类型,如normal/wide/zoom/infrared等 | | 0 |
|
|
||||||
| »video_quality | 直播码流的质量 | enum_int | {"0":"自适应","1":"流畅","2":"标清","3":"高清","4":"超清"} | | | 0 |
|
|
||||||
| »status | 直播状态 | enum_int | {"0":"未直播","1":"在直播"} | | | 0 |
|
|
||||||
| »error_status | 错误码 | int | {"length":6} | | | 0 |
|
|
||||||
| wireless_link | 图传链路 | struct | | | r | 0 |
|
|
||||||
| »dongle_number | 飞行器上 Dongle 数量 | int | | | | 0 |
|
|
||||||
| »4g_link_state | 4G 链路连接状态 | enum_int | {"0":"断开","1":"连接"} | | | 0 |
|
|
||||||
| »sdr_link_state | SDR 链路连接状态 | enum_int | {"0":"断开","1":"连接"} | | | 0 |
|
|
||||||
| »link_workmode | 机场的图传链路模式 | enum_int | {"0":"SDR 模式","1":"4G 融合模式"} | | | 0 |
|
|
||||||
| »sdr_quality | SDR 信号质量 | int | {"max":"5","min":"0","step":"1"} | | | 0 |
|
|
||||||
| »4g_quality | 总体 4G 信号质量 | int | {"max":"5","min":"0","step":"1"} | | | 0 |
|
|
||||||
| »4g_uav_quality | 天端 4G 信号质量 | int | {"max":"5","min":"0","step":"1"} | 飞行器端与 4G 服务器之间的信号质量 | | 0 |
|
|
||||||
| »4g_gnd_quality | 地端 4G 信号质量 | int | {"max":"5","min":"0","step":"1"} | 地面端(如遥控器、DJI Dock等)与 4G 服务器之间的信号质量 | | 0 |
|
|
||||||
| »sdr_freq_band | SDR 频段 | float | | | | 0 |
|
|
||||||
| »4g_freq_band | 4G 频段 | float | | | | 0 |
|
|
||||||
| media_file_detail | 媒体文件上传细节 | struct | | | r | 0 |
|
|
||||||
| »remain_upload | 待上传数量 | int | | | | 0 |
|
|
||||||
| job_number | 机场累计作业次数 | int | {"unit_name":"次 / count"} | | r | 0 |
|
|
||||||
| drone_in_dock | 飞行器是否在舱 | enum_int | {"0":"舱外","1":"舱内"} | | r | 0 |
|
|
||||||
| network_state | 网络状态 | struct | | | r | 0 |
|
|
||||||
| »type | 网络类型 | enum_int | {"1":"4G","2":"以太网"} | | | 0 |
|
|
||||||
| »quality | 网络质量 | enum_int | {"0":"无信号","1":"差","2":"较差","3":"一般","4":"较好","5":"好"} | | | 0 |
|
|
||||||
| »rate | 网络速率 | float | {"unit_name":"千字节每秒 / KB/s"} | | | 0 |
|
|
||||||
| supplement_light_state | 补光灯状态 | enum_int | {"0":"关闭","1":"打开"} | | r | 0 |
|
|
||||||
| cover_state | 舱盖状态 | enum_int | {"0":"关闭","1":"打开","2":"半开","3":"舱盖状态异常"} | | r | 0 |
|
|
||||||
| sub_device | 子设备状态 | struct | | | r | 0 |
|
|
||||||
| »device_sn | 子设备序列号(SN) | text | | | | 0 |
|
|
||||||
| »device_model_key | 子设备枚举值 | text | | 格式为 *{domain-type-subtype}* | | 0 |
|
|
||||||
| »device_online_status | 机场停机坪上的飞行器开机状态 | enum_int | {"0":"关机","1":"开机"} | | | 0 |
|
|
||||||
| »device_paired | 机场停机坪上的飞行器是否与机场对频 | enum_int | {"0":"未对频","1":"已对频"} | | | 0 |
|
|
||||||
| flighttask_step_code | 机场任务状态 | enum_int | {"0":"作业准备中","1":"飞行作业中","2":"作业后状态恢复","3":"自定义飞行区更新中","4":"地形障碍物更新中","5":"任务空闲","255":"飞行器异常","256":"未知状态"} | | r | 0 |
|
|
||||||
| mode_code | 机场状态 | enum_int | {"0":"空闲中","1":"现场调试","2":"远程调试","3":"固件升级中","4":"作业中"} | | r | 0 |
|
|
||||||
| firmware_upgrade_status | 固件升级状态 | enum_int | {"0":"未升级","1":"升级中"} | | r | 1 |
|
|
||||||
| firmware_version | 固件版本 | text | {"length":"64"} | | r | 1 |
|
|
||||||
| latitude | 纬度 | double | {"max":"90","min":"-90","step":"0.01"} | | r | 0 |
|
|
||||||
| longitude | 经度 | double | {"max":"180","min":"-180","step":"0.01"} | 网关设备的经度 | r | |
|
|
||||||
|
|
||||||
```json
|
|
||||||
{
|
|
||||||
"bid": "939bf66d-eb0a-4804-baad-7cbc4e175253",
|
|
||||||
"data": {
|
|
||||||
"drc_state": 0,
|
|
||||||
"flighttask_prepare_capacity": 1,
|
|
||||||
"flighttask_step_code": 1,
|
|
||||||
"media_file_detail": { "remain_upload": 0 },
|
|
||||||
"sdr": { "down_quality": 100, "frequency_band": 2.4, "up_quality": 100 },
|
|
||||||
"user_experience_improvement": 3,
|
|
||||||
"wireless_link": {
|
|
||||||
"4g_freq_band": 5.8,
|
|
||||||
"4g_gnd_quality": 5,
|
|
||||||
"4g_link_state": 1,
|
|
||||||
"4g_quality": 5,
|
|
||||||
"4g_uav_quality": 5,
|
|
||||||
"dongle_number": 1,
|
|
||||||
"link_workmode": 1,
|
|
||||||
"sdr_freq_band": 5.8,
|
|
||||||
"sdr_link_state": 1,
|
|
||||||
"sdr_quality": 5
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"tid": "795e35f0-109c-4ff5-bd83-f9a7ceb8e2c6",
|
|
||||||
"timestamp": 1735466829704,
|
|
||||||
"gateway": "7CTDM6F00B744S"
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
```json
|
|
||||||
{
|
|
||||||
"tid": "3c2afb04-e637-4b16-8cd0-c15094527398",
|
|
||||||
"bid": "933bac6c-338e-4ecd-90b9-951308c439e0",
|
|
||||||
"timestamp": 1735466829710,
|
|
||||||
"data": {
|
|
||||||
"network_state": { "type": 2, "quality": 0, "rate": 32 },
|
|
||||||
"drone_charge_state": { "state": 0, "capacity_percent": 72 },
|
|
||||||
"drone_in_dock": 0,
|
|
||||||
"rainfall": 0,
|
|
||||||
"wind_speed": 0,
|
|
||||||
"environment_temperature": 7.1,
|
|
||||||
"temperature": 6.6,
|
|
||||||
"humidity": 45,
|
|
||||||
"heading": -72.980140686035156,
|
|
||||||
"home_position_is_valid": 1,
|
|
||||||
"latitude": 39.10260381347603,
|
|
||||||
"longitude": 117.71197297315571,
|
|
||||||
"height": 5.8588995933532715,
|
|
||||||
"alternate_land_point": {
|
|
||||||
"latitude": 39.102598739909752,
|
|
||||||
"longitude": 117.71198964942272,
|
|
||||||
"height": 0,
|
|
||||||
"safe_land_height": 30,
|
|
||||||
"is_configured": 1
|
|
||||||
},
|
|
||||||
"first_power_on": 1631945855969,
|
|
||||||
"position_state": {
|
|
||||||
"is_calibration": 1,
|
|
||||||
"is_fixed": 2,
|
|
||||||
"quality": 5,
|
|
||||||
"gps_number": 7,
|
|
||||||
"rtk_number": 36
|
|
||||||
},
|
|
||||||
"storage": { "total": 79981124, "used": 69124 },
|
|
||||||
"mode_code": 4,
|
|
||||||
"cover_state": 0,
|
|
||||||
"silent_mode": 1,
|
|
||||||
"supplement_light_state": 0,
|
|
||||||
"emergency_stop_state": 0,
|
|
||||||
"air_conditioner": { "air_conditioner_state": 0, "switch_time": 0 },
|
|
||||||
"battery_store_mode": 2,
|
|
||||||
"alarm_state": 0,
|
|
||||||
"putter_state": 0,
|
|
||||||
"sub_device": {
|
|
||||||
"device_sn": "1581F6QAD249M00GCRF5",
|
|
||||||
"device_online_status": 1,
|
|
||||||
"device_paired": 1
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"gateway": "7CTDM6F00B744S"
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
```json
|
|
||||||
{
|
|
||||||
"tid": "f219d8d5-2c57-4a0e-b9a9-d72c77ea7dbe",
|
|
||||||
"bid": "f188e509-41d3-4e70-bb63-938b15193387",
|
|
||||||
"timestamp": 1735466829726,
|
|
||||||
"data": {
|
|
||||||
"job_number": 48,
|
|
||||||
"acc_time": 618911,
|
|
||||||
"activation_time": 1734482524,
|
|
||||||
"maintain_status": {
|
|
||||||
"maintain_status_array": [
|
|
||||||
{
|
|
||||||
"state": 0,
|
|
||||||
"last_maintain_type": 17,
|
|
||||||
"last_maintain_time": 0,
|
|
||||||
"last_maintain_work_sorties": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"state": 0,
|
|
||||||
"last_maintain_type": 18,
|
|
||||||
"last_maintain_time": 0,
|
|
||||||
"last_maintain_work_sorties": 0
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"electric_supply_voltage": 32767,
|
|
||||||
"working_voltage": 27742,
|
|
||||||
"working_current": 0,
|
|
||||||
"backup_battery": { "voltage": 13601, "temperature": 12.4, "switch": 1 },
|
|
||||||
"drone_battery_maintenance_info": {
|
|
||||||
"maintenance_state": 0,
|
|
||||||
"maintenance_time_left": 0,
|
|
||||||
"heat_state": 0,
|
|
||||||
"batteries": [
|
|
||||||
{
|
|
||||||
"index": 0,
|
|
||||||
"capacity_percent": 72,
|
|
||||||
"voltage": 15366,
|
|
||||||
"temperature": 24.9
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"gateway": "7CTDM6F00B744S"
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
```json
|
|
||||||
{
|
|
||||||
"bid": "883e903f-1ff7-4015-8c5c-a0c0c267aff5",
|
|
||||||
"data": {
|
|
||||||
"rtcm_info": {
|
|
||||||
"host": "120.253.226.97",
|
|
||||||
"mount_point": "RTCM33_GRCEJ",
|
|
||||||
"port": "8002",
|
|
||||||
"rtcm_device_type": 1,
|
|
||||||
"source_type": 3
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"need_reply": 1,
|
|
||||||
"tid": "3116ca3e-3335-4467-8b8e-c2b028fce07f",
|
|
||||||
"timestamp": 1735466831441,
|
|
||||||
"gateway": "7CTDM6F00B744S"
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
飞机:
|
|
||||||
|
|
||||||
| best_link_gateway | 飞行器图传连接质量最好的网关SN | text | | 蛙跳任务场景下,当飞行器对频了两个机场后,推送连接最好的机场SN | r | 1 |
|
|
||||||
| --- | --- | --- | --- | --- | --- | --- |
|
|
||||||
| wireless_link_topo | 图传连接拓扑 | struct | | | r | 1 |
|
|
||||||
| »secret_code | 加密编码 | array | {"size": 28, "item_type": int} | | | 0 |
|
|
||||||
| »center_node | 飞行器对频信息 | struct | | | | 0 |
|
|
||||||
| »»sdr_id | 扰码信息 | int | | | | 0 |
|
|
||||||
| »»sn | 设备sn | text | | | | 0 |
|
|
||||||
| »leaf_nodes | 当前连接的机场或遥控器对频信息 | array | {"size": -, "item_type": struct} | | | 0 |
|
|
||||||
| »»sdr_id | 扰码信息 | int | | | | 0 |
|
|
||||||
| »»sn | 设备sn | text | | | | 0 |
|
|
||||||
| »»control_source_index | 控制源序号 | int | {"max":"2","min":"1","step":"1","unit_name":"无 / "} | | | 0 |
|
|
||||||
| cameras | 飞行器相机信息 | array | {"size": -, "item_type": struct} | | r | 0 |
|
|
||||||
| »remain_photo_num | 剩余拍照张数 | int | | 剩余拍照张数 | | 0 |
|
|
||||||
| »remain_record_duration | 剩余录像时间 | int | {"unit_name":"秒 / s"} | 剩余录像时间 | | 0 |
|
|
||||||
| »record_time | 视频录制时长 | int | {"unit_name":"秒 / s"} | 视频录制时长 | | 0 |
|
|
||||||
| »payload_index | 负载编号 | text | | 负载编号,相机枚举值。非标准的 device_mode_key,格式为 {type-subtype-gimbalindex},可以参考[**产品支持open in new window**](https://developer.dji.com/doc/cloud-api-tutorial/cn/overview/product-support.html) | | 0 |
|
|
||||||
| »camera_mode | 相机模式 | enum_int | {"0":"拍照","1":"录像","2":"智能低光","3":"全景拍照"} | 相机模式 | | 0 |
|
|
||||||
| »photo_state | 拍照状态 | enum_int | {"0":"空闲","1":"拍照中"} | 拍照状态 | | 0 |
|
|
||||||
| »screen_split_enable | 分屏是否使能 | bool | {"0":"分屏使能关闭","1":"分屏使能开启"} | | | 0 |
|
|
||||||
| »recording_state | 录像状态 | enum_int | {"0":"空闲","1":"录像中"} | 录像状态 | | 0 |
|
|
||||||
| »zoom_factor | 变焦倍数 | float | | | | 0 |
|
|
||||||
| »ir_zoom_factor | 红外变焦倍数 | float | | 红外变焦倍数 | | 0 |
|
|
||||||
| »liveview_world_region | 视场角(FOV)在 liveview 中的区域 | struct | | 变焦相机的视场角相对于广角相机或者红外相机的视场角,在 liveview 中会有所不同。坐标原点为镜头左上角。 | | 0 |
|
|
||||||
| »»left | 左上角的 x 轴起始点 | float | | 左上角的 x 轴起始点 | r | 0 |
|
|
||||||
| »»top | 左上角的 y 轴起始点 | float | | 左上角的 y 轴起始点 | r | 0 |
|
|
||||||
| »»right | 右下角的 x 轴起始点 | float | | 右下角的 x 轴起始点 | r | 0 |
|
|
||||||
| »»bottom | 右下角的 y 轴起始点 | float | | 右下角的 y 轴起始点 | r | 0 |
|
|
||||||
| »photo_storage_settings | 照片存储设置集合 | array | {"size": -, "item_type": enum_string} | 取值范围{current, vision, ir} | | 0 |
|
|
||||||
| »video_storage_settings | 视频存储设置集合 | array | {"size": -, "item_type": enum_string} | 取值范围{current, vision, ir} | | 0 |
|
|
||||||
| »wide_exposure_mode | 广角镜头曝光模式 | enum_int | {"1":"自动","2":"快门优先曝光","3":"光圈优先曝光","4":"手动曝光"} | 当前配置的广角镜头曝光模式 | | 0 |
|
|
||||||
| »wide_iso | 广角镜头感光度 | enum_int | {"0":"Auto","1":"Auto(High Sense)","2":"50","3":"100","4":"200","5":"400","6":"800","7":"1600","8":"3200","9":"6400","10":"12800","11":"25600","255":"FIXED"} | 当前配置的广角镜头感光度 | | 0 |
|
|
||||||
| »wide_shutter_speed | 广角镜头快门速度 | enum_int | {"0":"1/8000 s","1":"1/6400 s","2":"1/6000 s","3":"1/5000 s","4":"1/4000 s","5":"1/3200 s","6":"1/3000 s","7":"1/2500 s","8":"1/2000 s","9":"1/1600 s","10":"1/1500 s","11":"1/1250 s","12":"1/1000 s","13":"1/800 s","14":"1/725 s","15":"1/640 s","16":"1/500 s","17":"1/400 s","18":"1/350 s","19":"1/320 s","20":"1/250 s","21":"1/240 s","22":"1/200 s","23":"1/180 s","24":"1/160 s","25":"1/125 s","26":"1/120 s","27":"1/100 s","28":"1/90 s","29":"1/80 s","30":"1/60 s","31":"1/50 s","32":"1/40 s","33":"1/30 s","34":"1/25 s","35":"1/20 s","36":"1/15 s","37":"1/12.5 s","38":"1/10 s","39":"1/8 s","40":"1/6.25 s","41":"1/5 s","42":"1/4 s","43":"1/3 s","44":"1/2.5 s","45":"1/2 s","46":"1/1.67 s","47":"1/1.25 s","48":"1.0 s","49":"1.3 s","50":"1.6 s","51":"2.0 s","52":"2.5 s","53":"3.0 s","54":"3.2 s","55":"4.0 s","56":"5.0 s","57":"6.0 s","58":"7.0 s","59":"8.0 s","65534":"Auto"} | 当前配置的广角镜头快门速度 | | 0 |
|
|
||||||
| »wide_exposure_value | 广角镜头曝光值 | enum_int | {"1":"-5.0EV","2":"-4.7EV","3":"-4.3EV","4":"-4.0EV","5":"-3.7EV","6":"-3.3EV","7":"-3.0EV","8":"-2.7EV","9":"-2.3EV","10":"-2.0EV","11":"-1.7EV","12":"-1.3EV","13":"-1.0EV","14":"-0.7EV","15":"-0.3EV","16":"0EV","17":"0.3EV","18":"0.7EV","19":"1.0EV","20":"1.3EV","21":"1.7EV","22":"2.0EV","23":"2.3EV","24":"2.7EV","25":"3.0EV","26":"3.3EV","27":"3.7EV","28":"4.0EV","29":"4.3EV","30":"4.7EV","31":"5.0EV","255":"FIXED"} | 当前配置的广角镜头曝光值 | | 0 |
|
|
||||||
| »zoom_exposure_mode | 变焦镜头曝光模式 | enum_int | {"1":"自动","2":"快门优先曝光","3":"光圈优先曝光","4":"手动曝光"} | 当前配置的变焦镜头曝光模式 | | 0 |
|
|
||||||
| »zoom_iso | 变焦镜头感光度 | enum_int | {"0":"Auto","1":"Auto(High Sense)","2":"50","3":"100","4":"200","5":"400","6":"800","7":"1600","8":"3200","9":"6400","10":"12800","11":"25600","255":"FIXED"} | 当前配置的变焦镜头感光度 | | 0 |
|
|
||||||
| »zoom_shutter_speed | 变焦镜头快门速度 | enum_int | {"0":"1/8000 s","1":"1/6400 s","2":"1/6000 s","3":"1/5000 s","4":"1/4000 s","5":"1/3200 s","6":"1/3000 s","7":"1/2500 s","8":"1/2000 s","9":"1/1600 s","10":"1/1500 s","11":"1/1250 s","12":"1/1000 s","13":"1/800 s","14":"1/725 s","15":"1/640 s","16":"1/500 s","17":"1/400 s","18":"1/350 s","19":"1/320 s","20":"1/250 s","21":"1/240 s","22":"1/200 s","23":"1/180 s","24":"1/160 s","25":"1/125 s","26":"1/120 s","27":"1/100 s","28":"1/90 s","29":"1/80 s","30":"1/60 s","31":"1/50 s","32":"1/40 s","33":"1/30 s","34":"1/25 s","35":"1/20 s","36":"1/15 s","37":"1/12.5 s","38":"1/10 s","39":"1/8 s","40":"1/6.25 s","41":"1/5 s","42":"1/4 s","43":"1/3 s","44":"1/2.5 s","45":"1/2 s","46":"1/1.67 s","47":"1/1.25 s","48":"1.0 s","49":"1.3 s","50":"1.6 s","51":"2.0 s","52":"2.5 s","53":"3.0 s","54":"3.2 s","55":"4.0 s","56":"5.0 s","57":"6.0 s","58":"7.0 s","59":"8.0 s","65534":"Auto"} | 当前配置的变焦镜头快门速度 | | 0 |
|
|
||||||
| »zoom_exposure_value | 变焦镜头曝光值 | enum_int | {"1":"-5.0EV","2":"-4.7EV","3":"-4.3EV","4":"-4.0EV","5":"-3.7EV","6":"-3.3EV","7":"-3.0EV","8":"-2.7EV","9":"-2.3EV","10":"-2.0EV","11":"-1.7EV","12":"-1.3EV","13":"-1.0EV","14":"-0.7EV","15":"-0.3EV","16":"0EV","17":"0.3EV","18":"0.7EV","19":"1.0EV","20":"1.3EV","21":"1.7EV","22":"2.0EV","23":"2.3EV","24":"2.7EV","25":"3.0EV","26":"3.3EV","27":"3.7EV","28":"4.0EV","29":"4.3EV","30":"4.7EV","31":"5.0EV","255":"FIXED"} | 当前配置的变焦镜头曝光值 | | 0 |
|
|
||||||
| »zoom_focus_mode | 变焦镜头对焦模式 | enum_int | {"0":"MF","1":"AFS","2":"AFC"} | | | 0 |
|
|
||||||
| »zoom_focus_value | 变焦镜头对焦值 | int | | | | 0 |
|
|
||||||
| »zoom_max_focus_value | 变焦镜头最大对焦值 | int | | | | 0 |
|
|
||||||
| »zoom_min_focus_value | 变焦镜头最小对焦值 | int | | | | 0 |
|
|
||||||
| »zoom_calibrate_farthest_focus_value | 变焦镜头标定的最远对焦值 | int | | 最清晰的最远位置对焦值 | | 0 |
|
|
||||||
| »zoom_calibrate_nearest_focus_value | 变焦镜头标定的最近对焦值 | int | | 最清晰的最近位置对焦值 | | 0 |
|
|
||||||
| »zoom_focus_state | 变焦镜头对焦状态 | enum_int | {"0":"空闲","1":"对焦中","2":"对焦成功","3":"对焦失败"} | | | 0 |
|
|
||||||
| »ir_metering_mode | 红外测温模式 | enum_int | {"0":"关闭测温","1":"点测温","2":"区域测温"} | | | 0 |
|
|
||||||
| »ir_metering_point | 红外测温点 | struct | | 红外测温点相关信息 | | 0 |
|
|
||||||
| »»x | 测温点坐标 x | double | {"max":1,"min":0} | 以镜头的左上角为坐标中心点,水平方向为 x | r | 0 |
|
|
||||||
| »»y | 测温点坐标 y | double | {"max":1,"min":0} | 以镜头的左上角为坐标中心点,竖直方向为 y | r | 0 |
|
|
||||||
| »»temperature | 测温点的温度 | double | | | r | 0 |
|
|
||||||
| »ir_metering_area | 红外测温区域 | struct | | 红外测温区域相关信息 | | 0 |
|
|
||||||
| »»x | 测温区域左上角点坐标 x | double | {"max":1,"min":0} | 以镜头的左上角为坐标中心点,水平方向为 x | r | 0 |
|
|
||||||
| »»y | 测温区域左上角点坐标 y | double | {"max":1,"min":0} | 以镜头的左上角为坐标中心点,竖直方向为 y | r | 0 |
|
|
||||||
| »»width | 测温区域宽度 | double | {"max":1,"min":0} | 测温区域宽度 | r | 0 |
|
|
||||||
| »»height | 测温区域高度 | double | {"max":1,"min":0} | 测温区域高度 | r | 0 |
|
|
||||||
| »»aver_temperature | 测温区域平均温度 | double | | 测温区域平均温度 | r | 0 |
|
|
||||||
| »»min_temperature_point | 测温区域最低温度点 | struct | | 测温区域最低温度点相关信息 | r | 0 |
|
|
||||||
| »»»x | 最低温度点坐标 x | double | {"max":1,"min":0} | 以镜头的左上角为坐标中心点,水平方向为 x | r | 0 |
|
|
||||||
| »»»y | 最低温度点坐标 y | double | {"max":1,"min":0} | 以镜头的左上角为坐标中心点,竖直方向为 y | r | 0 |
|
|
||||||
| »»»temperature | 最低温度点的温度 | double | | 最低温度点的温度 | r | 0 |
|
|
||||||
| »»max_temperature_point | 测温区域最高温度点 | struct | | 测温区域最高温度点相关信息 | r | 0 |
|
|
||||||
| »»»x | 最高温度点坐标 x | double | {"max":1,"min":0} | 以镜头的左上角为坐标中心点,水平方向为 x | r | 0 |
|
|
||||||
| »»»y | 最高温度点坐标 y | double | {"max":1,"min":0} | 以镜头的左上角为坐标中心点,竖直方向为 y | r | 0 |
|
|
||||||
| »»»temperature | 最高温度点的温度 | double | | 最高温度点的温度 | r | 0 |
|
|
||||||
| flysafe_database_version | 飞行安全数据库版本 | text | {"length":"64"} | | r | 1 |
|
|
||||||
| offline_map_enable | 离线地图开关 | bool | {"0":"关闭","1":"开启"} | 当离线地图关闭后,离线地图同步不再进行自动同步 | r | 1 |
|
|
||||||
| dongle_infos | 4G Dongle信息 | array | {"size": -, "item_type": struct} | | r | 1 |
|
|
||||||
| »imei | dongle imei | text | | Dongle 的唯一识别标志 | r | 0 |
|
|
||||||
| »dongle_type | Dongle 类型 | enum_int | {"6":"旧 Dongle","10":"支持 eSIM 的新 Dongle"} | Dongle 类型 | r | 0 |
|
|
||||||
| »eid | dongle eid | text | | eSIM 的唯一识别标志,用于公众号查询套餐、购买服务 | r | 0 |
|
|
||||||
| »esim_activate_state | eSIM 激活状态 | enum_int | {"0":"未激活","1":"已激活"} | 需要激活才能使用 | r | 0 |
|
|
||||||
| »sim_card_state | SIM 卡状态 | enum_int | {"0":"未插入","1":"已插入"} | Dongle 中实体 SIM 卡的插入状态 | r | 0 |
|
|
||||||
| »sim_slot | SIM 卡槽使能状态 | enum_int | {"0":"未知","1":"实体 SIM 卡","2":"eSIM"} | 标识 Dongle 当前正在使用的 SIM 卡槽 | r | 0 |
|
|
||||||
| »esim_infos | eSIM 信息 | array | {"size": -, "item_type": struct} | | r | 0 |
|
|
||||||
| »»telecom_operator | 支持的运营商 | enum_int | {"0":"未知","1":"移动","2":"联通","3":"电信"} | eSIM 支持的运营商 | r | 0 |
|
|
||||||
| »»enabled | eSIM 使能状态 | bool | {"false":"未使用","true":"使用中"} | 同时刻只能有一个 eSIM 是使能的 | r | 0 |
|
|
||||||
| »»iccid | sim iccid | text | | SIM 卡的唯一识别标志,可以用于实体 SIM 卡的套餐购买 | r | 0 |
|
|
||||||
| »sim_info | SIM 卡信息 | struct | | 可插入 Dongle 的实体 SIM 卡信息 | r | 0 |
|
|
||||||
| »»telecom_operator | 支持的运营商 | enum_int | {"0":"未知","1":"移动","2":"联通","3":"电信"} | SIM 卡支持的运营商 | r | 0 |
|
|
||||||
| »»sim_type | SIM 卡类型 | enum_int | {"0":"未知","1":"其他普通 SIM 卡","2":"三网卡"} | 实体 SIM 卡的类型 | r | 0 |
|
|
||||||
| »»iccid | sim iccid | text | | SIM 卡的唯一识别标志,可以用于实体 SIM 卡的套餐购买 | r | 0 |
|
|
||||||
| current_rth_mode | 返航高度模式当前值 | enum_int | {"0":"智能高度","1":"设定高度"} | 大疆机场当前实际使用的返航高度模式 | r | 1 |
|
|
||||||
| rth_mode | 返航高度模式设置值 | enum_int | {"0":"智能高度","1":"设定高度"} | 智能返航模式下,飞行器将自动规划最佳返航高度。大疆机场当前不支持设置返航高度模式,只能选择'设定高度'模式。当环境,光线不满足视觉系统要求时(譬如傍晚阳光直射、夜间弱光无光),飞行器将使用您设定的返航高度进行直线返航 | r | 1 |
|
|
||||||
| obstacle_avoidance | 飞行器避障状态 | struct | | | rw | 0 |
|
|
||||||
| »horizon | 水平避障状态 | enum_int | {"0":"关闭","1":"开启"} | | | 0 |
|
|
||||||
| »upside | 上视避障状态 | enum_int | {"0":"关闭","1":"开启"} | | | 0 |
|
|
||||||
| »downside | 下视避障状态 | enum_int | {"0":"关闭","1":"开启"} | | | 0 |
|
|
||||||
| is_near_area_limit | 是否接近限飞区 | enum_int | {"0":"未达到限飞区","1":"接近限飞区"} | | r | 0 |
|
|
||||||
| is_near_height_limit | 是否接近设定的限制高度 | enum_int | {"0":"未达到设定的限制高度","1":"接近设定的限制高度"} | | r | 0 |
|
|
||||||
| height_limit | 飞行器限高 | int | {"max":"1500","min":"20","step":"1","unit_name":"米 / m"} | | rw | 0 |
|
|
||||||
| night_lights_state | 飞行器夜航灯状态 | enum_int | {"0":"关闭","1":"打开"} | | rw | 0 |
|
|
||||||
| activation_time | 飞行器激活时间(unix 时间戳) | int | {"unit_name":"秒 / s"} | | r | 0 |
|
|
||||||
| maintain_status | 保养信息 | struct | | | r | 0 |
|
|
||||||
| »maintain_status_array | 保养信息数组 | array | {"size": -, "item_type": struct} | | | 0 |
|
|
||||||
| »»state | 保养状态 | enum_int | {"0":"无保养","1":"有保养"} | | | 0 |
|
|
||||||
| »»last_maintain_type | 上一次保养类型 | enum_int | {"1":"飞行器基础保养","2":"飞行器常规保养","3":"飞行器深度保养"} | | | 0 |
|
|
||||||
| »»last_maintain_time | 上一次保养时间 | date | {"unit_name":"秒 / s"} | | | 0 |
|
|
||||||
| »»last_maintain_flight_time | 上一次保养时飞行航时 | int | {"unit_name":"小时 / h"} | | | 0 |
|
|
||||||
| »»last_maintain_flight_sorties | 上一次保养时飞行架次 | int | {"max":"2147483647","min":"0","step":"1"} | | | 0 |
|
|
||||||
| total_flight_sorties | 飞行器累计飞行总架次 | int | {"max":"2147483647","min":"0","step":"1"} | | r | 0 |
|
|
||||||
| type_subtype_gimbalindex | 负载编号 | struct | | 与字段 payload_index 保持一致 | r | 0 |
|
|
||||||
| »gimbal_pitch | 云台俯仰轴角度 | double | {"max":"180","min":"-180","step":0.1,"unit_name":"度 / °"} | | | 0 |
|
|
||||||
| »gimbal_roll | 云台横滚轴角度 | double | {"max":"180","min":"-180","step":0.1,"unit_name":"度 / °"} | | | 0 |
|
|
||||||
| »gimbal_yaw | 云台偏航轴角度 | double | {"max":"180","min":"-180","step":0.1,"unit_name":"度 / °"} | | | 0 |
|
|
||||||
| »payload_index | 负载索引,格式为 *{type-subtype-gimbalindex}* | text | | | | 0 |
|
|
||||||
| »zoom_factor | 变焦倍数 | double | | | | 0 |
|
|
||||||
| track_id | 航迹 ID | text | {"length":"64"} | | r | 0 |
|
|
||||||
| position_state | 搜星状态 | struct | | | r | 0 |
|
|
||||||
| »is_fixed | 是否收敛 | enum_int | {"0":"未开始","1":"收敛中","2":"收敛成功","3":"收敛失败"} | | | 0 |
|
|
||||||
| »quality | 搜星档位 | enum_int | {"1":"1档","2":"2档","3":"3档","4":"4档","5":"5档","10":"RTK fixed"} | | | 0 |
|
|
||||||
| »gps_number | GPS 搜星数量 | int | | | | 0 |
|
|
||||||
| »rtk_number | RTK 搜星数量 | int | | | | 0 |
|
|
||||||
| storage | 存储容量 | struct | | kb | r | 0 |
|
|
||||||
| »total | 总容量 | int | {"unit_name":"千字节 / KB"} | | | 0 |
|
|
||||||
| »used | 已使用容量 | int | {"unit_name":"千字节 / KB"} | | | 0 |
|
|
||||||
| battery | 飞行器电池信息 | struct | | | r | 0 |
|
|
||||||
| »capacity_percent | 电池的总剩余电量 | int | {"max":100,"min":0} | | | 0 |
|
|
||||||
| »remain_flight_time | 剩余飞行时间 | int | {"unit_name":"秒 / s"} | | | 0 |
|
|
||||||
| »return_home_power | 返航所需电量百分比 | int | {"max":100,"min":0} | | | 0 |
|
|
||||||
| »landing_power | 强制降落电量百分比 | int | {"max":100,"min":0} | | | 0 |
|
|
||||||
| »batteries | 电池详细信息 | array | {"size": -, "item_type": struct} | | | 0 |
|
|
||||||
| »»capacity_percent | 电池剩余电量 | int | {"max":100,"min":0} | | | 0 |
|
|
||||||
| »»index | 电池序号 | int | {"min":"0"} | | | 0 |
|
|
||||||
| »»sn | 电池序列号(SN) | text | | | | 0 |
|
|
||||||
| »»type | 电池类型 | enum_int | {} | | | 0 |
|
|
||||||
| »»sub_type | 电池子类型 | enum_int | {} | | | 0 |
|
|
||||||
| »»firmware_version | 固件版本 | text | | | | 0 |
|
|
||||||
| »»loop_times | 电池循环次数 | int | | | | 0 |
|
|
||||||
| »»voltage | 电压 | int | {"unit_name":"毫伏 / mV"} | | | 0 |
|
|
||||||
| »»temperature | 温度 | float | {"unit_name":"摄氏度 / °C"} | 保留小数点后一位 | | 0 |
|
|
||||||
| »»high_voltage_storage_days | 高电压存储天数 | int | {"unit_name":"日 / day"} | | | 0 |
|
|
||||||
| total_flight_distance | 飞行器累计飞行总里程 | float | {"unit_name":"米 / m"} | | r | 0 |
|
|
||||||
| total_flight_time | 飞行器累计飞行航时 | int | {"unit_name":"秒 / s"} | | r | 0 |
|
|
||||||
| serious_low_battery_warning_threshold | 严重低电量告警 | int | | 用户设置的电池严重低电量告警百分比 | r | 1 |
|
|
||||||
| low_battery_warning_threshold | 低电量告警 | int | | 用户设置的电池低电量告警百分比 | r | 1 |
|
|
||||||
| control_source | 当前控制源 | text | | 可以为设备,也可以为某个浏览器。设备使用 A/B 表示 A 控,B 控,浏览器以自生成的 uuid 作为标识符 | r | 1 |
|
|
||||||
| wind_direction | 当前风向 | enum_int | {"1":"正北","2":"东北","3":"东","4":"东南","5":"南","6":"西南","7":"西","8":"西北"} | | r | 0 |
|
|
||||||
| wind_speed | 风速 | float | | 风速估计,该风速是通过飞行器姿态推测出的,有一定的误差,仅供参考,不能作为气象数据使用 | r | 0 |
|
|
||||||
| home_distance | 距离 Home 点的距离 | float | | | r | 0 |
|
|
||||||
| home_latitude | Home 点纬度 | float | | | r | 1 |
|
|
||||||
| home_longitude | Home 点经度 | float | | | r | 1 |
|
|
||||||
| attitude_head | 偏航轴角度 | int | | 偏航轴角度与真北角(经线)的角度,0到6点钟方向为正值,6到12点钟方向为负值 | r | 0 |
|
|
||||||
| attitude_roll | 横滚轴角度 | float | | | r | 0 |
|
|
||||||
| attitude_pitch | 俯仰轴角度 | float | | | r | 0 |
|
|
||||||
| elevation | 相对起飞点高度 | float | | | r | 0 |
|
|
||||||
| height | 绝对高度 | float | | 相对地球椭球面高度, 计算:相对起飞点的高度 + 起飞点的椭球高 | r | 0 |
|
|
||||||
| latitude | 当前位置纬度 | float | {"max":"3.4028235E38","min":"-1.4E-45","step":"0.1"} | | r | 0 |
|
|
||||||
| longitude | 当前位置经度 | float | {"max":"3.4028235E38","min":"-1.4E-45","step":"0.1"} | | r | 0 |
|
|
||||||
| vertical_speed | 垂直速度 | float | {"unit_name":"米每秒 / m/s"} | | r | 0 |
|
|
||||||
| horizontal_speed | 水平速度 | float | | | r | 0 |
|
|
||||||
| firmware_upgrade_status | 固件升级状态 | enum_int | {"0":"未升级","1":"升级中"} | | r | 1 |
|
|
||||||
| compatible_status | 固件一致性 | enum_int | {"0":"不需要一致性升级","1":"需要一致性升级"} | 一致性升级:指飞行器某些模块的固件版本与系统匹配版本不一致,需要进行升级。常见的情况例如:飞行器与遥控器已经升级至最新版本,但替换电池时发现电池未升级,此时一致性升级将被提示。普通升级:开发者将飞行器所有模块升级至指定固件版本。 | r | 1 |
|
|
||||||
| firmware_version | 固件版本 | text | {"length":"64"} | | r | 1 |
|
|
||||||
| gear | 档位 | enum_int | {"0":"A","1":"P","2":"NAV","3":"FPV","4":"FARM","5":"S","6":"F","7":"M","8":"G","9":"T"} | | r | 0 |
|
|
||||||
| mode_code_reason | 飞行器进入当前状态的原因 | enum_int | {"0":"无意义","1":"电池电量不足(返航、降落)","2":"电池电压不足(返航、降落)","3":"电压严重过低(返航、降落)","4":"遥控器按键请求(起飞、返航、降落)","5":"App 请求(起飞、返航、降落)","6":"遥控信号丢失(返航、降落、悬停)","7":"导航、SDK 等外部设备触发(起飞、返航、降落)","8":"进入机场限飞区(降落)","9":"虽然触发了返航但是因为距离 Home 点距离太近(降落)","10":"虽然触发了返航但是因为距离 Home 点距离太远(降落)","11":"执行航点任务时请求(起飞)","12":"返航阶段到达 Home 点上方后请求(降落)","13":"飞行器高度下降,距地面 0.7m(二段降落限低)时,继续下降导致(降落)","14":"App、SDK 等设备强制突破限低保护进行(降落)","15":"因为周围有航班经过而请求(返航、降落)","16":"因为高度控制失败请求(返航、降落)","17":"智能低电量返航后进入(降落)","18":"AP控制飞行模式(手动飞行)","19":"硬件异常(返航、降落)","20":"防触地保护结束(降落)","21":"返航取消 (悬停)","22":"返航时遇到障碍物(降落)","23":"机场场景下大风触发(返航)"} | | r | 1 |
|
|
||||||
| commander_flight_height | 指点飞行高度 | float | {"max":3000,"min":2,"step":0.1,"unit_name":"米 / m"} | 相对(机场)起飞点的高度,相对高 ALT | rw | 1 |
|
|
||||||
| commander_flight_mode | 指点飞行模式设置值 | enum_int | {"0":"智能高度飞行","1":"设定高度飞行"} | 指点飞行模式设置值 | rw | 1 |
|
|
||||||
| commander_mode_lost_action | 指点飞行失控动作 | enum_int | {"0":"继续执行指点飞行任务","1":"退出指点飞行任务,执行普通失控行为"} | 执行指点飞行时失控了,选择继续执行完,还是执行普通失控行为 | rw | 1 |
|
|
||||||
| camera_watermark_settings | 相机水印设置 | struct | | 用户对相机拍摄的照片和录像文件进行水印配置, 目前暂不支持直播画面水印 | rw | 1 |
|
|
||||||
| »global_enable | 水印显示全局开关 | enum_int | {"0":"关闭","1":"开启"} | 需要开启全局开关才能显示水印 | rw | 1 |
|
|
||||||
| »drone_type_enable | 机型显示开关 | enum_int | {"0":"关闭","1":"开启"} | | rw | 1 |
|
|
||||||
| »drone_sn_enable | 飞行器序列号显示开关 | enum_int | {"0":"关闭","1":"开启"} | | rw | 1 |
|
|
||||||
| »datetime_enable | 日期时间显示开关 | enum_int | {"0":"关闭","1":"开启"} | 时区默认为当地时区 | rw | 1 |
|
|
||||||
| »gps_enable | 经纬度&海拔高显示开关 | enum_int | {"0":"关闭","1":"开启"} | | rw | 1 |
|
|
||||||
| »user_custom_string_enable | 自定义文案显示开关 | enum_int | {"0":"关闭","1":"开启"} | | rw | 1 |
|
|
||||||
| »user_custom_string | 自定义文案内容 | text | | 最多可显示 250 字节 | rw | 1 |
|
|
||||||
| »layout | 水印在画面中位置 | enum_int | {"0":"左上","1":"左下","2":"右上","3":"右下"} | | rw | 1 |
|
|
||||||
| mode_code | 飞行器状态 | enum_int | {"0":"待机","1":"起飞准备","2":"起飞准备完毕","3":"手动飞行","4":"自动起飞","5":"航线飞行","6":"全景拍照","7":"智能跟随","8":"ADS-B 躲避","9":"自动返航","10":"自动降落","11":"强制降落","12":"三桨叶降落","13":"升级中","14":"未连接","15":"APAS","16":"虚拟摇杆状态","17":"指令飞行","18":"空中 RTK 收敛模式","19":"机场选址中"} | 机场选址指飞行器在空中悬停,为机场选址以及检查 RTK 信号质量 | r | 0 |
|
|
||||||
|
|
||||||
```json
|
|
||||||
{
|
|
||||||
"bid": "f7f2dd20-a08a-4865-9211-f0ced31a798c",
|
|
||||||
"data": {
|
|
||||||
"80-0-0": {
|
|
||||||
"gimbal_pitch": 0,
|
|
||||||
"gimbal_roll": 0,
|
|
||||||
"gimbal_yaw": -72.9804724552571,
|
|
||||||
"payload_index": "80-0-0",
|
|
||||||
"zoom_factor": 0.56782334384858046
|
|
||||||
},
|
|
||||||
"activation_time": 1734637617,
|
|
||||||
"attitude_head": -72.9,
|
|
||||||
"attitude_pitch": -0.4,
|
|
||||||
"attitude_roll": -3,
|
|
||||||
"battery": {
|
|
||||||
"batteries": [
|
|
||||||
{
|
|
||||||
"capacity_percent": 78,
|
|
||||||
"firmware_version": "26.03.00.48",
|
|
||||||
"high_voltage_storage_days": 8,
|
|
||||||
"index": 0,
|
|
||||||
"loop_times": 6,
|
|
||||||
"sn": "6Q7PM4ADA100QQ",
|
|
||||||
"sub_type": 0,
|
|
||||||
"temperature": 23.9,
|
|
||||||
"type": 0,
|
|
||||||
"voltage": 15544
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"capacity_percent": 78,
|
|
||||||
"landing_power": 8,
|
|
||||||
"remain_flight_time": 1553,
|
|
||||||
"return_home_power": 26
|
|
||||||
},
|
|
||||||
"best_link_gateway": "7CTDM6F00B744S",
|
|
||||||
"cameras": [
|
|
||||||
{
|
|
||||||
"camera_mode": 1,
|
|
||||||
"liveview_world_region": {
|
|
||||||
"bottom": 1,
|
|
||||||
"left": 1,
|
|
||||||
"right": 1,
|
|
||||||
"top": 1
|
|
||||||
},
|
|
||||||
"payload_index": "80-0-0",
|
|
||||||
"photo_state": 0,
|
|
||||||
"record_time": 0,
|
|
||||||
"recording_state": 0,
|
|
||||||
"remain_photo_num": 0,
|
|
||||||
"remain_record_duration": 29207,
|
|
||||||
"wide_calibrate_farthest_focus_value": 35,
|
|
||||||
"wide_calibrate_nearest_focus_value": 84,
|
|
||||||
"wide_exposure_mode": 1,
|
|
||||||
"wide_exposure_value": 16,
|
|
||||||
"wide_focus_mode": 2,
|
|
||||||
"wide_focus_state": 1,
|
|
||||||
"wide_focus_value": 26,
|
|
||||||
"wide_iso": 9,
|
|
||||||
"wide_max_focus_value": 84,
|
|
||||||
"wide_min_focus_value": 35,
|
|
||||||
"wide_shutter_speed": 33,
|
|
||||||
"zoom_calibrate_farthest_focus_value": 35,
|
|
||||||
"zoom_calibrate_nearest_focus_value": 84,
|
|
||||||
"zoom_exposure_mode": 1,
|
|
||||||
"zoom_exposure_value": 16,
|
|
||||||
"zoom_factor": 1,
|
|
||||||
"zoom_focus_mode": 2,
|
|
||||||
"zoom_focus_state": 1,
|
|
||||||
"zoom_focus_value": 26,
|
|
||||||
"zoom_iso": 9,
|
|
||||||
"zoom_max_focus_value": 84,
|
|
||||||
"zoom_min_focus_value": 35,
|
|
||||||
"zoom_shutter_speed": 33
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"country": "CN",
|
|
||||||
"distance_limit_status": {
|
|
||||||
"distance_limit": 5000,
|
|
||||||
"is_near_distance_limit": 0,
|
|
||||||
"state": 0
|
|
||||||
},
|
|
||||||
"elevation": 64,
|
|
||||||
"gear": 1,
|
|
||||||
"height": 69.8617935180664,
|
|
||||||
"height_limit": 220,
|
|
||||||
"home_distance": 0.11966302990913391,
|
|
||||||
"horizontal_speed": 0,
|
|
||||||
"is_near_area_limit": 1,
|
|
||||||
"is_near_height_limit": 0,
|
|
||||||
"latitude": 39.102602928799222,
|
|
||||||
"longitude": 117.71197176283638,
|
|
||||||
"maintain_status": {
|
|
||||||
"maintain_status_array": [
|
|
||||||
{
|
|
||||||
"last_maintain_flight_sorties": 0,
|
|
||||||
"last_maintain_flight_time": 0,
|
|
||||||
"last_maintain_time": 0,
|
|
||||||
"last_maintain_type": 1,
|
|
||||||
"state": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"last_maintain_flight_sorties": 0,
|
|
||||||
"last_maintain_flight_time": 0,
|
|
||||||
"last_maintain_time": 0,
|
|
||||||
"last_maintain_type": 2,
|
|
||||||
"state": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"last_maintain_flight_sorties": 0,
|
|
||||||
"last_maintain_flight_time": 0,
|
|
||||||
"last_maintain_time": 0,
|
|
||||||
"last_maintain_type": 3,
|
|
||||||
"state": 0
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"mode_code": 9,
|
|
||||||
"night_lights_state": 0,
|
|
||||||
"obstacle_avoidance": { "downside": 0, "horizon": 0, "upside": 0 },
|
|
||||||
"position_state": {
|
|
||||||
"gps_number": 32,
|
|
||||||
"is_fixed": 2,
|
|
||||||
"quality": 5,
|
|
||||||
"rtk_number": 33
|
|
||||||
},
|
|
||||||
"rc_lost_action": 2,
|
|
||||||
"rid_state": true,
|
|
||||||
"rth_altitude": 60,
|
|
||||||
"storage": { "total": 243702000, "used": 4000 },
|
|
||||||
"total_flight_distance": 174010.89760393579,
|
|
||||||
"total_flight_sorties": 57,
|
|
||||||
"total_flight_time": 28866.739354778081,
|
|
||||||
"track_id": "586f7b33-4727-4026-a203-cf35a68626e5",
|
|
||||||
"vertical_speed": 0,
|
|
||||||
"wind_direction": 6,
|
|
||||||
"wind_speed": 35
|
|
||||||
},
|
|
||||||
"tid": "795fbf18-8bc1-43f7-bd10-895973319cb5",
|
|
||||||
"timestamp": 1735473362062,
|
|
||||||
"gateway": "7CTDM6F00B744S"
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
```json
|
|
||||||
{
|
|
||||||
"bid": "78f3725d-34c3-4498-b0d5-98d50dc0310d",
|
|
||||||
"data": { "mode_code_reason": 12 },
|
|
||||||
"need_reply": 1,
|
|
||||||
"tid": "88933f47-e55e-4e9e-a100-7a073cc09086",
|
|
||||||
"timestamp": 1735473362258,
|
|
||||||
"gateway": "7CTDM6F00B744S"
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
## 指令
|
|
||||||
|
|
||||||
### 起飞指令:
|
|
||||||
|
|
||||||
| target_latitude | 目标点纬度 | double | {"max":90,"min":-90} | 目标点纬度,角度值,南纬是负,北纬是正,精度到小数点后6位 |
|
|
||||||
| --- | --- | --- | --- | --- |
|
|
||||||
| target_longitude | 目标点经度 | double | {"max":180,"min":-180} | 目标点经度,角度值,东经是正,西经是负,精度到小数点后6位 |
|
|
||||||
| target_height | 目标点高度 | float | {"max":1500,"min":2,"step":0.1,"unit_name":"米 / m"} | 目标点高度(椭球高),使用 WGS84 模型,飞行器到点后默认行为:悬停 |
|
|
||||||
| security_takeoff_height | 安全起飞高度 | float | {"max":1500,"min":20,"step":0.1,"unit_name":"米 / m"} | 相对(机场)起飞点的高度(ALT),飞行器先升到特定的高度,然后再飞向目标点。 |
|
|
||||||
| rth_mode | 【必填】返航模式设置值 | enum_int | {"0":"智能高度","1":"设定高度"} | 智能返航模式下,飞行器将自动规划最佳返航高度。大疆机场当前不支持设置返航高度模式,只能选择'设定高度'模式。当环境,光线不满足视觉系统要求时(譬如傍晚阳光直射、夜间弱光无光),飞行器将使用您设定的返航高度进行直线返航 |
|
|
||||||
| rth_altitude | 返航高度 | int | {"max":1500,"min":2,"step":1,"unit_name":"米 / m"} | 相对(机场)起飞点的高度,相对高 ALT |
|
|
||||||
| rc_lost_action | 遥控器失控动作 | enum_int | {"0":"悬停","1":"着陆(降落)","2":"返航"} | 遥控器失控动作 |
|
|
||||||
| commander_mode_lost_action | 【必填】指点飞行失控动作 | enum_int | {"0":"继续执行指点飞行任务","1":"退出指点飞行任务,执行普通失控行为"} | |
|
|
||||||
| commander_flight_mode | 【必填】指点飞行模式设置值 | enum_int | {"0":"智能高度飞行","1":"设定高度飞行"} | |
|
|
||||||
| commander_flight_height | 【必填】指点飞行高度 | float | {"max":3000,"min":2,"step":0.1,"unit_name":"米 / m"} | 相对(机场)起飞点的高度,相对高 ALT |
|
|
||||||
| flight_id | 一键起飞任务 UUID | text | | 任务 UUID,全局唯一,用于染色,云端区分该值是普通计划任务还是一键起飞任务 |
|
|
||||||
| max_speed | 一键起飞的飞行过程中能达到的最大速度 | int | {"max":15,"min":1,"unit_name":"米每秒 / m/s"} | |
|
|
||||||
| simulate_mission | 是否在模拟器中执行任务 | struct | | 可选字段,用于在室内进行模拟任务调试。 |
|
|
||||||
| »is_enable | 是否开启模拟器任务 | enum_int | {"0":"不开启","1":"开启"} | 当次任务打开或关闭模拟器 |
|
|
||||||
| »latitude | 纬度 | double | {"max":"90.0","min":"-90.0"} | |
|
|
||||||
| »longitude | 经度 | double | {"max":"180.0","min":"-180.0"} | |
|
|
||||||
| flight_safety_advance_check | 飞行安全预检查 | bool | {"0":"关闭","1":"开启"} | 设置一键起飞和航线任务中的飞行安全是否预先检查。此字段为可选,默认为0,值为0表示关闭,1表示开启。飞行安全预先检查表示: 飞行器执行任务前,检查自身作业区文件是否与云端一致,如果不一致则拉取文件更新,如果一致则不处理 |
|
|
||||||
|
|
||||||
```json
|
|
||||||
{
|
|
||||||
"data": {
|
|
||||||
"flight_id": flight_id,
|
|
||||||
"max_speed": 5,
|
|
||||||
"rc_lost_action": 2,
|
|
||||||
"rth_altitude": 60.0,
|
|
||||||
"rth_mode": 1,
|
|
||||||
"security_takeoff_height": 60.0,
|
|
||||||
"target_height": 70.0,
|
|
||||||
"target_latitude": 39.102603,
|
|
||||||
"target_longitude": 117.711972,
|
|
||||||
"commander_mode_lost_action": 0,
|
|
||||||
"commander_flight_mode": 1,
|
|
||||||
"commander_flight_height": 70.0,
|
|
||||||
"simulate_mission": {
|
|
||||||
},
|
|
||||||
"flight_safety_advance_check": 0
|
|
||||||
},
|
|
||||||
"method": "takeoff_to_point"
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
### 飞向目标点:
|
|
||||||
|
|
||||||
| fly_to_id | 飞向目标点 ID | text | | |
|
|
||||||
| --- | --- | --- | --- | --- |
|
|
||||||
| max_speed | flyto 的飞行过程中能达到的最大速度 | int | {"max":15,"min":0,"unit_name":"米每秒 / m/s"} | |
|
|
||||||
| points | flyto 目标点列表 | array | {"size": -, "item_type": struct} | 仅支持 1 个目标点 |
|
|
||||||
| »latitude | 目标点纬度 | double | {"max":90,"min":-90} | 目标点纬度,角度值,南纬是负,北纬是正,精度到小数点后6位 |
|
|
||||||
| »longitude | 目标点经度 | double | {"max":180,"min":-180} | 目标点经度,角度值,东经是正,西经是负,精度到小数点后6位 |
|
|
||||||
| »height | 目标点高度 | float | {"max":10000,"min":2,"step":0.1,"unit_name":"米 / m"} | 目标点高度(椭球高),使用 WGS84 模型 |
|
|
||||||
|
|
||||||
```json
|
|
||||||
{
|
|
||||||
"data": {
|
|
||||||
"fly_to_id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
|
|
||||||
"max_speed": 12,
|
|
||||||
"points": [
|
|
||||||
{
|
|
||||||
"height": 100,
|
|
||||||
"latitude": 12.23,
|
|
||||||
"longitude": 12.23
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"method": "fly_to_point"
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
### 结束飞向目标点:
|
|
||||||
|
|
||||||
```json
|
|
||||||
{
|
|
||||||
"data": {},
|
|
||||||
"method": "fly_to_point_stop"
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
### 更新飞向目标点:
|
|
||||||
|
|
||||||
| max_speed | 指令飞行过程中能达到的最大速度 | int | {"max":15,"min":1,"unit_name":"米每秒 / m/s"} | |
|
|
||||||
| --- | --- | --- | --- | --- |
|
|
||||||
| points | 更新的目标点列表 | array | {"size": -, "item_type": struct} | 仅支持 1 个目标点 |
|
|
||||||
| »latitude | 目标点纬度 | double | {"max":90,"min":-90} | 目标点纬度,角度值,南纬是负,北纬是正,精度到小数点后6位 |
|
|
||||||
| »longitude | 目标点经度 | double | {"max":180,"min":-180} | 目标点经度,角度值,东经是正,西经是负,精度到小数点后6位 |
|
|
||||||
| »height | 目标点高度 | float | {"max":10000,"min":2,"step":0.1,"unit_name":"米 / m"} | 目标点高度(椭球高),使用 WGS84 模型 |
|
|
||||||
|
|
||||||
```json
|
|
||||||
{
|
|
||||||
"data": {
|
|
||||||
"max_speed": 12,
|
|
||||||
"points": [
|
|
||||||
{
|
|
||||||
"height": 100,
|
|
||||||
"latitude": 12.23,
|
|
||||||
"longitude": 12.23
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"method": "fly_to_point_update"
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
### 返航:
|
|
||||||
|
|
||||||
```json
|
|
||||||
{
|
|
||||||
"data": {},
|
|
||||||
"method": "return_home"
|
|
||||||
}
|
|
||||||
```
|
|
||||||
@@ -1,49 +0,0 @@
|
|||||||
package com.central.device.model;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableField;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
|
||||||
import com.central.common.model.SuperEntity;
|
|
||||||
import lombok.EqualsAndHashCode;
|
|
||||||
import lombok.Getter;
|
|
||||||
import lombok.Setter;
|
|
||||||
|
|
||||||
import java.util.Date;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Device information
|
|
||||||
*
|
|
||||||
* @author lsl
|
|
||||||
* @date 2024-12-19 17:51:47
|
|
||||||
*/
|
|
||||||
@Getter
|
|
||||||
@Setter
|
|
||||||
@EqualsAndHashCode(callSuper = false)
|
|
||||||
@TableName("manage_device")
|
|
||||||
public class AgeDevice extends SuperEntity {
|
|
||||||
|
|
||||||
private String deviceSn;
|
|
||||||
private String deviceName;
|
|
||||||
private String userId;
|
|
||||||
private String nickname;
|
|
||||||
private String workspaceId;
|
|
||||||
private Integer deviceType;
|
|
||||||
private Integer subType;
|
|
||||||
private Integer domain;
|
|
||||||
private String firmwareVersion;
|
|
||||||
private Integer compatibleStatus;
|
|
||||||
private String version;
|
|
||||||
private String deviceIndex;
|
|
||||||
private String childSn;
|
|
||||||
@TableField(fill = FieldFill.INSERT)
|
|
||||||
private Date createTime;
|
|
||||||
@TableField(fill = FieldFill.INSERT_UPDATE)
|
|
||||||
private Date updateTime;
|
|
||||||
private Long boundTime;
|
|
||||||
private Integer boundStatus;
|
|
||||||
private Long loginTime;
|
|
||||||
private String deviceDesc;
|
|
||||||
private String urlNormal;
|
|
||||||
private String urlSelect;
|
|
||||||
private String tenantId;
|
|
||||||
}
|
|
||||||
-41
@@ -1,41 +0,0 @@
|
|||||||
package com.central.device.model;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableField;
|
|
||||||
import com.central.common.model.SuperEntity;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
|
||||||
import lombok.Getter;
|
|
||||||
import lombok.Setter;
|
|
||||||
import lombok.EqualsAndHashCode;
|
|
||||||
import java.util.Date;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Firmware file information
|
|
||||||
*
|
|
||||||
* @author lsl
|
|
||||||
* @date 2024-12-19 17:52:54
|
|
||||||
*/
|
|
||||||
@Getter
|
|
||||||
@Setter
|
|
||||||
@EqualsAndHashCode(callSuper = false)
|
|
||||||
@TableName("manage_device_firmware")
|
|
||||||
public class AgeDeviceFirmware extends SuperEntity {
|
|
||||||
private static final long serialVersionUID=1L;
|
|
||||||
|
|
||||||
private String firmwareId;
|
|
||||||
private String fileName;
|
|
||||||
private String firmwareVersion;
|
|
||||||
private String objectKey;
|
|
||||||
private Long fileSize;
|
|
||||||
private String fileMd5;
|
|
||||||
private String workspaceId;
|
|
||||||
private String releaseNote;
|
|
||||||
private Long releaseDate;
|
|
||||||
private String userName;
|
|
||||||
private Integer status;
|
|
||||||
|
|
||||||
@TableField(fill = FieldFill.INSERT)
|
|
||||||
private Date createTime;
|
|
||||||
@TableField(fill = FieldFill.INSERT_UPDATE)
|
|
||||||
private Date updateTime;
|
|
||||||
}
|
|
||||||
@@ -1,38 +0,0 @@
|
|||||||
package com.central.device.model;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableField;
|
|
||||||
import com.central.common.model.SuperEntity;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
|
||||||
import lombok.Getter;
|
|
||||||
import lombok.Setter;
|
|
||||||
import lombok.EqualsAndHashCode;
|
|
||||||
import java.util.Date;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Device's hms information
|
|
||||||
*
|
|
||||||
* @author lsl
|
|
||||||
* @date 2024-12-19 17:53:01
|
|
||||||
*/
|
|
||||||
@Getter
|
|
||||||
@Setter
|
|
||||||
@EqualsAndHashCode(callSuper = false)
|
|
||||||
@TableName("manage_device_hms")
|
|
||||||
public class AgeDeviceHms extends SuperEntity {
|
|
||||||
private static final long serialVersionUID=1L;
|
|
||||||
|
|
||||||
private String hmsId;
|
|
||||||
private String tid;
|
|
||||||
private String bid;
|
|
||||||
private String sn;
|
|
||||||
private Integer level;
|
|
||||||
private Integer module;
|
|
||||||
private String hmsKey;
|
|
||||||
private String messageZh;
|
|
||||||
private String messageEn;
|
|
||||||
@TableField(fill = FieldFill.INSERT)
|
|
||||||
private Date createTime;
|
|
||||||
@TableField(fill = FieldFill.INSERT_UPDATE)
|
|
||||||
private Date updateTime;
|
|
||||||
}
|
|
||||||
@@ -1,35 +0,0 @@
|
|||||||
package com.central.device.model;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableField;
|
|
||||||
import com.central.common.model.SuperEntity;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
|
||||||
import lombok.Getter;
|
|
||||||
import lombok.Setter;
|
|
||||||
import lombok.EqualsAndHashCode;
|
|
||||||
import java.util.Date;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Log for uploading logs
|
|
||||||
*
|
|
||||||
* @author lsl
|
|
||||||
* @date 2024-12-19 17:53:03
|
|
||||||
*/
|
|
||||||
@Getter
|
|
||||||
@Setter
|
|
||||||
@EqualsAndHashCode(callSuper = false)
|
|
||||||
@TableName("manage_device_logs")
|
|
||||||
public class AgeDeviceLogs extends SuperEntity {
|
|
||||||
private static final long serialVersionUID=1L;
|
|
||||||
|
|
||||||
private String logsId;
|
|
||||||
private String username;
|
|
||||||
private String deviceSn;
|
|
||||||
private String logsInfo;
|
|
||||||
private Long happenTime;
|
|
||||||
private Integer status;
|
|
||||||
@TableField(fill = FieldFill.INSERT)
|
|
||||||
private Date createTime;
|
|
||||||
@TableField(fill = FieldFill.INSERT_UPDATE)
|
|
||||||
private Date updateTime;
|
|
||||||
}
|
|
||||||
-38
@@ -1,38 +0,0 @@
|
|||||||
package com.central.device.model;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableField;
|
|
||||||
import com.central.common.model.SuperEntity;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
|
||||||
import lombok.Getter;
|
|
||||||
import lombok.Setter;
|
|
||||||
import lombok.EqualsAndHashCode;
|
|
||||||
import java.util.Date;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The payload information of the device.
|
|
||||||
*
|
|
||||||
* @author lsl
|
|
||||||
* @date 2024-12-19 17:53:19
|
|
||||||
*/
|
|
||||||
@Getter
|
|
||||||
@Setter
|
|
||||||
@EqualsAndHashCode(callSuper = false)
|
|
||||||
@TableName("manage_device_payload")
|
|
||||||
public class AgeDevicePayload extends SuperEntity {
|
|
||||||
private static final long serialVersionUID=1L;
|
|
||||||
|
|
||||||
private String payloadSn;
|
|
||||||
private String payloadName;
|
|
||||||
private Integer payloadType;
|
|
||||||
private Integer subType;
|
|
||||||
private String firmwareVersion;
|
|
||||||
private Integer payloadIndex;
|
|
||||||
private String deviceSn;
|
|
||||||
private String payloadDesc;
|
|
||||||
private String controlSource;
|
|
||||||
@TableField(fill = FieldFill.INSERT)
|
|
||||||
private Date createTime;
|
|
||||||
@TableField(fill = FieldFill.INSERT_UPDATE)
|
|
||||||
private Date updateTime;
|
|
||||||
}
|
|
||||||
-31
@@ -1,31 +0,0 @@
|
|||||||
package com.central.device.model;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableField;
|
|
||||||
import com.central.common.model.SuperEntity;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
|
||||||
import lombok.Getter;
|
|
||||||
import lombok.Setter;
|
|
||||||
import lombok.EqualsAndHashCode;
|
|
||||||
import java.util.Date;
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* @author lsl
|
|
||||||
* @date 2024-12-19 17:53:20
|
|
||||||
*/
|
|
||||||
@Getter
|
|
||||||
@Setter
|
|
||||||
@EqualsAndHashCode(callSuper = false)
|
|
||||||
@TableName("manage_firmware_model")
|
|
||||||
public class AgeFirmwareModel extends SuperEntity {
|
|
||||||
private static final long serialVersionUID=1L;
|
|
||||||
|
|
||||||
private String firmwareId;
|
|
||||||
private String deviceName;
|
|
||||||
@TableField(fill = FieldFill.INSERT)
|
|
||||||
private Date createTime;
|
|
||||||
@TableField(fill = FieldFill.INSERT_UPDATE)
|
|
||||||
private Date updateTime;
|
|
||||||
}
|
|
||||||
@@ -1,34 +0,0 @@
|
|||||||
package com.central.device.model;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableField;
|
|
||||||
import com.central.common.model.SuperEntity;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
|
||||||
import lombok.Getter;
|
|
||||||
import lombok.Setter;
|
|
||||||
import lombok.EqualsAndHashCode;
|
|
||||||
import java.util.Date;
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* @author lsl
|
|
||||||
* @date 2024-12-19 17:52:26
|
|
||||||
*/
|
|
||||||
@Getter
|
|
||||||
@Setter
|
|
||||||
@EqualsAndHashCode(callSuper = false)
|
|
||||||
@TableName("manage_workspace")
|
|
||||||
public class AgeWorkspace extends SuperEntity {
|
|
||||||
private static final long serialVersionUID=1L;
|
|
||||||
|
|
||||||
private String workspaceId;
|
|
||||||
private String workspaceName;
|
|
||||||
private String workspaceDesc;
|
|
||||||
private String platformName;
|
|
||||||
@TableField(fill = FieldFill.INSERT)
|
|
||||||
private Date createTime;
|
|
||||||
@TableField(fill = FieldFill.INSERT_UPDATE)
|
|
||||||
private Date updateTime;
|
|
||||||
private String bindCode;
|
|
||||||
}
|
|
||||||
@@ -1,41 +0,0 @@
|
|||||||
package com.central.device.model;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableField;
|
|
||||||
import com.central.common.model.SuperEntity;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
|
||||||
import lombok.Getter;
|
|
||||||
import lombok.Setter;
|
|
||||||
import lombok.EqualsAndHashCode;
|
|
||||||
import java.util.Date;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Media file information
|
|
||||||
*
|
|
||||||
* @author lsl
|
|
||||||
* @date 2024-12-19 17:52:18
|
|
||||||
*/
|
|
||||||
@Getter
|
|
||||||
@Setter
|
|
||||||
@EqualsAndHashCode(callSuper = false)
|
|
||||||
@TableName("media_file")
|
|
||||||
public class IaFile extends SuperEntity {
|
|
||||||
private static final long serialVersionUID=1L;
|
|
||||||
|
|
||||||
private String fileId;
|
|
||||||
private String fileName;
|
|
||||||
private String filePath;
|
|
||||||
private String workspaceId;
|
|
||||||
private String fingerprint;
|
|
||||||
private String tinnyFingerprint;
|
|
||||||
private String objectKey;
|
|
||||||
private Integer subFileType;
|
|
||||||
private Integer isOriginal;
|
|
||||||
private String drone;
|
|
||||||
private String payload;
|
|
||||||
private String jobId;
|
|
||||||
@TableField(fill = FieldFill.INSERT)
|
|
||||||
private Date createTime;
|
|
||||||
@TableField(fill = FieldFill.INSERT_UPDATE)
|
|
||||||
private Date updateTime;
|
|
||||||
}
|
|
||||||
@@ -1,41 +0,0 @@
|
|||||||
package com.central.device.model;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableField;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
|
||||||
import com.central.common.model.SuperEntity;
|
|
||||||
import lombok.EqualsAndHashCode;
|
|
||||||
import lombok.Getter;
|
|
||||||
import lombok.Setter;
|
|
||||||
|
|
||||||
import java.util.Date;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Wayline file information
|
|
||||||
*
|
|
||||||
* @author lsl
|
|
||||||
* @date 2024-12-19 17:51:52
|
|
||||||
*/
|
|
||||||
@Getter
|
|
||||||
@Setter
|
|
||||||
@EqualsAndHashCode(callSuper = false)
|
|
||||||
@TableName("wayline_file")
|
|
||||||
public class LineFile extends SuperEntity {
|
|
||||||
private static final long serialVersionUID=1L;
|
|
||||||
|
|
||||||
private String name;
|
|
||||||
private String waylineId;
|
|
||||||
private String droneModelKey;
|
|
||||||
private String payloadModelKeys;
|
|
||||||
private String workspaceId;
|
|
||||||
private String sign;
|
|
||||||
private Integer favorited;
|
|
||||||
private String templateTypes;
|
|
||||||
private String objectKey;
|
|
||||||
private String userName;
|
|
||||||
@TableField(fill = FieldFill.INSERT)
|
|
||||||
private Date createTime;
|
|
||||||
@TableField(fill = FieldFill.INSERT_UPDATE)
|
|
||||||
private Date updateTime;
|
|
||||||
private String tenantId;
|
|
||||||
}
|
|
||||||
@@ -1,47 +0,0 @@
|
|||||||
package com.central.device.model;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableField;
|
|
||||||
import com.central.common.model.SuperEntity;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
|
||||||
import lombok.Getter;
|
|
||||||
import lombok.Setter;
|
|
||||||
import lombok.EqualsAndHashCode;
|
|
||||||
import java.util.Date;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Wayline mission information of the dock.
|
|
||||||
*
|
|
||||||
* @author lsl
|
|
||||||
* @date 2024-12-19 17:51:53
|
|
||||||
*/
|
|
||||||
@Getter
|
|
||||||
@Setter
|
|
||||||
@EqualsAndHashCode(callSuper = false)
|
|
||||||
@TableName("wayline_job")
|
|
||||||
public class LineJob extends SuperEntity {
|
|
||||||
private static final long serialVersionUID=1L;
|
|
||||||
|
|
||||||
private String jobId;
|
|
||||||
private String name;
|
|
||||||
private String fileId;
|
|
||||||
private String dockSn;
|
|
||||||
private String workspaceId;
|
|
||||||
private Integer taskType;
|
|
||||||
private Integer waylineType;
|
|
||||||
private Long executeTime;
|
|
||||||
private Long completedTime;
|
|
||||||
private String username;
|
|
||||||
private Long beginTime;
|
|
||||||
private Long endTime;
|
|
||||||
private Integer errorCode;
|
|
||||||
private Integer status;
|
|
||||||
private Integer rthAltitude;
|
|
||||||
private Integer outOfControl;
|
|
||||||
private Integer mediaCount;
|
|
||||||
@TableField(fill = FieldFill.INSERT)
|
|
||||||
private Date createTime;
|
|
||||||
@TableField(fill = FieldFill.INSERT_UPDATE)
|
|
||||||
private Date updateTime;
|
|
||||||
private String parentId;
|
|
||||||
}
|
|
||||||
@@ -1,37 +0,0 @@
|
|||||||
package com.central.device.model;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableField;
|
|
||||||
import com.central.common.model.SuperEntity;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
|
||||||
import lombok.Getter;
|
|
||||||
import lombok.Setter;
|
|
||||||
import lombok.EqualsAndHashCode;
|
|
||||||
import java.util.Date;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Logs file information
|
|
||||||
*
|
|
||||||
* @author lsl
|
|
||||||
* @date 2024-12-19 17:53:36
|
|
||||||
*/
|
|
||||||
@Getter
|
|
||||||
@Setter
|
|
||||||
@EqualsAndHashCode(callSuper = false)
|
|
||||||
@TableName("logs_file")
|
|
||||||
public class SFile extends SuperEntity {
|
|
||||||
private static final long serialVersionUID=1L;
|
|
||||||
|
|
||||||
private String fileId;
|
|
||||||
private String name;
|
|
||||||
private Long size;
|
|
||||||
private String logsId;
|
|
||||||
private String deviceSn;
|
|
||||||
private String fingerprint;
|
|
||||||
private String objectKey;
|
|
||||||
private Integer status;
|
|
||||||
@TableField(fill = FieldFill.INSERT)
|
|
||||||
private Date createTime;
|
|
||||||
@TableField(fill = FieldFill.INSERT_UPDATE)
|
|
||||||
private Date updateTime;
|
|
||||||
}
|
|
||||||
@@ -1,36 +0,0 @@
|
|||||||
package com.central.device.model;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableField;
|
|
||||||
import com.central.common.model.SuperEntity;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
|
||||||
import lombok.Getter;
|
|
||||||
import lombok.Setter;
|
|
||||||
import lombok.EqualsAndHashCode;
|
|
||||||
import java.util.Date;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The boot index table corresponding to the logs file.
|
|
||||||
*
|
|
||||||
* @author lsl
|
|
||||||
* @date 2024-12-19 17:53:23
|
|
||||||
*/
|
|
||||||
@Getter
|
|
||||||
@Setter
|
|
||||||
@EqualsAndHashCode(callSuper = false)
|
|
||||||
@TableName("logs_file_index")
|
|
||||||
public class SFileIndex extends SuperEntity {
|
|
||||||
private static final long serialVersionUID=1L;
|
|
||||||
|
|
||||||
private Integer bootIndex;
|
|
||||||
private String fileId;
|
|
||||||
private Long startTime;
|
|
||||||
private Long endTime;
|
|
||||||
private Long size;
|
|
||||||
private String deviceSn;
|
|
||||||
private Integer domain;
|
|
||||||
@TableField(fill = FieldFill.INSERT)
|
|
||||||
private Date createTime;
|
|
||||||
@TableField(fill = FieldFill.INSERT_UPDATE)
|
|
||||||
private Date updateTime;
|
|
||||||
}
|
|
||||||
-174
@@ -1,174 +0,0 @@
|
|||||||
package com.central.device.model.excel;
|
|
||||||
|
|
||||||
import com.alibaba.excel.annotation.ExcelIgnore;
|
|
||||||
import com.alibaba.excel.annotation.ExcelProperty;
|
|
||||||
import com.alibaba.excel.annotation.write.style.ColumnWidth;
|
|
||||||
import com.central.device.model.AgeDevice;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
||||||
import jakarta.validation.constraints.NotBlank;
|
|
||||||
import lombok.Data;
|
|
||||||
import lombok.EqualsAndHashCode;
|
|
||||||
|
|
||||||
import java.util.Date;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 设备信息Excel导入导出实体
|
|
||||||
*
|
|
||||||
* @author lsl
|
|
||||||
* @date 2024-12-19
|
|
||||||
*/
|
|
||||||
@Data
|
|
||||||
@EqualsAndHashCode(callSuper = false)
|
|
||||||
public class AgeDeviceExcel {
|
|
||||||
|
|
||||||
@ExcelProperty(value = "设备序列号", index = 0)
|
|
||||||
@ColumnWidth(20)
|
|
||||||
@NotBlank(message = "设备序列号不能为空")
|
|
||||||
private String deviceSn;
|
|
||||||
|
|
||||||
@ExcelProperty(value = "设备名称", index = 1)
|
|
||||||
@ColumnWidth(20)
|
|
||||||
@NotBlank(message = "设备名称不能为空")
|
|
||||||
private String deviceName;
|
|
||||||
|
|
||||||
@ExcelProperty(value = "设备类型", index = 2)
|
|
||||||
@ColumnWidth(15)
|
|
||||||
private Integer deviceType;
|
|
||||||
|
|
||||||
@ExcelProperty(value = "子类型", index = 3)
|
|
||||||
@ColumnWidth(15)
|
|
||||||
private Integer subType;
|
|
||||||
|
|
||||||
@ExcelProperty(value = "固件版本", index = 4)
|
|
||||||
@ColumnWidth(20)
|
|
||||||
private String firmwareVersion;
|
|
||||||
|
|
||||||
@ExcelProperty(value = "设备描述", index = 6)
|
|
||||||
@ColumnWidth(30)
|
|
||||||
private String deviceDesc;
|
|
||||||
|
|
||||||
@ExcelProperty(value = "工作空间ID", index = 7)
|
|
||||||
@ColumnWidth(20)
|
|
||||||
private String workspaceId;
|
|
||||||
|
|
||||||
@ExcelProperty(value = "域", index = 8)
|
|
||||||
@ColumnWidth(15)
|
|
||||||
private Integer domain;
|
|
||||||
|
|
||||||
@ExcelProperty(value = "兼容状态", index = 9)
|
|
||||||
@ColumnWidth(15)
|
|
||||||
private Integer compatibleStatus;
|
|
||||||
|
|
||||||
@ExcelProperty(value = "版本", index = 10)
|
|
||||||
@ColumnWidth(15)
|
|
||||||
private String version;
|
|
||||||
|
|
||||||
@ExcelProperty(value = "设备索引", index = 11)
|
|
||||||
@ColumnWidth(20)
|
|
||||||
private String deviceIndex;
|
|
||||||
|
|
||||||
@ExcelProperty(value = "子设备序列号", index = 12)
|
|
||||||
@ColumnWidth(20)
|
|
||||||
private String childSn;
|
|
||||||
|
|
||||||
@ExcelProperty(value = "绑定状态", index = 13)
|
|
||||||
@ColumnWidth(15)
|
|
||||||
private Integer boundStatus;
|
|
||||||
|
|
||||||
@ExcelProperty(value = "租户ID", index = 14)
|
|
||||||
@ColumnWidth(20)
|
|
||||||
private String tenantId;
|
|
||||||
|
|
||||||
// 以下字段在Excel中不显示,但在实体转换时需要
|
|
||||||
@ExcelIgnore
|
|
||||||
private String userId;
|
|
||||||
|
|
||||||
@ExcelIgnore
|
|
||||||
private String nickname;
|
|
||||||
|
|
||||||
@ExcelIgnore
|
|
||||||
private Long boundTime;
|
|
||||||
|
|
||||||
@ExcelIgnore
|
|
||||||
private Long loginTime;
|
|
||||||
|
|
||||||
@ExcelIgnore
|
|
||||||
private String urlNormal;
|
|
||||||
|
|
||||||
@ExcelIgnore
|
|
||||||
private String urlSelect;
|
|
||||||
|
|
||||||
@ExcelProperty(value = "创建时间", index = 15)
|
|
||||||
@ColumnWidth(20)
|
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
||||||
private Date createTime;
|
|
||||||
|
|
||||||
@ExcelProperty(value = "更新时间", index = 16)
|
|
||||||
@ColumnWidth(20)
|
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
||||||
private Date updateTime;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 转换为设备实体
|
|
||||||
*/
|
|
||||||
public AgeDevice toDevice() {
|
|
||||||
AgeDevice device = new AgeDevice();
|
|
||||||
// 必填字段
|
|
||||||
device.setDeviceSn(this.deviceSn);
|
|
||||||
device.setDeviceName(this.deviceName);
|
|
||||||
device.setDeviceType(this.deviceType);
|
|
||||||
|
|
||||||
// 可选字段,需要判空
|
|
||||||
device.setSubType(this.subType);
|
|
||||||
device.setFirmwareVersion(this.firmwareVersion);
|
|
||||||
device.setDeviceDesc(this.deviceDesc);
|
|
||||||
device.setWorkspaceId(this.workspaceId);
|
|
||||||
device.setDomain(this.domain);
|
|
||||||
device.setCompatibleStatus(this.compatibleStatus);
|
|
||||||
device.setVersion(this.version);
|
|
||||||
device.setDeviceIndex(this.deviceIndex);
|
|
||||||
device.setChildSn(this.childSn);
|
|
||||||
device.setBoundStatus(this.boundStatus);
|
|
||||||
device.setTenantId(this.tenantId);
|
|
||||||
|
|
||||||
// 系统字段
|
|
||||||
device.setCreateTime(this.createTime);
|
|
||||||
device.setUpdateTime(this.updateTime);
|
|
||||||
|
|
||||||
return device;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 从设备实体转换
|
|
||||||
*/
|
|
||||||
public static AgeDeviceExcel fromDevice(AgeDevice device) {
|
|
||||||
if (device == null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
AgeDeviceExcel excel = new AgeDeviceExcel();
|
|
||||||
// 必填字段
|
|
||||||
excel.setDeviceSn(device.getDeviceSn());
|
|
||||||
excel.setDeviceName(device.getDeviceName());
|
|
||||||
excel.setDeviceType(device.getDeviceType());
|
|
||||||
|
|
||||||
// 可选字段
|
|
||||||
excel.setSubType(device.getSubType());
|
|
||||||
excel.setFirmwareVersion(device.getFirmwareVersion());
|
|
||||||
excel.setDeviceDesc(device.getDeviceDesc());
|
|
||||||
excel.setWorkspaceId(device.getWorkspaceId());
|
|
||||||
excel.setDomain(device.getDomain());
|
|
||||||
excel.setCompatibleStatus(device.getCompatibleStatus());
|
|
||||||
excel.setVersion(device.getVersion());
|
|
||||||
excel.setDeviceIndex(device.getDeviceIndex());
|
|
||||||
excel.setChildSn(device.getChildSn());
|
|
||||||
excel.setBoundStatus(device.getBoundStatus());
|
|
||||||
excel.setTenantId(device.getTenantId());
|
|
||||||
|
|
||||||
// 系统字段
|
|
||||||
excel.setCreateTime(device.getCreateTime());
|
|
||||||
excel.setUpdateTime(device.getUpdateTime());
|
|
||||||
|
|
||||||
return excel;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-16
@@ -1,16 +0,0 @@
|
|||||||
package com.central.device.model.vo;
|
|
||||||
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
|
||||||
|
|
||||||
@Data
|
|
||||||
@Schema(description = "分布数据")
|
|
||||||
public class DistributionDataVO {
|
|
||||||
@Schema(description = "类型")
|
|
||||||
private String type;
|
|
||||||
|
|
||||||
@Schema(description = "数值")
|
|
||||||
private BigDecimal value;
|
|
||||||
}
|
|
||||||
-23
@@ -1,23 +0,0 @@
|
|||||||
package com.central.device.service;
|
|
||||||
|
|
||||||
import com.central.device.model.AgeDeviceFirmware;
|
|
||||||
import com.central.common.model.PageResult;
|
|
||||||
import com.central.common.service.ISuperService;
|
|
||||||
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Firmware file information
|
|
||||||
*
|
|
||||||
* @author lsl
|
|
||||||
* @date 2024-12-19 17:52:54
|
|
||||||
*/
|
|
||||||
public interface IAgeDeviceFirmwareService extends ISuperService<AgeDeviceFirmware> {
|
|
||||||
/**
|
|
||||||
* 列表
|
|
||||||
* @param params
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
PageResult<AgeDeviceFirmware> findList(Map<String, Object> params);
|
|
||||||
}
|
|
||||||
|
|
||||||
-23
@@ -1,23 +0,0 @@
|
|||||||
package com.central.device.service;
|
|
||||||
|
|
||||||
import com.central.device.model.AgeDeviceHms;
|
|
||||||
import com.central.common.model.PageResult;
|
|
||||||
import com.central.common.service.ISuperService;
|
|
||||||
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Device's hms information
|
|
||||||
*
|
|
||||||
* @author lsl
|
|
||||||
* @date 2024-12-19 17:53:01
|
|
||||||
*/
|
|
||||||
public interface IAgeDeviceHmsService extends ISuperService<AgeDeviceHms> {
|
|
||||||
/**
|
|
||||||
* 列表
|
|
||||||
* @param params
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
PageResult<AgeDeviceHms> findList(Map<String, Object> params);
|
|
||||||
}
|
|
||||||
|
|
||||||
-23
@@ -1,23 +0,0 @@
|
|||||||
package com.central.device.service;
|
|
||||||
|
|
||||||
import com.central.device.model.AgeDeviceLogs;
|
|
||||||
import com.central.common.model.PageResult;
|
|
||||||
import com.central.common.service.ISuperService;
|
|
||||||
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Log for uploading logs
|
|
||||||
*
|
|
||||||
* @author lsl
|
|
||||||
* @date 2024-12-19 17:53:03
|
|
||||||
*/
|
|
||||||
public interface IAgeDeviceLogsService extends ISuperService<AgeDeviceLogs> {
|
|
||||||
/**
|
|
||||||
* 列表
|
|
||||||
* @param params
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
PageResult<AgeDeviceLogs> findList(Map<String, Object> params);
|
|
||||||
}
|
|
||||||
|
|
||||||
-23
@@ -1,23 +0,0 @@
|
|||||||
package com.central.device.service;
|
|
||||||
|
|
||||||
import com.central.device.model.AgeDevicePayload;
|
|
||||||
import com.central.common.model.PageResult;
|
|
||||||
import com.central.common.service.ISuperService;
|
|
||||||
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The payload information of the device.
|
|
||||||
*
|
|
||||||
* @author lsl
|
|
||||||
* @date 2024-12-19 17:53:19
|
|
||||||
*/
|
|
||||||
public interface IAgeDevicePayloadService extends ISuperService<AgeDevicePayload> {
|
|
||||||
/**
|
|
||||||
* 列表
|
|
||||||
* @param params
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
PageResult<AgeDevicePayload> findList(Map<String, Object> params);
|
|
||||||
}
|
|
||||||
|
|
||||||
-44
@@ -1,44 +0,0 @@
|
|||||||
package com.central.device.service;
|
|
||||||
|
|
||||||
import com.central.device.model.AgeDevice;
|
|
||||||
import com.central.common.model.PageResult;
|
|
||||||
import com.central.common.service.ISuperService;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Device information
|
|
||||||
*
|
|
||||||
* @author lsl
|
|
||||||
* @date 2024-12-19 17:51:47
|
|
||||||
*/
|
|
||||||
public interface IAgeDeviceService extends ISuperService<AgeDevice> {
|
|
||||||
/**
|
|
||||||
* 列表
|
|
||||||
* @param params
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
PageResult<AgeDevice> findList(Map<String, Object> params);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 根据参数查询设备列表
|
|
||||||
*/
|
|
||||||
List<AgeDevice> findListByParams(Map<String, Object> params);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 根据设备序列号查询设备
|
|
||||||
*/
|
|
||||||
AgeDevice getByDeviceSn(String deviceSn);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 检查设备序列号是否存在
|
|
||||||
*/
|
|
||||||
boolean checkDeviceSnExists(String deviceSn);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 批量导入设备信息
|
|
||||||
*/
|
|
||||||
boolean importDevices(List<AgeDevice> deviceList);
|
|
||||||
}
|
|
||||||
|
|
||||||
-23
@@ -1,23 +0,0 @@
|
|||||||
package com.central.device.service;
|
|
||||||
|
|
||||||
import com.central.device.model.AgeFirmwareModel;
|
|
||||||
import com.central.common.model.PageResult;
|
|
||||||
import com.central.common.service.ISuperService;
|
|
||||||
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* @author lsl
|
|
||||||
* @date 2024-12-19 17:53:20
|
|
||||||
*/
|
|
||||||
public interface IAgeFirmwareModelService extends ISuperService<AgeFirmwareModel> {
|
|
||||||
/**
|
|
||||||
* 列表
|
|
||||||
* @param params
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
PageResult<AgeFirmwareModel> findList(Map<String, Object> params);
|
|
||||||
}
|
|
||||||
|
|
||||||
-23
@@ -1,23 +0,0 @@
|
|||||||
package com.central.device.service;
|
|
||||||
|
|
||||||
import com.central.device.model.AgeWorkspace;
|
|
||||||
import com.central.common.model.PageResult;
|
|
||||||
import com.central.common.service.ISuperService;
|
|
||||||
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* @author lsl
|
|
||||||
* @date 2024-12-19 17:52:26
|
|
||||||
*/
|
|
||||||
public interface IAgeWorkspaceService extends ISuperService<AgeWorkspace> {
|
|
||||||
/**
|
|
||||||
* 列表
|
|
||||||
* @param params
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
PageResult<AgeWorkspace> findList(Map<String, Object> params);
|
|
||||||
}
|
|
||||||
|
|
||||||
-23
@@ -1,23 +0,0 @@
|
|||||||
package com.central.device.service;
|
|
||||||
|
|
||||||
import com.central.device.model.IaFile;
|
|
||||||
import com.central.common.model.PageResult;
|
|
||||||
import com.central.common.service.ISuperService;
|
|
||||||
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Media file information
|
|
||||||
*
|
|
||||||
* @author lsl
|
|
||||||
* @date 2024-12-19 17:52:18
|
|
||||||
*/
|
|
||||||
public interface IIaFileService extends ISuperService<IaFile> {
|
|
||||||
/**
|
|
||||||
* 列表
|
|
||||||
* @param params
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
PageResult<IaFile> findList(Map<String, Object> params);
|
|
||||||
}
|
|
||||||
|
|
||||||
-25
@@ -1,25 +0,0 @@
|
|||||||
package com.central.device.service;
|
|
||||||
|
|
||||||
import com.central.common.model.PageResult;
|
|
||||||
import com.central.common.service.ISuperService;
|
|
||||||
import com.central.device.model.LineFile;
|
|
||||||
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Wayline file information
|
|
||||||
*
|
|
||||||
* @author lsl
|
|
||||||
* @date 2024-12-19 17:51:52
|
|
||||||
*/
|
|
||||||
public interface ILineFileService extends ISuperService<LineFile> {
|
|
||||||
/**
|
|
||||||
* 列表
|
|
||||||
* @param params
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
PageResult<LineFile> findList(Map<String, Object> params);
|
|
||||||
|
|
||||||
LineFile findLineFileByWaylineId(String waylineId);
|
|
||||||
}
|
|
||||||
|
|
||||||
-23
@@ -1,23 +0,0 @@
|
|||||||
package com.central.device.service;
|
|
||||||
|
|
||||||
import com.central.device.model.LineJob;
|
|
||||||
import com.central.common.model.PageResult;
|
|
||||||
import com.central.common.service.ISuperService;
|
|
||||||
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Wayline mission information of the dock.
|
|
||||||
*
|
|
||||||
* @author lsl
|
|
||||||
* @date 2024-12-19 17:51:53
|
|
||||||
*/
|
|
||||||
public interface ILineJobService extends ISuperService<LineJob> {
|
|
||||||
/**
|
|
||||||
* 列表
|
|
||||||
* @param params
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
PageResult<LineJob> findList(Map<String, Object> params);
|
|
||||||
}
|
|
||||||
|
|
||||||
-23
@@ -1,23 +0,0 @@
|
|||||||
package com.central.device.service;
|
|
||||||
|
|
||||||
import com.central.device.model.SFileIndex;
|
|
||||||
import com.central.common.model.PageResult;
|
|
||||||
import com.central.common.service.ISuperService;
|
|
||||||
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The boot index table corresponding to the logs file.
|
|
||||||
*
|
|
||||||
* @author lsl
|
|
||||||
* @date 2024-12-19 17:53:23
|
|
||||||
*/
|
|
||||||
public interface ISFileIndexService extends ISuperService<SFileIndex> {
|
|
||||||
/**
|
|
||||||
* 列表
|
|
||||||
* @param params
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
PageResult<SFileIndex> findList(Map<String, Object> params);
|
|
||||||
}
|
|
||||||
|
|
||||||
-23
@@ -1,23 +0,0 @@
|
|||||||
package com.central.device.service;
|
|
||||||
|
|
||||||
import com.central.device.model.SFile;
|
|
||||||
import com.central.common.model.PageResult;
|
|
||||||
import com.central.common.service.ISuperService;
|
|
||||||
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Logs file information
|
|
||||||
*
|
|
||||||
* @author lsl
|
|
||||||
* @date 2024-12-19 17:53:36
|
|
||||||
*/
|
|
||||||
public interface ISFileService extends ISuperService<SFile> {
|
|
||||||
/**
|
|
||||||
* 列表
|
|
||||||
* @param params
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
PageResult<SFile> findList(Map<String, Object> params);
|
|
||||||
}
|
|
||||||
|
|
||||||
-58
@@ -1,58 +0,0 @@
|
|||||||
package com.central.device.service;
|
|
||||||
|
|
||||||
import com.alibaba.fastjson.JSONObject;
|
|
||||||
import com.central.device.util.TencentLiveUtil;
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.beans.factory.annotation.Value;
|
|
||||||
import org.springframework.data.redis.core.StringRedisTemplate;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
|
|
||||||
import java.util.concurrent.TimeUnit;
|
|
||||||
|
|
||||||
@Service
|
|
||||||
public class LiveStreamService {
|
|
||||||
|
|
||||||
@Value("${tencent.live.push-domain}")
|
|
||||||
private String pushDomain;
|
|
||||||
@Value("${tencent.live.play-domain}")
|
|
||||||
private String playDomain;
|
|
||||||
@Value("${tencent.live.app-name}")
|
|
||||||
private String appName;
|
|
||||||
@Value("${tencent.live.key}")
|
|
||||||
private String key;
|
|
||||||
@Value("${tencent.live.expire-seconds:3600}")
|
|
||||||
private long expireSeconds;
|
|
||||||
|
|
||||||
private static final String STREAM_URL_KEY_PREFIX = "device:stream_urls:";
|
|
||||||
|
|
||||||
@Autowired
|
|
||||||
private StringRedisTemplate redisTemplate;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 生成设备推流和拉流地址,并缓存到Redis
|
|
||||||
*/
|
|
||||||
public JSONObject generateStreamUrls(String deviceId) {
|
|
||||||
String cacheKey = STREAM_URL_KEY_PREFIX + deviceId;
|
|
||||||
String cacheValue = redisTemplate.opsForValue().get(cacheKey);
|
|
||||||
if (cacheValue != null) {
|
|
||||||
return JSONObject.parseObject(cacheValue);
|
|
||||||
}
|
|
||||||
|
|
||||||
long expire = System.currentTimeMillis() / 1000 + expireSeconds;
|
|
||||||
String pushUrl = TencentLiveUtil.generatePushUrl(pushDomain, appName, deviceId, key, expire);
|
|
||||||
String playRtmpUrl = TencentLiveUtil.generatePlayUrl(playDomain, appName, deviceId, "rtmp");
|
|
||||||
String playFlvUrl = TencentLiveUtil.generatePlayUrl(playDomain, appName, deviceId, "flv");
|
|
||||||
String playM3u8Url = TencentLiveUtil.generatePlayUrl(playDomain, appName, deviceId, "m3u8");
|
|
||||||
|
|
||||||
JSONObject result = new JSONObject();
|
|
||||||
result.put("pushUrl", pushUrl);
|
|
||||||
result.put("playRtmpUrl", playRtmpUrl);
|
|
||||||
result.put("playFlvUrl", playFlvUrl);
|
|
||||||
result.put("playM3u8Url", playM3u8Url);
|
|
||||||
|
|
||||||
// 缓存到redis,设置过期时间(如1小时)
|
|
||||||
redisTemplate.opsForValue().set(cacheKey, result.toJSONString(), 1, TimeUnit.HOURS);
|
|
||||||
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-36
@@ -1,36 +0,0 @@
|
|||||||
package com.central.device.service.impl;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
||||||
import com.central.common.model.PageResult;
|
|
||||||
import com.central.common.service.impl.SuperServiceImpl;
|
|
||||||
import com.central.device.mapper.AgeDeviceFirmwareMapper;
|
|
||||||
import com.central.device.model.AgeDeviceFirmware;
|
|
||||||
import com.central.device.service.IAgeDeviceFirmwareService;
|
|
||||||
import lombok.extern.slf4j.Slf4j;
|
|
||||||
import org.apache.commons.collections4.MapUtils;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Firmware file information
|
|
||||||
*
|
|
||||||
* @author lsl
|
|
||||||
* @date 2024-12-19 17:52:54
|
|
||||||
*/
|
|
||||||
@Slf4j
|
|
||||||
@Service
|
|
||||||
public class AgeDeviceFirmwareServiceImpl extends SuperServiceImpl<AgeDeviceFirmwareMapper, AgeDeviceFirmware> implements IAgeDeviceFirmwareService {
|
|
||||||
/**
|
|
||||||
* 列表
|
|
||||||
* @param params
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public PageResult<AgeDeviceFirmware> findList(Map<String, Object> params){
|
|
||||||
Page<AgeDeviceFirmware> page = new Page<>(MapUtils.getInteger(params, "page"), MapUtils.getInteger(params, "limit"));
|
|
||||||
List<AgeDeviceFirmware> list = baseMapper.findList(page, params);
|
|
||||||
return PageResult.<AgeDeviceFirmware>builder().data(list).resp_code(0).count(page.getTotal()).build();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-36
@@ -1,36 +0,0 @@
|
|||||||
package com.central.device.service.impl;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
||||||
import com.central.common.model.PageResult;
|
|
||||||
import com.central.common.service.impl.SuperServiceImpl;
|
|
||||||
import com.central.device.mapper.AgeDeviceHmsMapper;
|
|
||||||
import com.central.device.model.AgeDeviceHms;
|
|
||||||
import com.central.device.service.IAgeDeviceHmsService;
|
|
||||||
import lombok.extern.slf4j.Slf4j;
|
|
||||||
import org.apache.commons.collections4.MapUtils;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Device's hms information
|
|
||||||
*
|
|
||||||
* @author lsl
|
|
||||||
* @date 2024-12-19 17:53:01
|
|
||||||
*/
|
|
||||||
@Slf4j
|
|
||||||
@Service
|
|
||||||
public class AgeDeviceHmsServiceImpl extends SuperServiceImpl<AgeDeviceHmsMapper, AgeDeviceHms> implements IAgeDeviceHmsService {
|
|
||||||
/**
|
|
||||||
* 列表
|
|
||||||
* @param params
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public PageResult<AgeDeviceHms> findList(Map<String, Object> params){
|
|
||||||
Page<AgeDeviceHms> page = new Page<>(MapUtils.getInteger(params, "page"), MapUtils.getInteger(params, "limit"));
|
|
||||||
List<AgeDeviceHms> list = baseMapper.findList(page, params);
|
|
||||||
return PageResult.<AgeDeviceHms>builder().data(list).resp_code(0).count(page.getTotal()).build();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-36
@@ -1,36 +0,0 @@
|
|||||||
package com.central.device.service.impl;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
||||||
import com.central.common.model.PageResult;
|
|
||||||
import com.central.common.service.impl.SuperServiceImpl;
|
|
||||||
import com.central.device.mapper.AgeDeviceLogsMapper;
|
|
||||||
import com.central.device.model.AgeDeviceLogs;
|
|
||||||
import com.central.device.service.IAgeDeviceLogsService;
|
|
||||||
import lombok.extern.slf4j.Slf4j;
|
|
||||||
import org.apache.commons.collections4.MapUtils;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Log for uploading logs
|
|
||||||
*
|
|
||||||
* @author lsl
|
|
||||||
* @date 2024-12-19 17:53:03
|
|
||||||
*/
|
|
||||||
@Slf4j
|
|
||||||
@Service
|
|
||||||
public class AgeDeviceLogsServiceImpl extends SuperServiceImpl<AgeDeviceLogsMapper, AgeDeviceLogs> implements IAgeDeviceLogsService {
|
|
||||||
/**
|
|
||||||
* 列表
|
|
||||||
* @param params
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public PageResult<AgeDeviceLogs> findList(Map<String, Object> params){
|
|
||||||
Page<AgeDeviceLogs> page = new Page<>(MapUtils.getInteger(params, "page"), MapUtils.getInteger(params, "limit"));
|
|
||||||
List<AgeDeviceLogs> list = baseMapper.findList(page, params);
|
|
||||||
return PageResult.<AgeDeviceLogs>builder().data(list).resp_code(0).count(page.getTotal()).build();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-36
@@ -1,36 +0,0 @@
|
|||||||
package com.central.device.service.impl;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
||||||
import com.central.common.model.PageResult;
|
|
||||||
import com.central.common.service.impl.SuperServiceImpl;
|
|
||||||
import com.central.device.mapper.AgeDevicePayloadMapper;
|
|
||||||
import com.central.device.model.AgeDevicePayload;
|
|
||||||
import com.central.device.service.IAgeDevicePayloadService;
|
|
||||||
import lombok.extern.slf4j.Slf4j;
|
|
||||||
import org.apache.commons.collections4.MapUtils;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The payload information of the device.
|
|
||||||
*
|
|
||||||
* @author lsl
|
|
||||||
* @date 2024-12-19 17:53:19
|
|
||||||
*/
|
|
||||||
@Slf4j
|
|
||||||
@Service
|
|
||||||
public class AgeDevicePayloadServiceImpl extends SuperServiceImpl<AgeDevicePayloadMapper, AgeDevicePayload> implements IAgeDevicePayloadService {
|
|
||||||
/**
|
|
||||||
* 列表
|
|
||||||
* @param params
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public PageResult<AgeDevicePayload> findList(Map<String, Object> params){
|
|
||||||
Page<AgeDevicePayload> page = new Page<>(MapUtils.getInteger(params, "page"), MapUtils.getInteger(params, "limit"));
|
|
||||||
List<AgeDevicePayload> list = baseMapper.findList(page, params);
|
|
||||||
return PageResult.<AgeDevicePayload>builder().data(list).resp_code(0).count(page.getTotal()).build();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-91
@@ -1,91 +0,0 @@
|
|||||||
package com.central.device.service.impl;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
||||||
import com.central.common.model.PageResult;
|
|
||||||
import com.central.common.service.impl.SuperServiceImpl;
|
|
||||||
import com.central.device.mapper.AgeDeviceMapper;
|
|
||||||
import com.central.device.model.AgeDevice;
|
|
||||||
import com.central.device.service.IAgeDeviceService;
|
|
||||||
import lombok.extern.slf4j.Slf4j;
|
|
||||||
import org.apache.commons.collections4.MapUtils;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
|
||||||
import org.springframework.util.CollectionUtils;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Device information
|
|
||||||
*
|
|
||||||
* @author lsl
|
|
||||||
* @date 2024-12-19 17:51:47
|
|
||||||
*/
|
|
||||||
@Slf4j
|
|
||||||
@Service
|
|
||||||
public class AgeDeviceServiceImpl extends SuperServiceImpl<AgeDeviceMapper, AgeDevice> implements IAgeDeviceService {
|
|
||||||
/**
|
|
||||||
* 列表
|
|
||||||
* @param params
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public PageResult<AgeDevice> findList(Map<String, Object> params){
|
|
||||||
Page<AgeDevice> page = new Page<>(MapUtils.getInteger(params, "page"), MapUtils.getInteger(params, "limit"));
|
|
||||||
List<AgeDevice> list = baseMapper.findList(page, params);
|
|
||||||
return PageResult.<AgeDevice>builder().data(list).resp_code(0).count(page.getTotal()).build();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public List<AgeDevice> findListByParams(Map<String, Object> params) {
|
|
||||||
QueryWrapper<AgeDevice> wrapper = new QueryWrapper<>();
|
|
||||||
// 添加查询条件
|
|
||||||
if (params.get("deviceSn") != null) {
|
|
||||||
wrapper.like("device_sn", params.get("deviceSn"));
|
|
||||||
}
|
|
||||||
if (params.get("deviceName") != null) {
|
|
||||||
wrapper.like("device_name", params.get("deviceName"));
|
|
||||||
}
|
|
||||||
if (params.get("deviceType") != null) {
|
|
||||||
wrapper.eq("device_type", params.get("deviceType"));
|
|
||||||
}
|
|
||||||
// 可以添加更多查询条件...
|
|
||||||
return this.list(wrapper);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public AgeDevice getByDeviceSn(String deviceSn) {
|
|
||||||
return this.getOne(new QueryWrapper<AgeDevice>().eq("device_sn", deviceSn));
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean checkDeviceSnExists(String deviceSn) {
|
|
||||||
return this.baseMapper.exists(new QueryWrapper<AgeDevice>()
|
|
||||||
.eq("device_sn", deviceSn));
|
|
||||||
}
|
|
||||||
|
|
||||||
@Transactional(rollbackFor = Exception.class)
|
|
||||||
@Override
|
|
||||||
public boolean importDevices(List<AgeDevice> deviceList) {
|
|
||||||
if (CollectionUtils.isEmpty(deviceList)) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
try {
|
|
||||||
// 批量保存,每批100条
|
|
||||||
int batchSize = 100;
|
|
||||||
int totalSize = deviceList.size();
|
|
||||||
|
|
||||||
for (int i = 0; i < totalSize; i += batchSize) {
|
|
||||||
int endIndex = Math.min(i + batchSize, totalSize);
|
|
||||||
List<AgeDevice> batch = deviceList.subList(i, endIndex);
|
|
||||||
this.saveBatch(batch, batchSize);
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
} catch (Exception e) {
|
|
||||||
log.error("批量导入设备信息失败", e);
|
|
||||||
throw new RuntimeException("批量导入设备信息失败", e);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-36
@@ -1,36 +0,0 @@
|
|||||||
package com.central.device.service.impl;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
||||||
import com.central.common.model.PageResult;
|
|
||||||
import com.central.common.service.impl.SuperServiceImpl;
|
|
||||||
import com.central.device.mapper.AgeFirmwareModelMapper;
|
|
||||||
import com.central.device.model.AgeFirmwareModel;
|
|
||||||
import com.central.device.service.IAgeFirmwareModelService;
|
|
||||||
import lombok.extern.slf4j.Slf4j;
|
|
||||||
import org.apache.commons.collections4.MapUtils;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* @author lsl
|
|
||||||
* @date 2024-12-19 17:53:20
|
|
||||||
*/
|
|
||||||
@Slf4j
|
|
||||||
@Service
|
|
||||||
public class AgeFirmwareModelServiceImpl extends SuperServiceImpl<AgeFirmwareModelMapper, AgeFirmwareModel> implements IAgeFirmwareModelService {
|
|
||||||
/**
|
|
||||||
* 列表
|
|
||||||
* @param params
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public PageResult<AgeFirmwareModel> findList(Map<String, Object> params){
|
|
||||||
Page<AgeFirmwareModel> page = new Page<>(MapUtils.getInteger(params, "page"), MapUtils.getInteger(params, "limit"));
|
|
||||||
List<AgeFirmwareModel> list = baseMapper.findList(page, params);
|
|
||||||
return PageResult.<AgeFirmwareModel>builder().data(list).resp_code(0).count(page.getTotal()).build();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-36
@@ -1,36 +0,0 @@
|
|||||||
package com.central.device.service.impl;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
||||||
import com.central.common.model.PageResult;
|
|
||||||
import com.central.common.service.impl.SuperServiceImpl;
|
|
||||||
import com.central.device.mapper.AgeWorkspaceMapper;
|
|
||||||
import com.central.device.model.AgeWorkspace;
|
|
||||||
import com.central.device.service.IAgeWorkspaceService;
|
|
||||||
import lombok.extern.slf4j.Slf4j;
|
|
||||||
import org.apache.commons.collections4.MapUtils;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* @author lsl
|
|
||||||
* @date 2024-12-19 17:52:26
|
|
||||||
*/
|
|
||||||
@Slf4j
|
|
||||||
@Service
|
|
||||||
public class AgeWorkspaceServiceImpl extends SuperServiceImpl<AgeWorkspaceMapper, AgeWorkspace> implements IAgeWorkspaceService {
|
|
||||||
/**
|
|
||||||
* 列表
|
|
||||||
* @param params
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public PageResult<AgeWorkspace> findList(Map<String, Object> params){
|
|
||||||
Page<AgeWorkspace> page = new Page<>(MapUtils.getInteger(params, "page"), MapUtils.getInteger(params, "limit"));
|
|
||||||
List<AgeWorkspace> list = baseMapper.findList(page, params);
|
|
||||||
return PageResult.<AgeWorkspace>builder().data(list).resp_code(0).count(page.getTotal()).build();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-36
@@ -1,36 +0,0 @@
|
|||||||
package com.central.device.service.impl;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
||||||
import com.central.common.model.PageResult;
|
|
||||||
import com.central.common.service.impl.SuperServiceImpl;
|
|
||||||
import com.central.device.mapper.IaFileMapper;
|
|
||||||
import com.central.device.model.IaFile;
|
|
||||||
import com.central.device.service.IIaFileService;
|
|
||||||
import lombok.extern.slf4j.Slf4j;
|
|
||||||
import org.apache.commons.collections4.MapUtils;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Media file information
|
|
||||||
*
|
|
||||||
* @author lsl
|
|
||||||
* @date 2024-12-19 17:52:18
|
|
||||||
*/
|
|
||||||
@Slf4j
|
|
||||||
@Service
|
|
||||||
public class IaFileServiceImpl extends SuperServiceImpl<IaFileMapper, IaFile> implements IIaFileService {
|
|
||||||
/**
|
|
||||||
* 列表
|
|
||||||
* @param params
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public PageResult<IaFile> findList(Map<String, Object> params){
|
|
||||||
Page<IaFile> page = new Page<>(MapUtils.getInteger(params, "page"), MapUtils.getInteger(params, "limit"));
|
|
||||||
List<IaFile> list = baseMapper.findList(page, params);
|
|
||||||
return PageResult.<IaFile>builder().data(list).resp_code(0).count(page.getTotal()).build();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-43
@@ -1,43 +0,0 @@
|
|||||||
package com.central.device.service.impl;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
||||||
import com.central.common.model.PageResult;
|
|
||||||
import com.central.common.service.impl.SuperServiceImpl;
|
|
||||||
import com.central.device.mapper.LineFileMapper;
|
|
||||||
import com.central.device.model.LineFile;
|
|
||||||
import com.central.device.service.ILineFileService;
|
|
||||||
import lombok.extern.slf4j.Slf4j;
|
|
||||||
import org.apache.commons.collections4.MapUtils;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Wayline file information
|
|
||||||
*
|
|
||||||
* @author lsl
|
|
||||||
* @date 2024-12-19 17:51:52
|
|
||||||
*/
|
|
||||||
@Slf4j
|
|
||||||
@Service
|
|
||||||
public class LineFileServiceImpl extends SuperServiceImpl<LineFileMapper, LineFile> implements ILineFileService {
|
|
||||||
/**
|
|
||||||
* 列表
|
|
||||||
* @param params
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public PageResult<LineFile> findList(Map<String, Object> params){
|
|
||||||
Page<LineFile> page = new Page<>(MapUtils.getInteger(params, "page"), MapUtils.getInteger(params, "limit"));
|
|
||||||
List<LineFile> list = baseMapper.findList(page, params);
|
|
||||||
return PageResult.<LineFile>builder().data(list).resp_code(0).count(page.getTotal()).build();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public LineFile findLineFileByWaylineId(String waylineId) {
|
|
||||||
return baseMapper.selectOne(new QueryWrapper<LineFile>()
|
|
||||||
.eq("wayline_id",waylineId));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-36
@@ -1,36 +0,0 @@
|
|||||||
package com.central.device.service.impl;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
||||||
import com.central.common.model.PageResult;
|
|
||||||
import com.central.common.service.impl.SuperServiceImpl;
|
|
||||||
import com.central.device.mapper.LineJobMapper;
|
|
||||||
import com.central.device.model.LineJob;
|
|
||||||
import com.central.device.service.ILineJobService;
|
|
||||||
import lombok.extern.slf4j.Slf4j;
|
|
||||||
import org.apache.commons.collections4.MapUtils;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Wayline mission information of the dock.
|
|
||||||
*
|
|
||||||
* @author lsl
|
|
||||||
* @date 2024-12-19 17:51:53
|
|
||||||
*/
|
|
||||||
@Slf4j
|
|
||||||
@Service
|
|
||||||
public class LineJobServiceImpl extends SuperServiceImpl<LineJobMapper, LineJob> implements ILineJobService {
|
|
||||||
/**
|
|
||||||
* 列表
|
|
||||||
* @param params
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public PageResult<LineJob> findList(Map<String, Object> params){
|
|
||||||
Page<LineJob> page = new Page<>(MapUtils.getInteger(params, "page"), MapUtils.getInteger(params, "limit"));
|
|
||||||
List<LineJob> list = baseMapper.findList(page, params);
|
|
||||||
return PageResult.<LineJob>builder().data(list).resp_code(0).count(page.getTotal()).build();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-36
@@ -1,36 +0,0 @@
|
|||||||
package com.central.device.service.impl;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
||||||
import com.central.common.model.PageResult;
|
|
||||||
import com.central.common.service.impl.SuperServiceImpl;
|
|
||||||
import com.central.device.mapper.SFileIndexMapper;
|
|
||||||
import com.central.device.model.SFileIndex;
|
|
||||||
import com.central.device.service.ISFileIndexService;
|
|
||||||
import lombok.extern.slf4j.Slf4j;
|
|
||||||
import org.apache.commons.collections4.MapUtils;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The boot index table corresponding to the logs file.
|
|
||||||
*
|
|
||||||
* @author lsl
|
|
||||||
* @date 2024-12-19 17:53:23
|
|
||||||
*/
|
|
||||||
@Slf4j
|
|
||||||
@Service
|
|
||||||
public class SFileIndexServiceImpl extends SuperServiceImpl<SFileIndexMapper, SFileIndex> implements ISFileIndexService {
|
|
||||||
/**
|
|
||||||
* 列表
|
|
||||||
* @param params
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public PageResult<SFileIndex> findList(Map<String, Object> params){
|
|
||||||
Page<SFileIndex> page = new Page<>(MapUtils.getInteger(params, "page"), MapUtils.getInteger(params, "limit"));
|
|
||||||
List<SFileIndex> list = baseMapper.findList(page, params);
|
|
||||||
return PageResult.<SFileIndex>builder().data(list).resp_code(0).count(page.getTotal()).build();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-36
@@ -1,36 +0,0 @@
|
|||||||
package com.central.device.service.impl;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
||||||
import com.central.common.model.PageResult;
|
|
||||||
import com.central.common.service.impl.SuperServiceImpl;
|
|
||||||
import com.central.device.mapper.SFileMapper;
|
|
||||||
import com.central.device.model.SFile;
|
|
||||||
import com.central.device.service.ISFileService;
|
|
||||||
import lombok.extern.slf4j.Slf4j;
|
|
||||||
import org.apache.commons.collections4.MapUtils;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Logs file information
|
|
||||||
*
|
|
||||||
* @author lsl
|
|
||||||
* @date 2024-12-19 17:53:36
|
|
||||||
*/
|
|
||||||
@Slf4j
|
|
||||||
@Service
|
|
||||||
public class SFileServiceImpl extends SuperServiceImpl<SFileMapper, SFile> implements ISFileService {
|
|
||||||
/**
|
|
||||||
* 列表
|
|
||||||
* @param params
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public PageResult<SFile> findList(Map<String, Object> params){
|
|
||||||
Page<SFile> page = new Page<>(MapUtils.getInteger(params, "page"), MapUtils.getInteger(params, "limit"));
|
|
||||||
List<SFile> list = baseMapper.findList(page, params);
|
|
||||||
return PageResult.<SFile>builder().data(list).resp_code(0).count(page.getTotal()).build();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-37
@@ -1,37 +0,0 @@
|
|||||||
package com.central.device.util;
|
|
||||||
|
|
||||||
import com.alibaba.fastjson.JSONObject;
|
|
||||||
import com.fasterxml.jackson.core.JsonProcessingException;
|
|
||||||
import com.fasterxml.jackson.databind.JsonNode;
|
|
||||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
|
||||||
import lombok.Getter;
|
|
||||||
import lombok.Setter;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* IOT request result model
|
|
||||||
* @author lsl
|
|
||||||
* @date 2025-02-25
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
@Setter
|
|
||||||
@Getter
|
|
||||||
public class IotRequestResult {
|
|
||||||
|
|
||||||
private String message;
|
|
||||||
private Integer status;
|
|
||||||
private Long timestamp;
|
|
||||||
private String code;
|
|
||||||
private List<JSONObject> result;
|
|
||||||
|
|
||||||
public static IotRequestResult getInstance(JSONObject message) throws JsonProcessingException {
|
|
||||||
ObjectMapper objectMapper = new ObjectMapper();
|
|
||||||
|
|
||||||
// 将JSONObject转换为JsonNode,因为ObjectMapper不直接接受JSONObject
|
|
||||||
JsonNode jsonNode = objectMapper.readTree(message.toString());
|
|
||||||
|
|
||||||
// 将JsonNode转换为指定的Java类
|
|
||||||
return objectMapper.treeToValue(jsonNode, IotRequestResult.class);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,52 +0,0 @@
|
|||||||
package com.central.device.util;
|
|
||||||
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 获取map各类型值工具类
|
|
||||||
* @author lishilin
|
|
||||||
* @date 2020/03/12
|
|
||||||
*/
|
|
||||||
public class MapUtil {
|
|
||||||
public static String getStrValue(Map<String, Object> param, String id) {
|
|
||||||
Object val = getValue(param, id);
|
|
||||||
if (null == val) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return val.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static Integer getIntValue(Map<String, Object> param, String id) {
|
|
||||||
Object val = getValue(param, id);
|
|
||||||
if (null == val) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
try {
|
|
||||||
return Integer.parseInt(param.get(id).toString());
|
|
||||||
} catch (NumberFormatException exp) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static Long getLongValue(Map<String, Object> param, String id) {
|
|
||||||
Object val = getValue(param, id);
|
|
||||||
if (null == val) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
try {
|
|
||||||
return Long.parseLong(param.get(id).toString());
|
|
||||||
} catch (NumberFormatException exp) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static Object getValue(Map<String, Object> param, String id) {
|
|
||||||
if (null == param && null == id) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
if (param.containsKey(id)) {
|
|
||||||
return param.get(id);
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,118 +0,0 @@
|
|||||||
package com.central.device.util;
|
|
||||||
|
|
||||||
import com.alibaba.fastjson.JSON;
|
|
||||||
import com.alibaba.fastjson.JSONObject;
|
|
||||||
import com.central.device.util.http.HeaderUtils;
|
|
||||||
import com.central.device.util.http.HttpRequest;
|
|
||||||
import com.central.device.util.http.Response;
|
|
||||||
import com.central.device.util.http.SimpleHttpRequest;
|
|
||||||
import lombok.extern.slf4j.Slf4j;
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.stereotype.Component;
|
|
||||||
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @author LSL
|
|
||||||
*/
|
|
||||||
@Slf4j
|
|
||||||
@Component
|
|
||||||
public class RequestUtils {
|
|
||||||
|
|
||||||
@Autowired
|
|
||||||
private HeaderUtils headerUtils;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 获取post请求result
|
|
||||||
* @param url 请求url
|
|
||||||
* @param jsonObject 请求参数
|
|
||||||
* @return
|
|
||||||
* @throws IOException
|
|
||||||
*/
|
|
||||||
public Map<String, String> getPostRequestResultMap(String url, JSONObject jsonObject) throws IOException {
|
|
||||||
log.debug(url);
|
|
||||||
HttpRequest request = new SimpleHttpRequest(url);
|
|
||||||
request.headers(headerUtils.createHeadersOfJsonString(jsonObject.toJSONString()));
|
|
||||||
request.requestBody(jsonObject.toJSONString());
|
|
||||||
Response response = request.post();
|
|
||||||
Map<String, String> result = Utils.queryStringToMap(new String(response.asBytes(), "utf8"), "utf8");
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 获取post请求result
|
|
||||||
* @param url 请求url
|
|
||||||
* @param param 请求参数
|
|
||||||
* @return
|
|
||||||
* @throws IOException
|
|
||||||
*/
|
|
||||||
public Map<String, String> getPostRequestResultMap(String url, Map param) throws IOException {
|
|
||||||
log.debug(url);
|
|
||||||
HttpRequest request = new SimpleHttpRequest(url);
|
|
||||||
request.headers(headerUtils.createHeadersOfJsonString(JSON.toJSONString(param)));
|
|
||||||
request.requestBody(JSON.toJSONString(param));
|
|
||||||
Response response = request.post();
|
|
||||||
Map<String, String> result = Utils.queryStringToMap(new String(response.asBytes(), "utf8"), "utf8");
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 获取post请求result
|
|
||||||
* @param url 请求url
|
|
||||||
* @param body 请求参数
|
|
||||||
* @return
|
|
||||||
* @throws IOException
|
|
||||||
*/
|
|
||||||
public Map<String, String> getPostRequestResultMap(String url, String body) throws IOException {
|
|
||||||
log.debug(url);
|
|
||||||
HttpRequest request = new SimpleHttpRequest(url);
|
|
||||||
request.headers(headerUtils.createHeadersOfJsonString(body));
|
|
||||||
request.requestBody(body);
|
|
||||||
Response response = request.post();
|
|
||||||
Map<String, String> result = Utils.queryStringToMap(new String(response.asBytes(), "utf8"), "utf8");
|
|
||||||
log.debug(""+result.get(""));
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param url 请求url
|
|
||||||
* @param map 请求参数map
|
|
||||||
* @return
|
|
||||||
* @throws IOException
|
|
||||||
*/
|
|
||||||
public Map<String, String> getGetRequestResultMap(String url,Map map) throws IOException {
|
|
||||||
HttpRequest request = new SimpleHttpRequest(url);
|
|
||||||
request.headers(headerUtils.createHeadersOfParams(map));
|
|
||||||
|
|
||||||
Response response = request.get();
|
|
||||||
Map<String, String> result = Utils.queryStringToMap(new String(response.asBytes(), "utf8"), "utf8");
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 获取post请求result
|
|
||||||
* @param url 请求url
|
|
||||||
* @param param 请求参数
|
|
||||||
* @return
|
|
||||||
* @throws IOException
|
|
||||||
*/
|
|
||||||
public Map<String, String> getThirdPartyPostRequestResultMap(String url, Map param) {
|
|
||||||
log.info("url:{} , {}",url,param);
|
|
||||||
HttpRequest request = new SimpleHttpRequest(url);
|
|
||||||
request.headers(headerUtils.createHeadersOfJsonString(JSON.toJSONString(param)));
|
|
||||||
request.requestBody(JSON.toJSONString(param));
|
|
||||||
Response response;
|
|
||||||
Map<String, String> result = null;
|
|
||||||
try {
|
|
||||||
response = request.post();
|
|
||||||
result = Utils.queryStringToMap(new String(response.asBytes(), "utf8"), "utf8");
|
|
||||||
} catch (IOException e) {
|
|
||||||
log.info("查询异常:{}",e.getMessage());
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
package com.central.device.util;
|
|
||||||
|
|
||||||
import org.apache.commons.codec.digest.DigestUtils;
|
|
||||||
|
|
||||||
public class TencentLiveUtil {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 生成推流地址
|
|
||||||
*/
|
|
||||||
public static String generatePushUrl(String pushDomain, String appName, String streamName, String key, long expireTime) {
|
|
||||||
String txTime = Long.toHexString(expireTime).toUpperCase();
|
|
||||||
String txSecret = DigestUtils.md5Hex(key + streamName + txTime).toLowerCase();
|
|
||||||
return String.format("rtmp://%s/%s/%s?txSecret=%s&txTime=%s", pushDomain, appName, streamName, txSecret, txTime);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 生成拉流地址
|
|
||||||
*/
|
|
||||||
public static String generatePlayUrl(String playDomain, String appName, String streamName, String type) {
|
|
||||||
switch (type.toLowerCase()) {
|
|
||||||
case "flv":
|
|
||||||
return String.format("http://%s/%s/%s.flv", playDomain, appName, streamName);
|
|
||||||
case "m3u8":
|
|
||||||
return String.format("http://%s/%s/%s.m3u8", playDomain, appName, streamName);
|
|
||||||
case "rtmp":
|
|
||||||
default:
|
|
||||||
return String.format("rtmp://%s/%s/%s", playDomain, appName, streamName);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,47 +0,0 @@
|
|||||||
package com.central.device.util;
|
|
||||||
|
|
||||||
import java.io.*;
|
|
||||||
import java.net.URLDecoder;
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @author lishilin
|
|
||||||
* @see
|
|
||||||
* @since 2.0
|
|
||||||
*/
|
|
||||||
public class Utils {
|
|
||||||
public static Map<String,String> queryStringToMap(String queryString, String charset){
|
|
||||||
try {
|
|
||||||
Map<String,String> map = new HashMap<>();
|
|
||||||
|
|
||||||
String[] decode = URLDecoder.decode(queryString,charset).split("&");
|
|
||||||
for (String keyValue : decode) {
|
|
||||||
String[] kv = keyValue.split("[=]",2);
|
|
||||||
map.put(kv.length>1?kv[1]:"",kv[0]);
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
} catch (UnsupportedEncodingException e) {
|
|
||||||
throw new UnsupportedOperationException(e);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 读文件
|
|
||||||
*
|
|
||||||
* @param file 文件
|
|
||||||
* @return
|
|
||||||
* @throws IOException
|
|
||||||
* @throws IOException
|
|
||||||
*/
|
|
||||||
public static String readTxt(File file) throws IOException {
|
|
||||||
String s = "";
|
|
||||||
InputStreamReader in = new InputStreamReader(new FileInputStream(file), "UTF-8");
|
|
||||||
BufferedReader br = new BufferedReader(in);
|
|
||||||
StringBuffer content = new StringBuffer();
|
|
||||||
while ((s = br.readLine()) != null) {
|
|
||||||
content = content.append(s);
|
|
||||||
}
|
|
||||||
return content.toString();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-81
@@ -1,81 +0,0 @@
|
|||||||
package com.central.device.util.http;
|
|
||||||
|
|
||||||
import org.apache.commons.codec.binary.Hex;
|
|
||||||
import org.apache.commons.codec.digest.DigestUtils;
|
|
||||||
import org.springframework.beans.factory.annotation.Value;
|
|
||||||
import org.springframework.stereotype.Component;
|
|
||||||
|
|
||||||
import java.security.MessageDigest;
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.Map;
|
|
||||||
import java.util.TreeMap;
|
|
||||||
import java.util.stream.Collectors;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @author lishilin
|
|
||||||
* @see
|
|
||||||
* @since 1.0
|
|
||||||
*/
|
|
||||||
@Component
|
|
||||||
public class HeaderUtils {
|
|
||||||
|
|
||||||
@Value("${jetlinks.clientId}")
|
|
||||||
private String xClientId;// = "WFMfEGS8iHrEPRBH" ;
|
|
||||||
|
|
||||||
@Value("${jetlinks.secureKey}")
|
|
||||||
private String secureKey;// = "ihat3zHC6T7xPZYFAEnG3tExQiFANd2n" ;
|
|
||||||
public Map<String, String> createHeadersOfParams(Map<String, Object> params) {
|
|
||||||
//时间戳
|
|
||||||
String xTimestamp = String.valueOf(System.currentTimeMillis());
|
|
||||||
//openApi客户端id
|
|
||||||
// String xClientId = "rN7cpmQb884W4hcH";
|
|
||||||
//密钥
|
|
||||||
// String secureKey = "hBYtiNxQrA8FZbtetGhCZJPi";
|
|
||||||
//将参数按ASCII排序后拼接为k1=v1&k2=v2的格式
|
|
||||||
String paramString = new TreeMap<>(params).entrySet()
|
|
||||||
.stream()
|
|
||||||
.map(e -> e.getKey().concat("=").concat(String.valueOf(e.getValue())))
|
|
||||||
.collect(Collectors.joining("&"));
|
|
||||||
|
|
||||||
System.out.println(paramString);
|
|
||||||
|
|
||||||
//param+X-Timestamp+SecureKey通过MD5加密
|
|
||||||
MessageDigest digest = DigestUtils.getMd5Digest();
|
|
||||||
System.out.println(paramString + xTimestamp + secureKey);
|
|
||||||
digest.update(paramString.getBytes());
|
|
||||||
digest.update(xTimestamp.getBytes());
|
|
||||||
digest.update(secureKey.getBytes());
|
|
||||||
|
|
||||||
Map<String, String> headers = new HashMap<>();
|
|
||||||
headers.put("X-Sign", Hex.encodeHexString(digest.digest()));
|
|
||||||
headers.put("X-Client-Id", xClientId);
|
|
||||||
headers.put("X-Timestamp", xTimestamp);
|
|
||||||
|
|
||||||
return headers;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public Map<String, String> createHeadersOfJsonString(String jsonString) {
|
|
||||||
//时间戳
|
|
||||||
String xTimestamp = String.valueOf(System.currentTimeMillis());
|
|
||||||
//openApi客户端id
|
|
||||||
// String xClientId = "rN7cpmQb884W4hcH";
|
|
||||||
//密钥
|
|
||||||
// String secureKey = "hBYtiNxQrA8FZbtetGhCZJPi";
|
|
||||||
|
|
||||||
|
|
||||||
//param+X-Timestamp+SecureKey通过MD5加密
|
|
||||||
MessageDigest digest = DigestUtils.getMd5Digest();
|
|
||||||
System.out.println(jsonString + xTimestamp + secureKey);
|
|
||||||
digest.update(jsonString.getBytes());
|
|
||||||
digest.update(xTimestamp.getBytes());
|
|
||||||
digest.update(secureKey.getBytes());
|
|
||||||
|
|
||||||
Map<String, String> headers = new HashMap<>(5);
|
|
||||||
headers.put("X-Sign", Hex.encodeHexString(digest.digest()));
|
|
||||||
headers.put("X-Client-Id", xClientId);
|
|
||||||
headers.put("X-Timestamp", xTimestamp);
|
|
||||||
|
|
||||||
return headers;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-39
@@ -1,39 +0,0 @@
|
|||||||
package com.central.device.util.http;
|
|
||||||
|
|
||||||
import java.io.Closeable;
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @author wang
|
|
||||||
* @see
|
|
||||||
* @since 1.0
|
|
||||||
*/
|
|
||||||
public interface HttpRequest extends Closeable {
|
|
||||||
|
|
||||||
Response get() throws IOException;
|
|
||||||
|
|
||||||
Response post() throws IOException;
|
|
||||||
|
|
||||||
Response put() throws IOException;
|
|
||||||
|
|
||||||
Response delete() throws IOException;
|
|
||||||
|
|
||||||
Response patch() throws IOException;
|
|
||||||
|
|
||||||
HttpRequest encode(String encode);
|
|
||||||
|
|
||||||
HttpRequest contentType(String type);
|
|
||||||
|
|
||||||
HttpRequest param(String name, String value);
|
|
||||||
|
|
||||||
HttpRequest params(Map<String, Object> params);
|
|
||||||
|
|
||||||
HttpRequest header(String name, String value);
|
|
||||||
|
|
||||||
HttpRequest headers(Map<String, String> headers);
|
|
||||||
|
|
||||||
HttpRequest requestBody(String body);
|
|
||||||
|
|
||||||
HttpRequest resultAsJsonString();
|
|
||||||
}
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
package com.central.device.util.http;
|
|
||||||
|
|
||||||
import java.io.IOException;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @author wang
|
|
||||||
* @see
|
|
||||||
* @since 1.0
|
|
||||||
*/
|
|
||||||
public interface Response {
|
|
||||||
|
|
||||||
byte[] asBytes() throws IOException;
|
|
||||||
}
|
|
||||||
-184
@@ -1,184 +0,0 @@
|
|||||||
package com.central.device.util.http;
|
|
||||||
|
|
||||||
import org.apache.http.HttpResponse;
|
|
||||||
import org.apache.http.NameValuePair;
|
|
||||||
import org.apache.http.client.HttpClient;
|
|
||||||
import org.apache.http.client.entity.UrlEncodedFormEntity;
|
|
||||||
import org.apache.http.client.methods.*;
|
|
||||||
import org.apache.http.entity.ContentType;
|
|
||||||
import org.apache.http.entity.StringEntity;
|
|
||||||
import org.apache.http.impl.client.CloseableHttpClient;
|
|
||||||
import org.apache.http.impl.client.HttpClientBuilder;
|
|
||||||
import org.apache.http.message.BasicNameValuePair;
|
|
||||||
import org.apache.http.util.EntityUtils;
|
|
||||||
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.io.UnsupportedEncodingException;
|
|
||||||
import java.util.LinkedHashMap;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
import java.util.stream.Collectors;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @author wang
|
|
||||||
* @see
|
|
||||||
* @since 1.0
|
|
||||||
*/
|
|
||||||
public class SimpleHttpRequest implements HttpRequest {
|
|
||||||
|
|
||||||
private Map<String, Object> params = new LinkedHashMap<>();
|
|
||||||
private Map<String, String> headers = new LinkedHashMap<>();
|
|
||||||
private String url;
|
|
||||||
private String requestBody;
|
|
||||||
private String contentType;
|
|
||||||
private String encode = "utf-8";
|
|
||||||
protected HttpClient httpClient;
|
|
||||||
|
|
||||||
public SimpleHttpRequest(String url) {
|
|
||||||
this.url = url;
|
|
||||||
createHttpClient();
|
|
||||||
}
|
|
||||||
|
|
||||||
public SimpleHttpRequest(String url, HttpClient client) {
|
|
||||||
this.url = url;
|
|
||||||
this.httpClient = client;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected void createHttpClient() {
|
|
||||||
if (httpClient == null) {
|
|
||||||
HttpClientBuilder builder = HttpClientBuilder.create();
|
|
||||||
httpClient = builder.build();
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Response get() throws IOException {
|
|
||||||
String param = EntityUtils.toString(createUrlEncodedFormEntity());
|
|
||||||
String tmpUrl = url + (url.contains("?") ? "&" : "?") + param;
|
|
||||||
HttpGet get = new HttpGet(tmpUrl);
|
|
||||||
HttpResponse response = execute(get);
|
|
||||||
return getResultValue(response);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Response post() throws IOException {
|
|
||||||
HttpPost post = new HttpPost(url);
|
|
||||||
if (requestBody != null)
|
|
||||||
post.setEntity(new StringEntity(requestBody, ContentType.create(contentType,encode)));
|
|
||||||
else {
|
|
||||||
post.setEntity(createUrlEncodedFormEntity());
|
|
||||||
}
|
|
||||||
HttpResponse response = execute(post);
|
|
||||||
return getResultValue(response);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Response put() throws IOException {
|
|
||||||
HttpPut put = new HttpPut(url);
|
|
||||||
if (requestBody != null)
|
|
||||||
put.setEntity(new StringEntity(requestBody, ContentType.create(contentType, encode)));
|
|
||||||
else {
|
|
||||||
|
|
||||||
put.setEntity(createUrlEncodedFormEntity());
|
|
||||||
}
|
|
||||||
HttpResponse response = execute(put);
|
|
||||||
return getResultValue(response);
|
|
||||||
}
|
|
||||||
|
|
||||||
protected UrlEncodedFormEntity createUrlEncodedFormEntity() throws UnsupportedEncodingException {
|
|
||||||
List<NameValuePair> nameValuePair = params.entrySet()
|
|
||||||
.stream().map(stringStringEntry ->
|
|
||||||
new BasicNameValuePair(stringStringEntry.getKey(), String.valueOf(stringStringEntry.getValue())))
|
|
||||||
.collect(Collectors.toList());
|
|
||||||
return new UrlEncodedFormEntity(nameValuePair, encode);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Response delete() throws IOException {
|
|
||||||
HttpDelete delete = new HttpDelete(url);
|
|
||||||
HttpResponse response = execute(delete);
|
|
||||||
return getResultValue(response);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Response patch() throws IOException {
|
|
||||||
HttpPatch delete = new HttpPatch(url);
|
|
||||||
if (requestBody != null)
|
|
||||||
delete.setEntity(new StringEntity(requestBody, ContentType.create(contentType)));
|
|
||||||
else {
|
|
||||||
delete.setEntity(createUrlEncodedFormEntity());
|
|
||||||
}
|
|
||||||
return getResultValue(execute(delete));
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void close() throws IOException {
|
|
||||||
if (httpClient != null && httpClient instanceof CloseableHttpClient) {
|
|
||||||
((CloseableHttpClient) httpClient).close();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public HttpRequest resultAsJsonString() {
|
|
||||||
header("Accept", "application/json");
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public HttpRequest requestBody(String body) {
|
|
||||||
contentType("application/json");
|
|
||||||
this.requestBody = body;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public HttpRequest encode(String encode) {
|
|
||||||
this.encode = encode;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public HttpRequest contentType(String type) {
|
|
||||||
this.contentType = type;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public HttpRequest param(String name, String value) {
|
|
||||||
this.params.put(name, value);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public HttpRequest params(Map<String, Object> params) {
|
|
||||||
this.params.putAll(params);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public HttpRequest header(String name, String value) {
|
|
||||||
this.headers.put(name, value);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public HttpRequest headers(Map<String, String> header) {
|
|
||||||
this.headers.putAll(header);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
private Response getResultValue(HttpResponse res) throws IOException {
|
|
||||||
return new SimpleResponse(res);
|
|
||||||
}
|
|
||||||
|
|
||||||
private HttpResponse execute(HttpRequestBase request) throws IOException {
|
|
||||||
putHeader(request);
|
|
||||||
return httpClient.execute(request);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void putHeader(HttpUriRequest request) {
|
|
||||||
headers.forEach(request::setHeader);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user