From 2c099f1fb0ef4355c117c4988bfb4142857970ac Mon Sep 17 00:00:00 2001
From: 刘小明 <liuxm_a@163.com>
Date: 星期六, 10 八月 2024 10:11:58 +0800
Subject: [PATCH] 优化代码
---
pms-parent/pms-global/src/main/resources/mapper/BaUserMapper.xml | 1 -
pms-parent/pms-global/src/main/resources/application-database.yml | 2 +-
pms-parent/pms-global/src/main/resources/application-global.yml | 52 ++++++++++++++++++++++++++--------------------------
3 files changed, 27 insertions(+), 28 deletions(-)
diff --git a/pms-parent/pms-global/src/main/resources/application-database.yml b/pms-parent/pms-global/src/main/resources/application-database.yml
index 81fbe3b..896aa10 100644
--- a/pms-parent/pms-global/src/main/resources/application-database.yml
+++ b/pms-parent/pms-global/src/main/resources/application-database.yml
@@ -3,7 +3,7 @@
datasource: #閰嶇疆鏁版嵁婧�
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
- url: jdbc:mysql://192.168.40.80:3306/pms?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull
+ url: jdbc:mysql://127.0.0.1:3306/pms?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull
username: root
password: dysql,;.abc!@#
druid:
diff --git a/pms-parent/pms-global/src/main/resources/application-global.yml b/pms-parent/pms-global/src/main/resources/application-global.yml
index f9f3ba4..0cefc56 100644
--- a/pms-parent/pms-global/src/main/resources/application-global.yml
+++ b/pms-parent/pms-global/src/main/resources/application-global.yml
@@ -50,12 +50,12 @@
- /sso/sso
pms:
global:
- dev: true #鏄惁寮�鍙戦樁娈碉紝true鎴杅alse锛屽紑鍙戦樁娈典笉杩涜鐧诲綍楠岃瘉鍙婃潈闄愰獙璇�
+ dev: false #鏄惁寮�鍙戦樁娈碉紝true鎴杅alse锛屽紑鍙戦樁娈典笉杩涜鐧诲綍楠岃瘉鍙婃潈闄愰獙璇�
ssoUserExpireAfterAccess: 60 #sso鐧诲綍鍚庯紝鐢ㄦ埛鍦ㄤ竴瀹氭椂闂达紙ssoUserExpireAfterAccess锛夛紙鍒嗛挓锛夊唴鏈闂郴缁燂紝绯荤粺娓呴櫎缂撳瓨淇℃伅锛屼娇鍏堕噸鏂扮櫥褰曠郴缁�
ssoCacheSizeInit: 10 #sso缂撳瓨鍒濆瀹归噺
ssoCacheSizeMax: 10000 #sso缂撳瓨鏈�澶у閲忥紝鍗虫敮鎸乻soCacheSizeMax涓敤鎴峰悓鏃剁櫥褰�
nginx:
- webPort: 8000
+ webPort: 54321
sso:
checkUrl: http://127.0.0.1:12344/sso/sso/ssoPowerCheck
curUserUrl: http://127.0.0.1:12344/sso/sso/ssoCurUser
@@ -114,109 +114,109 @@
supportedFileTypes: docx,xlsx,pdf
sv1:
id: dyFile1
- absolutePath: E:/java/nginx-1.24.0/html/webfiles/
+ absolutePath: D:/apps/pms/nginx/nginx-1.24.0/html/webfiles/
relativePath: webFile1
hashStart: 0
hashEnd: 5461
restUrl: http://127.0.0.1:${pms.file1.webPort}/file #file鏄笂涓嬫枃
- webUrl: http://127.0.0.1:${pms.nginx.webPort}/webfiles/ #nginx鏈嶅姟璺緞
+ webUrl: http://8.130.75.203:${pms.nginx.webPort}/webfiles/ #nginx鏈嶅姟璺緞
webDownloadPath: /download/down?id= #瀹為檯涓嬭浇webUrl= restUrl + webDownloadPath
sv2:
id: dyFile2
- absolutePath: E:/java/nginx-1.24.0/html/webfiles/
+ absolutePath: D:/apps/pms/nginx/nginx-1.24.0/html/webfiles/
relativePath: webFile2
hashStart: 5462
hashEnd: 10923
restUrl: http://127.0.0.1:${pms.file2.webPort}/file
- webUrl: http://127.0.0.1:${pms.nginx.webPort}/webfiles/
+ webUrl: http://8.130.75.203:${pms.nginx.webPort}/webfiles/
webDownloadPath: /download/down?id=
sv3:
id: dyFile3
- absolutePath: E:/java/nginx-1.24.0/html/webfiles/
+ absolutePath: D:/apps/pms/nginx/nginx-1.24.0/html/webfiles/
relativePath: webFile3
hashStart: 10924
hashEnd: 16385
restUrl: http://127.0.0.1:${pms.file3.webPort}/file
- webUrl: http://127.0.0.1:${pms.nginx.webPort}/webfiles/
+ webUrl: http://8.130.75.203:${pms.nginx.webPort}/webfiles/
webDownloadPath: /download/down?id=
sv4:
id: dyFile4
- absolutePath: E:/java/nginx-1.24.0/html/webfiles/
+ absolutePath: D:/apps/pms/nginx/nginx-1.24.0/html/webfiles/
relativePath: webFile4
hashStart: 16386
hashEnd: 21847
restUrl: http://127.0.0.1:${pms.file4.webPort}/file
- webUrl: http://127.0.0.1:${pms.nginx.webPort}/webfiles/
+ webUrl: http://8.130.75.203:${pms.nginx.webPort}/webfiles/
webDownloadPath: /download/down?id=
sv5:
id: dyFile5
- absolutePath: E:/java/nginx-1.24.0/html/webfiles/
+ absolutePath: D:/apps/pms/nginx/nginx-1.24.0/html/webfiles/
relativePath: webFile5
hashStart: 21848
hashEnd: 27309
restUrl: http://127.0.0.1:${pms.file5.webPort}/file
- webUrl: http://127.0.0.1:${pms.nginx.webPort}/webfiles/
+ webUrl: http://8.130.75.203:${pms.nginx.webPort}/webfiles/
webDownloadPath: /download/down?id=
sv6:
id: dyFile6
- absolutePath: E:/java/nginx-1.24.0/html/webfiles/
+ absolutePath: D:/apps/pms/nginx/nginx-1.24.0/html/webfiles/
relativePath: webFile6
hashStart: 27310
hashEnd: 32767
restUrl: http://127.0.0.1:${pms.file6.webPort}/file
- webUrl: http://127.0.0.1:${pms.nginx.webPort}/webfiles/
+ webUrl: http://8.130.75.203:${pms.nginx.webPort}/webfiles/
webDownloadPath: /download/down?id=
sv7:
id: dyFile7
- absolutePath: E:/java/nginx-1.24.0/html/webfiles/
+ absolutePath: D:/apps/pms/nginx/nginx-1.24.0/html/webfiles/
relativePath: webFile7
hashStart: 32768
hashEnd: 38229
restUrl: http://127.0.0.1:${pms.file7.webPort}/file
- webUrl: http://127.0.0.1:${pms.nginx.webPort}/webfiles/
+ webUrl: http://8.130.75.203:${pms.nginx.webPort}/webfiles/
webDownloadPath: /download/down?id=
sv8:
id: dyFile8
- absolutePath: E:/java/nginx-1.24.0/html/webfiles/
+ absolutePath: D:/apps/pms/nginx/nginx-1.24.0/html/webfiles/
relativePath: webFile8
hashStart: 38230
hashEnd: 43691
restUrl: http://127.0.0.1:${pms.file8.webPort}/file
- webUrl: http://127.0.0.1:${pms.nginx.webPort}/webfiles/
+ webUrl: http://8.130.75.203:${pms.nginx.webPort}/webfiles/
webDownloadPath: /download/down?id=
sv9:
id: dyFile9
- absolutePath: E:/java/nginx-1.24.0/html/webfiles/
+ absolutePath: D:/apps/pms/nginx/nginx-1.24.0/html/webfiles/
relativePath: webFile9
hashStart: 43692
hashEnd: 49153
restUrl: http://127.0.0.1:${pms.file9.webPort}/file
- webUrl: http://127.0.0.1:${pms.nginx.webPort}/webfiles/
+ webUrl: http://8.130.75.203:${pms.nginx.webPort}/webfiles/
webDownloadPath: /download/down?id=
sv10:
id: dyFile10
- absolutePath: E:/java/nginx-1.24.0/html/webfiles/
+ absolutePath: D:/apps/pms/nginx/nginx-1.24.0/html/webfiles/
relativePath: webFile10
hashStart: 49154
hashEnd: 54615
restUrl: http://127.0.0.1:${pms.file10.webPort}/file
- webUrl: http://127.0.0.1:${pms.nginx.webPort}/webfiles/
+ webUrl: http://8.130.75.203:${pms.nginx.webPort}/webfiles/
webDownloadPath: /download/down?id=
sv11:
id: dyFile11
- absolutePath: E:/java/nginx-1.24.0/html/webfiles/
+ absolutePath: D:/apps/pms/nginx/nginx-1.24.0/html/webfiles/
relativePath: webFile11
hashStart: 54616
hashEnd: 60077
restUrl: http://127.0.0.1:${pms.file11.webPort}/file
- webUrl: http://127.0.0.1:${pms.nginx.webPort}/webfiles/
+ webUrl: http://8.130.75.203:${pms.nginx.webPort}/webfiles/
webDownloadPath: /download/down?id=
sv12:
id: dyFile12
- absolutePath: E:/java/nginx-1.24.0/html/webfiles/
+ absolutePath: D:/apps/pms/nginx/nginx-1.24.0/html/webfiles/
relativePath: webFile12
hashStart: 60078
hashEnd: 65535
restUrl: http://127.0.0.1:${pms.file12.webPort}/file
- webUrl: http://127.0.0.1:${pms.nginx.webPort}/webfiles/
+ webUrl: http://8.130.75.203:${pms.nginx.webPort}/webfiles/
webDownloadPath: /download/down?id=
diff --git a/pms-parent/pms-global/src/main/resources/mapper/BaUserMapper.xml b/pms-parent/pms-global/src/main/resources/mapper/BaUserMapper.xml
index 9ebda5d..c4807ed 100644
--- a/pms-parent/pms-global/src/main/resources/mapper/BaUserMapper.xml
+++ b/pms-parent/pms-global/src/main/resources/mapper/BaUserMapper.xml
@@ -76,7 +76,6 @@
select
count(*)
from ba_user
- where deleted!=1
</select>
<select id="login" resultMap="loginResultMap" >
select
--
Gitblit v1.8.0