Compare commits
79 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8c7c34cda2 | ||
|
|
b0ee58a1b5 | ||
|
|
c3915dc8f5 | ||
|
|
ff4a197436 | ||
|
|
ad2d94a893 | ||
|
|
030e84ae16 | ||
|
|
60112e84e3 | ||
|
|
8f12d0e03e | ||
|
|
49ded8c568 | ||
|
|
a39ad579f9 | ||
|
|
657d357159 | ||
|
|
0d7d5722c1 | ||
|
|
36496e5825 | ||
|
|
5caffc9cc9 | ||
|
|
15bef7b17f | ||
|
|
4ac32753f1 | ||
|
|
131adc81a7 | ||
|
|
3135f76a2f | ||
|
|
08d81f724f | ||
|
|
29ef22c9b7 | ||
|
|
7738d7d153 | ||
|
|
20bc6e3ab5 | ||
|
|
2ea0557f4e | ||
|
|
1a35510801 | ||
|
|
5ad3029e0b | ||
|
|
cd51cfb052 | ||
|
|
4415eb30b2 | ||
|
|
78d094e4a2 | ||
|
|
8f5642d0b5 | ||
|
|
6c191aa96f | ||
|
|
f2d7156b4f | ||
|
|
d44c79f7b8 | ||
|
|
964ba77f8a | ||
|
|
7c1f135e99 | ||
|
|
1982ccd7ff | ||
|
|
5abaa743c0 | ||
|
|
52a8095334 | ||
|
|
654c997607 | ||
|
|
b31efb9ede | ||
|
|
195b58d798 | ||
|
|
0423de2683 | ||
|
|
27b593ba01 | ||
|
|
8c7b164166 | ||
|
|
bdc45b8890 | ||
|
|
2705bedc71 | ||
|
|
ae970d048c | ||
|
|
29f57c80ef | ||
|
|
80072bf7e0 | ||
|
|
8d377dfed7 | ||
|
|
633b6ffd29 | ||
|
|
cf3141198b | ||
|
|
c05d329614 | ||
|
|
ee08263e4a | ||
| 19ea08d5e0 | |||
|
|
f9809197e8 | ||
|
|
0090a922c6 | ||
|
|
0b26de20b9 | ||
|
|
1202f64bfc | ||
|
|
ce1738daf0 | ||
|
|
a41d824ca3 | ||
|
|
ac5a8450e8 | ||
|
|
01e817a5d6 | ||
|
|
01bf07fc42 | ||
|
|
633e914c9a | ||
|
|
37e69e7bda | ||
|
|
19fb90432a | ||
|
|
4a3c81a792 | ||
|
|
12d3073241 | ||
|
|
72838462ad | ||
|
|
327addf625 | ||
|
|
7fd3b6fdff | ||
| 4bfab6518e | |||
|
|
4655259153 | ||
|
|
cdb23726f8 | ||
|
|
68a1c9d28d | ||
|
|
30e815c027 | ||
|
|
ce10f91b5b | ||
| 65ac4b1dde | |||
| 926b85bf8d |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -9,3 +9,4 @@ public/electron/
|
|||||||
pnpm-lock.yaml
|
pnpm-lock.yaml
|
||||||
CLAUDE.md
|
CLAUDE.md
|
||||||
/public/dist/
|
/public/dist/
|
||||||
|
/docs/
|
||||||
|
|||||||
@@ -1,18 +0,0 @@
|
|||||||
@echo off
|
|
||||||
chcp 65001 >nul
|
|
||||||
|
|
||||||
REM 获取当前批处理文件所在目录
|
|
||||||
cd /d "%~dp0"
|
|
||||||
|
|
||||||
REM 检查是否有管理员权限
|
|
||||||
net session >nul 2>&1
|
|
||||||
if %errorlevel% == 0 (
|
|
||||||
REM 已有管理员权限,直接启动
|
|
||||||
start "" "NPQS9100.exe"
|
|
||||||
exit
|
|
||||||
) else (
|
|
||||||
REM 没有管理员权限,使用 PowerShell 以管理员身份启动(隐藏窗口)
|
|
||||||
powershell -WindowStyle Hidden -Command "Start-Process '%~dp0NPQS9100.exe' -Verb RunAs"
|
|
||||||
exit
|
|
||||||
)
|
|
||||||
|
|
||||||
@@ -4,27 +4,34 @@ NPQS-9100 升级与回滚说明
|
|||||||
|
|
||||||
一、升级步骤(超简单!)
|
一、升级步骤(超简单!)
|
||||||
----------------------------------------
|
----------------------------------------
|
||||||
1. 双击 upgrade.bat(首次会自动创建 upgrade 文件夹)
|
1. 先使用 Navicat 或其他工具手动导出数据库 SQL 备份
|
||||||
2. 将升级文件放入 upgrade/ 目录:
|
2. 双击 upgrade.bat(首次会自动创建 upgrade 文件夹)
|
||||||
- app.asar (前端升级包 - 文件)
|
3. 将升级文件放入 upgrade/ 目录:
|
||||||
- app.asar.unpacked\ (前端升级包 - 文件夹)
|
- app.asar + app.asar.unpacked\ (前端升级包,必须成套放入)
|
||||||
- entrance.jar (后端升级包)
|
- entrance.jar (后端升级包)
|
||||||
3. 再次双击 upgrade.bat 开始升级
|
4. 再次双击 upgrade.bat 开始升级
|
||||||
4. 等待完成后重启应用
|
5. 等待完成后重启应用
|
||||||
|
|
||||||
|
补充说明:
|
||||||
|
- 可以只升级后端
|
||||||
|
- 可以只升级前端,但前端升级时必须同时提供:
|
||||||
|
app.asar
|
||||||
|
app.asar.unpacked\
|
||||||
|
- 数据库不由 upgrade.bat 自动备份,请务必提前手动导出 SQL
|
||||||
|
|
||||||
二、回滚步骤
|
二、回滚步骤
|
||||||
----------------------------------------
|
----------------------------------------
|
||||||
如果升级后出现问题:
|
如果升级后出现问题:
|
||||||
1. 双击 rollback.bat
|
1. 双击 rollback.bat(仅回滚前后端程序文件)
|
||||||
2. 选择是否回滚数据库(谨慎!)
|
2. 等待完成后重启应用
|
||||||
3. 等待完成后重启应用
|
3. 如需恢复数据库,请手动执行升级前导出的 SQL
|
||||||
|
|
||||||
三、重要提示
|
三、重要提示
|
||||||
----------------------------------------
|
----------------------------------------
|
||||||
✓ 升级前会自动备份到 backup/ 目录
|
✓ 升级前会自动备份前后端程序文件到 backup/ 目录
|
||||||
✓ 数据库会自动备份到 mysql/data_backup/
|
|
||||||
✓ 升级日志保存在 logs/upgrade.log
|
✓ 升级日志保存在 logs/upgrade.log
|
||||||
✓ 多次升级时,backup/ 保存最后一次升级前的版本
|
✓ 多次升级时,backup/ 保存最后一次升级前的版本
|
||||||
|
✓ 数据库备份与恢复由人工处理,不再由脚本自动执行
|
||||||
|
|
||||||
四、紧急情况
|
四、紧急情况
|
||||||
----------------------------------------
|
----------------------------------------
|
||||||
@@ -32,15 +39,15 @@ NPQS-9100 升级与回滚说明
|
|||||||
|
|
||||||
【恢复前端】
|
【恢复前端】
|
||||||
copy /Y backup\app.asar resources\app.asar
|
copy /Y backup\app.asar resources\app.asar
|
||||||
|
rmdir /s /q resources\app.asar.unpacked
|
||||||
xcopy backup\app.asar.unpacked resources\app.asar.unpacked\ /E /I /Y
|
xcopy backup\app.asar.unpacked resources\app.asar.unpacked\ /E /I /Y
|
||||||
|
|
||||||
【恢复后端】
|
【恢复后端】
|
||||||
copy /Y backup\entrance.jar resources\extraResources\java\entrance.jar
|
copy /Y backup\entrance.jar resources\extraResources\java\entrance.jar
|
||||||
|
|
||||||
【恢复数据库】(慎用!)
|
【恢复数据库】
|
||||||
xcopy mysql\data_backup mysql\data\ /E /I /Y
|
请使用 Navicat 或其他工具执行升级前导出的 SQL 备份
|
||||||
|
|
||||||
========================================
|
========================================
|
||||||
详细文档请参考:doc/绿色包升级指南.md
|
如需完整技术文档,请联系交付方提供开发文档。
|
||||||
========================================
|
========================================
|
||||||
|
|
||||||
|
|||||||
@@ -1,29 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
||||||
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
|
|
||||||
<assemblyIdentity
|
|
||||||
version="1.0.0.0"
|
|
||||||
processorArchitecture="*"
|
|
||||||
name="NPQS9100"
|
|
||||||
type="win32"
|
|
||||||
/>
|
|
||||||
<description>NPQS-9100自动检测平台</description>
|
|
||||||
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
|
|
||||||
<security>
|
|
||||||
<requestedPrivileges>
|
|
||||||
<requestedExecutionLevel level="requireAdministrator" uiAccess="false"/>
|
|
||||||
</requestedPrivileges>
|
|
||||||
</security>
|
|
||||||
</trustInfo>
|
|
||||||
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
|
|
||||||
<application>
|
|
||||||
<!-- Windows 10 and Windows 11 -->
|
|
||||||
<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"/>
|
|
||||||
<!-- Windows 8.1 -->
|
|
||||||
<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/>
|
|
||||||
<!-- Windows 8 -->
|
|
||||||
<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"/>
|
|
||||||
<!-- Windows 7 -->
|
|
||||||
<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/>
|
|
||||||
</application>
|
|
||||||
</compatibility>
|
|
||||||
</assembly>
|
|
||||||
@@ -52,7 +52,8 @@ echo.
|
|||||||
|
|
||||||
echo ========================================
|
echo ========================================
|
||||||
echo 打包完成!
|
echo 打包完成!
|
||||||
echo 输出目录: out\win-unpacked\
|
echo 最终交付目录: out\NPQS-9100\
|
||||||
|
echo 原始输出目录: out\win-unpacked\ (已自动重命名)
|
||||||
echo ========================================
|
echo ========================================
|
||||||
echo.
|
echo.
|
||||||
pause
|
pause
|
||||||
|
|||||||
@@ -63,7 +63,8 @@ echo.
|
|||||||
|
|
||||||
echo ========================================
|
echo ========================================
|
||||||
echo ✓ 打包完成!
|
echo ✓ 打包完成!
|
||||||
echo 输出目录: out\win-unpacked\
|
echo 最终交付目录: out\NPQS-9100\
|
||||||
|
echo 原始输出目录: out\win-unpacked\ (已自动重命名)
|
||||||
echo ========================================
|
echo ========================================
|
||||||
echo.
|
echo.
|
||||||
pause
|
pause
|
||||||
|
|||||||
@@ -53,13 +53,13 @@ if exist "%LOGDIR%" (
|
|||||||
)
|
)
|
||||||
echo.
|
echo.
|
||||||
|
|
||||||
echo [4] 检查 MySQL 服务...
|
echo [4] 检查当前运行模式...
|
||||||
sc query mysql9100 >nul 2>&1
|
echo 当前版本为绿色包进程模式,不使用 MySQL Windows 服务
|
||||||
if %errorlevel% equ 0 (
|
if exist "mysql\my.ini" (
|
||||||
echo MySQL 服务存在
|
echo 检测到 MySQL 配置文件:
|
||||||
sc query mysql9100 | findstr "STATE"
|
findstr /i "^port=" "mysql\my.ini"
|
||||||
) else (
|
) else (
|
||||||
echo MySQL 服务不存在
|
echo 尚未检测到 mysql\my.ini(可能应用还未完整启动)
|
||||||
)
|
)
|
||||||
echo.
|
echo.
|
||||||
|
|
||||||
|
|||||||
@@ -33,9 +33,9 @@ mybatis-plus:
|
|||||||
#驼峰命名
|
#驼峰命名
|
||||||
map-underscore-to-camel-case: true
|
map-underscore-to-camel-case: true
|
||||||
#配置sql日志输出
|
#配置sql日志输出
|
||||||
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
# log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||||
#关闭日志输出
|
#关闭日志输出
|
||||||
# log-impl: org.apache.ibatis.logging.nologging.NoLoggingImpl
|
log-impl: org.apache.ibatis.logging.nologging.NoLoggingImpl
|
||||||
global-config:
|
global-config:
|
||||||
db-config:
|
db-config:
|
||||||
#指定主键生成策略
|
#指定主键生成策略
|
||||||
@@ -54,31 +54,33 @@ webSocket:
|
|||||||
port: 7778
|
port: 7778
|
||||||
|
|
||||||
#源参数下发,暂态数据默认值
|
#源参数下发,暂态数据默认值
|
||||||
Dip:
|
#Dip:
|
||||||
# 暂态前时间(s)
|
# 暂态前时间(s)
|
||||||
fPreTime: 2f
|
# fPreTime: 2f
|
||||||
#写入时间(s)
|
#写入时间(s)
|
||||||
fRampIn: 0.001f
|
# fRampIn: 0.001f
|
||||||
#写出时间(s)
|
#写出时间(s)
|
||||||
fRampOut: 0.001f
|
# fRampOut: 0.001f
|
||||||
# 暂态后时间(s)
|
# 暂态后时间(s)
|
||||||
fAfterTime: 3f
|
# fAfterTime: 3f
|
||||||
|
|
||||||
|
|
||||||
Flicker:
|
#Flicker:
|
||||||
waveFluType: CPM
|
# waveFluType: CPM
|
||||||
waveType: SQU
|
# waveType: SQU
|
||||||
fDutyCycle: 50f
|
# fDutyCycle: 50f
|
||||||
|
|
||||||
log:
|
#log:
|
||||||
homeDir: {{APP_DATA_PATH}}\logs
|
# homeDir: D:\logs
|
||||||
commonLevel: info
|
# commonLevel: info
|
||||||
report:
|
report:
|
||||||
template: {{APP_DATA_PATH}}\template
|
# template: D:\template
|
||||||
reportDir: {{APP_DATA_PATH}}\report
|
# reportDir: D:\report
|
||||||
dateFormat: yyyy年MM月dd日
|
dateFormat: yyyy年MM月dd日
|
||||||
data:
|
#data:
|
||||||
homeDir: {{APP_DATA_PATH}}\data
|
# homeDir: D:\data
|
||||||
|
#resource:
|
||||||
|
# videoDir: ${data.homeDir}\resources\videos
|
||||||
qr:
|
qr:
|
||||||
cloud: http://pqmcc.com:18082/api/file
|
cloud: http://pqmcc.com:18082/api/file
|
||||||
dev:
|
dev:
|
||||||
@@ -95,6 +97,8 @@ qr:
|
|||||||
db:
|
db:
|
||||||
type: mysql
|
type: mysql
|
||||||
|
|
||||||
|
icd:
|
||||||
|
txt-dir: ..\..\..\9100\DeviceControl\Config
|
||||||
|
|
||||||
# 比对录波需要的配置,晚点再做优化
|
# 比对录波需要的配置,晚点再做优化
|
||||||
# 系统配置
|
# 系统配置
|
||||||
@@ -116,3 +120,5 @@ activate:
|
|||||||
public-key: "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAnFMmIVanMxsW5S/qP8Wcxf/J3/i4631BP3UtWkRzO7jAw9HIAgK4Y7X53hXj6zMbfme1vMjQc0mq7m/KrH4WlTYpFexLO6Gnk8oH40F04tp+ABZIq93zNOydPEaVoZeTPH/LlkwrrxVGAMNNIKuebcqapp25JiWtlSFMv4kH/nDAj+2m8+P4zYVM1Ed6gO01eKDEYE3SBA1Ket2BfHTgviR/F8WKwlXh11enywsJnrHTM5dJQdlUxCjHy214TpheYOz/cv9elQnDfFAbmZW8mH5/hgMSTkm3h4uR7ITin6Erg+yc/t1kGaTWrzloyBRMSiFN/Pwr5yQjj+1wQqqUkwIDAQAB"
|
public-key: "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAnFMmIVanMxsW5S/qP8Wcxf/J3/i4631BP3UtWkRzO7jAw9HIAgK4Y7X53hXj6zMbfme1vMjQc0mq7m/KrH4WlTYpFexLO6Gnk8oH40F04tp+ABZIq93zNOydPEaVoZeTPH/LlkwrrxVGAMNNIKuebcqapp25JiWtlSFMv4kH/nDAj+2m8+P4zYVM1Ed6gO01eKDEYE3SBA1Ket2BfHTgviR/F8WKwlXh11enywsJnrHTM5dJQdlUxCjHy214TpheYOz/cv9elQnDfFAbmZW8mH5/hgMSTkm3h4uR7ITin6Erg+yc/t1kGaTWrzloyBRMSiFN/Pwr5yQjj+1wQqqUkwIDAQAB"
|
||||||
|
|
||||||
|
|
||||||
|
dataCheck:
|
||||||
|
enable: false
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
build/extraResources/mysql/data/#innodb_redo/#ib_redo51
Normal file
BIN
build/extraResources/mysql/data/#innodb_redo/#ib_redo51
Normal file
Binary file not shown.
BIN
build/extraResources/mysql/data/#innodb_redo/#ib_redo52
Normal file
BIN
build/extraResources/mysql/data/#innodb_redo/#ib_redo52
Normal file
Binary file not shown.
BIN
build/extraResources/mysql/data/#innodb_redo/#ib_redo53
Normal file
BIN
build/extraResources/mysql/data/#innodb_redo/#ib_redo53
Normal file
Binary file not shown.
BIN
build/extraResources/mysql/data/#innodb_redo/#ib_redo54
Normal file
BIN
build/extraResources/mysql/data/#innodb_redo/#ib_redo54
Normal file
Binary file not shown.
Binary file not shown.
BIN
build/extraResources/mysql/data/#innodb_redo/#ib_redo55
Normal file
BIN
build/extraResources/mysql/data/#innodb_redo/#ib_redo55
Normal file
Binary file not shown.
Binary file not shown.
BIN
build/extraResources/mysql/data/#innodb_redo/#ib_redo56
Normal file
BIN
build/extraResources/mysql/data/#innodb_redo/#ib_redo56
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1 +1 @@
|
|||||||
74476
|
51248
|
||||||
|
|||||||
Binary file not shown.
BIN
build/extraResources/mysql/data/binlog.000032
Normal file
BIN
build/extraResources/mysql/data/binlog.000032
Normal file
Binary file not shown.
BIN
build/extraResources/mysql/data/binlog.000033
Normal file
BIN
build/extraResources/mysql/data/binlog.000033
Normal file
Binary file not shown.
BIN
build/extraResources/mysql/data/binlog.000034
Normal file
BIN
build/extraResources/mysql/data/binlog.000034
Normal file
Binary file not shown.
BIN
build/extraResources/mysql/data/binlog.000035
Normal file
BIN
build/extraResources/mysql/data/binlog.000035
Normal file
Binary file not shown.
BIN
build/extraResources/mysql/data/binlog.000036
Normal file
BIN
build/extraResources/mysql/data/binlog.000036
Normal file
Binary file not shown.
BIN
build/extraResources/mysql/data/binlog.000037
Normal file
BIN
build/extraResources/mysql/data/binlog.000037
Normal file
Binary file not shown.
BIN
build/extraResources/mysql/data/binlog.000038
Normal file
BIN
build/extraResources/mysql/data/binlog.000038
Normal file
Binary file not shown.
BIN
build/extraResources/mysql/data/binlog.000039
Normal file
BIN
build/extraResources/mysql/data/binlog.000039
Normal file
Binary file not shown.
BIN
build/extraResources/mysql/data/binlog.000040
Normal file
BIN
build/extraResources/mysql/data/binlog.000040
Normal file
Binary file not shown.
BIN
build/extraResources/mysql/data/binlog.000041
Normal file
BIN
build/extraResources/mysql/data/binlog.000041
Normal file
Binary file not shown.
BIN
build/extraResources/mysql/data/binlog.000042
Normal file
BIN
build/extraResources/mysql/data/binlog.000042
Normal file
Binary file not shown.
@@ -7,3 +7,14 @@
|
|||||||
.\binlog.000029
|
.\binlog.000029
|
||||||
.\binlog.000030
|
.\binlog.000030
|
||||||
.\binlog.000031
|
.\binlog.000031
|
||||||
|
.\binlog.000032
|
||||||
|
.\binlog.000033
|
||||||
|
.\binlog.000034
|
||||||
|
.\binlog.000035
|
||||||
|
.\binlog.000036
|
||||||
|
.\binlog.000037
|
||||||
|
.\binlog.000038
|
||||||
|
.\binlog.000039
|
||||||
|
.\binlog.000040
|
||||||
|
.\binlog.000041
|
||||||
|
.\binlog.000042
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
build/extraResources/mysql/data/pqs9100/pq_dev_check_history.ibd
Normal file
BIN
build/extraResources/mysql/data/pqs9100/pq_dev_check_history.ibd
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
build/extraResources/mysql/data/pqs9100/pq_pqdif_path.ibd
Normal file
BIN
build/extraResources/mysql/data/pqs9100/pq_pqdif_path.ibd
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
build/extraResources/mysql/data/pqs9100/sys_resource_manage.ibd
Normal file
BIN
build/extraResources/mysql/data/pqs9100/sys_resource_manage.ibd
Normal file
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user