Commit 7b81901a by 罗承锋

代码同步模块提交

parent e2749f1a
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();
}
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment