Commit 47301529 by 袁伟铭

修改配置

parent 2a52f6d2
......@@ -28,7 +28,7 @@ spring:
driverClassName: ${jdbc.driver-class-name}
username: ${jdbc.username}
password: ${jdbc.password}
url: ${jdbc.url}
url: ${jdbc.master.url}
# 初始连接数
initial-size: 5
# 最小连接数
......
......@@ -26,14 +26,20 @@ redis.url: 127.0.0.1
redis.port: 6379
#数据库源配置
#jdbc.driver-class-name: com.mysql.cj.jdbc.Driver
#jdbc.username: root
#jdbc.password: rooT123!321
#jdbc.url: jdbc:mysql://192.168.0.193:3306/mz_big_data?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai
jdbc.driver-class-name: com.mysql.cj.jdbc.Driver
jdbc.username: root
jdbc.password: Dk2019!23456
jdbc.url: jdbc:mysql://47.107.148.253:3306/mz_big_data?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai
jdbc.master.url: jdbc:mysql://47.107.148.253:3306/mz_big_data?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai
jdbc.gxbz.url: jdbc:mysql://47.107.148.253:3306/gx-bz?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai
jdbc.gxcj.url: jdbc:mysql://47.107.148.253:3306/gx-cj?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai
jdbc.gxdb.url: jdbc:mysql://47.107.148.253:3306/gx-db?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai
jdbc.gxhy.url: jdbc:mysql://47.107.148.253:3306/gx-hy?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai
jdbc.gxshzz.url: jdbc:mysql://47.107.148.253:3306/shzz?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai
jdbc.gxet.url: jdbc:mysql://47.107.148.253:3306/gx-et?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai
jdbc.gxyl.url: jdbc:mysql://47.107.148.253:3306/gx-yl?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai
jdbc.gxshjz.url: jdbc:mysql://47.107.148.253:3306/gx-shjz?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai
jdbc.resource.url: jdbc:mysql://47.107.148.253:3306/mz_resource?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai
#jwt
jwt:
header: Authorization
......
......@@ -29,7 +29,16 @@ redis.port: 6379
jdbc.driver-class-name: com.mysql.cj.jdbc.Driver
jdbc.username: root
jdbc.password: rooT123!321
jdbc.url: jdbc:mysql://192.168.0.193:3306/mz_big_data?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai
jdbc.master.url: jdbc:mysql://192.168.0.193:3306/mz_big_data?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai
jdbc.gxbz.url: jdbc:mysql://192.168.0.193:3306/gx-bz?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai
jdbc.gxcj.url: jdbc:mysql://192.168.0.193:3306/gx-cj?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai
jdbc.gxdb.url: jdbc:mysql://192.168.0.193:3306/gx-db?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai
jdbc.gxhy.url: jdbc:mysql://192.168.0.193:3306/gx-hy?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai
jdbc.gxshzz.url: jdbc:mysql://192.168.0.193:3306/shzz?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai
jdbc.gxet.url: jdbc:mysql://192.168.0.193:3306/gx-et?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai
jdbc.gxyl.url: jdbc:mysql://192.168.0.193:3306/gx-yl?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai
jdbc.gxshjz.url: jdbc:mysql://192.168.0.193:3306/gx-shjz?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai
jdbc.resource.url: jdbc:mysql://192.168.0.193:3306/mz_resource?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai
#jwt
jwt:
......
......@@ -29,7 +29,7 @@ redis.port: 6379
jdbc.driver-class-name: com.mysql.cj.jdbc.Driver
jdbc.username: root
jdbc.password: rooT123!321
jdbc.url: jdbc:mysql://192.168.0.193:3306/mz_big_data?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai
jdbc.master.url: jdbc:mysql://192.168.0.193:3306/mz_big_data?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai
#jwt
jwt:
......
......@@ -31,58 +31,58 @@ spring:
datasource:
master:
type: com.alibaba.druid.pool.DruidDataSource
url: ${jdbc.url}
url: ${jdbc.master.url}
username: ${jdbc.username}
password: ${jdbc.password}
driver-class-name: ${jdbc.driver-class-name}
gxbz:
type: com.alibaba.druid.pool.DruidDataSource
url: jdbc:mysql://192.168.0.193:3306/gx-bz?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai
username: root
password: rooT123!321
driver-class-name: com.mysql.cj.jdbc.Driver
url: ${jdbc.gxbz.url}
username: ${jdbc.username}
password: ${jdbc.password}
driver-class-name: ${jdbc.driver-class-name}
gxcj:
type: com.alibaba.druid.pool.DruidDataSource
url: jdbc:mysql://192.168.0.193:3306/gx-cj?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai
username: root
password: rooT123!321
driver-class-name: com.mysql.cj.jdbc.Driver
url: ${jdbc.gxcj.url}
username: ${jdbc.username}
password: ${jdbc.password}
driver-class-name: ${jdbc.driver-class-name}
gxdb:
type: com.alibaba.druid.pool.DruidDataSource
url: jdbc:mysql://192.168.0.193:3306/gx-db?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai
username: root
password: rooT123!321
driver-class-name: com.mysql.cj.jdbc.Driver
url: ${jdbc.gxdb.url}
username: ${jdbc.username}
password: ${jdbc.password}
driver-class-name: ${jdbc.driver-class-name}
gxhy:
type: com.alibaba.druid.pool.DruidDataSource
url: jdbc:mysql://192.168.0.193:3306/gx-hy?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai
username: root
password: rooT123!321
driver-class-name: com.mysql.cj.jdbc.Driver
url: ${jdbc.gxhy.url}
username: ${jdbc.username}
password: ${jdbc.password}
driver-class-name: ${jdbc.driver-class-name}
gxshzz:
type: com.alibaba.druid.pool.DruidDataSource
url: jdbc:mysql://192.168.0.193:3306/shzz?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai
username: root
password: rooT123!321
driver-class-name: com.mysql.cj.jdbc.Driver
url: ${jdbc.gxshzz.url}
username: ${jdbc.username}
password: ${jdbc.password}
driver-class-name: ${jdbc.driver-class-name}
gxet:
type: com.alibaba.druid.pool.DruidDataSource
url: jdbc:mysql://192.168.0.193:3306/gx-et?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai
username: root
password: rooT123!321
driver-class-name: com.mysql.cj.jdbc.Driver
url: ${jdbc.gxet.url}
username: ${jdbc.username}
password: ${jdbc.password}
driver-class-name: ${jdbc.driver-class-name}
gxyl:
type: com.alibaba.druid.pool.DruidDataSource
url: jdbc:mysql://192.168.0.193:3306/gx-yl?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai
username: root
password: rooT123!321
driver-class-name: com.mysql.cj.jdbc.Driver
url: ${jdbc.gxyl.url}
username: ${jdbc.username}
password: ${jdbc.password}
driver-class-name: ${jdbc.driver-class-name}
gxshjz:
type: com.alibaba.druid.pool.DruidDataSource
url: jdbc:mysql://192.168.0.193:3306/gx-shjz?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai
username: root
password: rooT123!321
driver-class-name: com.mysql.cj.jdbc.Driver
url: ${jdbc.gxshjz.url}
username: ${jdbc.username}
password: ${jdbc.password}
driver-class-name: ${jdbc.driver-class-name}
druid:
# 初始连接数
initial-size: 10
......
......@@ -25,10 +25,10 @@ public class AreaService {
public List<DataTreeVo> areaTree() {
List<SystemArea> areaList = systemAreaDao.selectList(Wrappers.lambdaQuery(SystemArea.class).in(SystemArea::getType, "2", "3", "4"));
List<DataTreeVo> collect = areaList.stream().map(systemArea -> DataTreeVo.builder()
.id(systemArea.getId())
.value(systemArea.getId())
.parentId(systemArea.getParentId())
.name(systemArea.getName())
.childList(new ArrayList<>())
.label(systemArea.getName())
.children(new ArrayList<>())
.build()).collect(Collectors.toList());
return TreeUtils.buildTree(collect, "450000000000");
......
......@@ -96,10 +96,10 @@ public class DeptService {
public Object getDeptTree() {
List<OrgDept> deptList = orgDeptDao.selectList(null);
List<DataTreeVo> collect = deptList.stream().map(dept -> DataTreeVo.builder()
.id(String.valueOf(dept.getId()))
.name(dept.getDeptName())
.value(String.valueOf(dept.getId()))
.parentId(String.valueOf(dept.getParentId()))
.childList(new ArrayList<>())
.label(dept.getDeptName())
.children(new ArrayList<>())
.build()).collect(Collectors.toList());
return TreeUtils.buildTree(collect, "0");
......
......@@ -23,17 +23,17 @@ public class TreeUtils {
treeList.add(treeData);
}
for (DataTreeVo it : treeDataList) {
if (treeData.getId().equals(it.getParentId())) {
if (treeData.getChildList() == null) {
treeData.setChildList(new ArrayList<>());
if (treeData.getValue().equals(it.getParentId())) {
if (treeData.getChildren() == null) {
treeData.setChildren(new ArrayList<>());
}
treeData.getChildList().add(it);
ids.add(it.getId());
treeData.getChildren().add(it);
ids.add(it.getValue());
}
}
}
if (treeList.size() == 0) {
treeList = treeDataList.stream().filter(s -> !ids.contains(s.getId())).collect(Collectors.toList());
treeList = treeDataList.stream().filter(s -> !ids.contains(s.getValue())).collect(Collectors.toList());
}
return treeList;
......
......@@ -19,14 +19,14 @@ import java.util.List;
@NoArgsConstructor
public class DataTreeVo {
private String id;
private String value;
private String parentId;
private String name;
private String label;
private Integer childNum;
private List<DataTreeVo> childList;
private List<DataTreeVo> children;
}
......@@ -29,16 +29,16 @@ spring:
datasource:
master:
type: com.alibaba.druid.pool.DruidDataSource
url: ${jdbc.url}
url: ${jdbc.master.url}
username: ${jdbc.username}
password: ${jdbc.password}
driver-class-name: ${jdbc.driver-class-name}
resource:
type: com.alibaba.druid.pool.DruidDataSource
url: jdbc:mysql://47.107.148.253:3306/mz_resource?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai
username: root
password: Dk2019!23456
driver-class-name: com.mysql.cj.jdbc.Driver
url: ${jdbc.resource.url}
username: ${jdbc.username}
password: ${jdbc.password}
driver-class-name: ${jdbc.driver-class-name}
druid:
# 初始连接数
initial-size: 10
......
......@@ -21,7 +21,7 @@ spring:
datasource:
master:
type: com.alibaba.druid.pool.DruidDataSource
url: ${jdbc.url}
url: ${jdbc.master.url}
username: ${jdbc.username}
password: ${jdbc.password}
driver-class-name: ${jdbc.driver-class-name}
......@@ -61,7 +61,7 @@ spring:
# driver-class-name: com.mysql.cj.jdbc.Driver
# username: ${jdbc.username}
# password: ${jdbc.password}
# url: ${jdbc.url}
# url: ${jdbc.master.url}
# # 初始连接数
# initial-size: 5
# # 最小连接数
......
......@@ -29,16 +29,10 @@ spring:
datasource:
master:
type: com.alibaba.druid.pool.DruidDataSource
url: ${jdbc.url}
url: ${jdbc.master.url}
username: ${jdbc.username}
password: ${jdbc.password}
driver-class-name: ${jdbc.driver-class-name}
gxshzz:
type: com.alibaba.druid.pool.DruidDataSource
url: jdbc:mysql://192.168.0.193:3306/shzz?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai
username: root
password: rooT123!321
driver-class-name: com.mysql.cj.jdbc.Driver
druid:
# 初始连接数
initial-size: 5
......
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