Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gdtel-gztel-school-center
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴学德
gdtel-gztel-school-center
Commits
7b81901a
Commit
7b81901a
authored
Feb 22, 2021
by
罗承锋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码同步模块提交
parent
e2749f1a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
82 additions
and
0 deletions
+82
-0
migration/src/main/java/com/winsun/migration/mapper/db3/YrymDatabases.java
+38
-0
migration/src/main/resources/application.yml
+44
-0
No files found.
migration/src/main/java/com/winsun/migration/mapper/db3/YrymDatabases.java
0 → 100644
View file @
7b81901a
package
com
.
winsun
.
migration
.
mapper
.
db3
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Select
;
import
org.springframework.stereotype.Component
;
import
java.util.List
;
import
java.util.Map
;
/**
* 一人一码数据接口
* @author chengfengluo
* @date 2021-02-02 10:06
*/
@Mapper
@Component
public
interface
YrymDatabases
{
@Select
(
"SELECT "
+
" du.*, "
+
" GROUP_CONCAT( dr.NAME ) role_name, "
+
" dus.spervisor "
+
" FROM "
+
" dzqd_user du "
+
" LEFT JOIN dzqd_user_role dur ON du.user_id = dur.user_id "
+
" LEFT JOIN dzqd_user_supervisor dus ON du.user_id = dus.id "
+
" LEFT JOIN dzqd_role dr ON dur.role_id = dr.role_id "
+
" GROUP BY "
+
" du.user_id "
)
List
<
Map
<
String
,
Object
>>
getLoginUserList
();
@Select
(
"select * from hhr_school_package where package_id is not null"
)
List
<
Map
<
String
,
Object
>>
getSchoolPackage
();
@Select
(
"select * from hhr_school_xb_package"
)
List
<
Map
<
String
,
Object
>>
getSchoolXbPackage
();
}
migration/src/main/resources/application.yml
0 → 100644
View file @
7b81901a
eureka
:
instance
:
hostname
:
localhost
# 心跳时间,即服务续约间隔时间(缺省为30s)
lease-renewal-interval-in-seconds
:
10
# 发呆时间,即服务续约到期时间(缺省为90s)
lease-expiration-duration-in-seconds
:
20
client
:
registry-fetch-interval-seconds
:
5
serviceUrl
:
defaultZone
:
http://localhost:20000/eureka/
server
:
port
:
8080
# 应用名称
spring
:
devtools
:
restart
:
enabled
:
false
application
:
name
:
migration
datasource
:
db1
:
jdbc-url
:
jdbc:mysql://localhost:3306/school_center?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
username
:
root
password
:
root
driver-class-name
:
com.mysql.cj.jdbc.Driver
db2
:
#jdbc-url: jdbc:mysql://172.18.101.171:3306/xyjl?useUnicode=true&characterEncoding=utf-8&serverTimezone=CTT&useSSL=false
#username: yzzx
#password: yzzx123!@#
jdbc-url
:
jdbc:mysql://localhost:3306/xyjl?useUnicode=true&characterEncoding=utf-8&serverTimezone=CTT&useSSL=false
username
:
root
password
:
root
driver-class-name
:
com.mysql.cj.jdbc.Driver
db3
:
#jdbc-url: jdbc:mysql://172.18.101.171:3306/dzqd?useUnicode=true&characterEncoding=utf-8&serverTimezone=CTT&useSSL=false
#username: yzzx
#password: yzzx123!@#
jdbc-url
:
jdbc:mysql://localhost:3306/dzqd?useUnicode=true&characterEncoding=utf-8&serverTimezone=CTT&useSSL=false
username
:
root
password
:
root
driver-class-name
:
com.mysql.cj.jdbc.Driver
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment