From abfd82a2d767883f379cbee4121f72829584dc5a Mon Sep 17 00:00:00 2001
From: wanggeng <450292408@qq.com>
Date: Fri, 22 Jul 2022 17:34:06 +0800
Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BA=86=E6=93=8D=E4=BD=9C?=
=?UTF-8?q?=E6=89=8B=E5=86=8C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/main/resources/application-test.yml | 26 +-
.../mybatis/mapper/manual/manual-mapper.xml | 313 ++++++++++++++++++
src/main/resources/templates/manual/list.html | 258 +++++++++++++++
src/main/resources/templates/manual/save.html | 148 +++++++++
.../resources/templates/manual/update.html | 166 ++++++++++
5 files changed, 897 insertions(+), 14 deletions(-)
create mode 100644 src/main/resources/mybatis/mapper/manual/manual-mapper.xml
create mode 100644 src/main/resources/templates/manual/list.html
create mode 100644 src/main/resources/templates/manual/save.html
create mode 100644 src/main/resources/templates/manual/update.html
diff --git a/src/main/resources/application-test.yml b/src/main/resources/application-test.yml
index acf4eb9..787eb21 100644
--- a/src/main/resources/application-test.yml
+++ b/src/main/resources/application-test.yml
@@ -1,7 +1,7 @@
server:
port: 7012
- ip: 127.0.0.1
- url: http://${server.ip}:7011/usercenter
+ ip: 39.99.41.54
+ url: http://${server.ip}:9199/usercenter
system-title: 青海省数字经济发展
system-sub-title: 统一用户管理系统
default-index-page: route/custom/index
@@ -21,23 +21,20 @@ spring:
cache: false
main:
allow-bean-definition-overriding: true
- mvc:
- pathmatch:
- matching-strategy: ant_path_matcher
servlet:
multipart:
max-file-size: 1GB
max-request-size: 1GB
datasource:
druid:
- url: jdbc:mysql://192.168.0.103:3306/db_qhsz_usercenter?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&autoReconnect=true&failOverReadOnly=false&useSSL=false&serverTimezone=UTC&nullCatalogMeansCurrent=true
+ url: jdbc:mysql://152.136.196.165:3306/qh_jcfw?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&autoReconnect=true&failOverReadOnly=false&useSSL=false&serverTimezone=UTC&nullCatalogMeansCurrent=true
db-type: mysql
driver-class-name: com.mysql.cj.jdbc.Driver
- username: root
- password: root
+ username: qh_jcfw
+ password: FX1$wf$4
initial-size: 2
min-idle: 2
- max-active: 5
+ max-active: 1000
max-wait: 60000
time-between-eviction-runs-millis: 60000
min-evictable-idle-time-millis: 300000
@@ -67,7 +64,7 @@ swagger:
base-package-list: ink.wgink,cn.com.tenlion
file:
- upload-path: C:\Users\wenc0\Desktop\UploadFiles\
+ upload-path: /root/projects/usercenter/uploadFiles/
image-types: png,jpg,jpeg,gif,blob
video-types: mp4,rmvb
audio-types: mp3,wmv,amr
@@ -87,10 +84,11 @@ app-token:
logging:
# enable-api-log: true
file:
- name: C:\Users\wenc0\Desktop\UploadFiles\logs\usercenter-logs.log
+ name: /root/projects/usercenter/logs/log.log
level:
root: error
- org.apache.kafka: error
- org.springframework.data.mongodb: info
- org.springframework.boot.autoconfigure.security.servlet: debug
ink.wgink: debug
+
+sms:
+ active: true
+ type: custom
diff --git a/src/main/resources/mybatis/mapper/manual/manual-mapper.xml b/src/main/resources/mybatis/mapper/manual/manual-mapper.xml
new file mode 100644
index 0000000..749ab60
--- /dev/null
+++ b/src/main/resources/mybatis/mapper/manual/manual-mapper.xml
@@ -0,0 +1,313 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ INSERT INTO manual_manual(
+ manual_id,
+ manual_title,
+ manual_summary,
+ manual_file_id,
+ manual_type,
+ gmt_create,
+ creator,
+ gmt_modified,
+ modifier,
+ is_delete
+ ) VALUES(
+ #{manualId},
+ #{manualTitle},
+ #{manualSummary},
+ #{manualFileId},
+ #{manualType},
+ #{gmtCreate},
+ #{creator},
+ #{gmtModified},
+ #{modifier},
+ #{isDelete}
+ )
+
+
+
+
+ UPDATE
+ manual_manual
+ SET
+ gmt_modified = #{gmtModified},
+ modifier = #{modifier},
+ is_delete = 1
+ WHERE
+ manual_id IN
+
+ #{manualIds[${index}]}
+
+
+
+
+
+ DELETE FROM
+ manual_manual
+ WHERE
+ manual_id IN
+
+ #{manualIds[${index}]}
+
+
+
+
+
+ UPDATE
+ manual_manual
+ SET
+
+ manual_title = #{manualTitle},
+
+
+ manual_summary = #{manualSummary},
+
+
+ manual_file_id = #{manualFileId},
+
+
+ manual_type = #{manualType},
+
+ gmt_modified = #{gmtModified},
+ modifier = #{modifier},
+ manual_id = manual_id
+ WHERE
+ manual_id = #{manualId}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/resources/templates/manual/list.html b/src/main/resources/templates/manual/list.html
new file mode 100644
index 0000000..6ccaa5a
--- /dev/null
+++ b/src/main/resources/templates/manual/list.html
@@ -0,0 +1,258 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/resources/templates/manual/save.html b/src/main/resources/templates/manual/save.html
new file mode 100644
index 0000000..a337cc7
--- /dev/null
+++ b/src/main/resources/templates/manual/save.html
@@ -0,0 +1,148 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/resources/templates/manual/update.html b/src/main/resources/templates/manual/update.html
new file mode 100644
index 0000000..928c860
--- /dev/null
+++ b/src/main/resources/templates/manual/update.html
@@ -0,0 +1,166 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file