Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
civil-bigdata
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
civil
civil-bigdata
Commits
64f94cb0
Commit
64f94cb0
authored
Aug 27, 2021
by
袁伟铭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改注册中心配置
parent
f2c03295
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
95 additions
and
134 deletions
+95
-134
api-server/src/main/resources/bootstrap.yml
+1
-0
civil-common-utils/src/main/java/com/zq/common/config/mybatis/MybatisConfig.java
+9
-4
config-server/src/main/resources/application.yml
+1
-0
file-server/src/main/resources/bootstrap.yml
+1
-0
gateway-server/src/main/resources/bootstrap.yml
+1
-0
portal-server/src/main/resources/bootstrap.yml
+1
-0
resource-server/src/main/java/com/zq/resource/config/MybatisConfig.java
+0
-43
resource-server/src/main/java/com/zq/resource/dao/OrgDeptDao.java
+5
-0
resource-server/src/main/resources/bootstrap.yml
+1
-0
resource-server/src/main/resources/mapper/OrgDeptMapper.xml
+73
-0
sys-server/src/main/java/com/zq/system/config/MybatisConfig.java
+0
-43
sys-server/src/main/resources/bootstrap.yml
+1
-0
user-server/src/main/java/com/zq/user/config/MybatisConfig.java
+0
-43
user-server/src/main/resources/bootstrap.yml
+1
-1
No files found.
api-server/src/main/resources/bootstrap.yml
View file @
64f94cb0
...
...
@@ -12,6 +12,7 @@ spring:
eureka
:
instance
:
prefer-ip-address
:
true
instance-id
:
${spring.cloud.client.ip-address}:${server.port}
client
:
service-url
:
defaultZone
:
http://admin:123456@127.0.0.1:8800/eureka/
...
...
portal-server/src/main/java/com/zq/portal/config
/MybatisConfig.java
→
civil-common-utils/src/main/java/com/zq/common/config/mybatis
/MybatisConfig.java
View file @
64f94cb0
package
com
.
zq
.
portal
.
config
;
package
com
.
zq
.
common
.
config
.
mybatis
;
import
com.baomidou.mybatisplus.annotation.DbType
;
import
com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor
;
import
com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor
;
import
com.github.pagehelper.PageInterceptor
;
...
...
@@ -22,7 +21,7 @@ public class MybatisConfig {
@Bean
public
MybatisPlusInterceptor
mybatisPlusInterceptor
()
{
MybatisPlusInterceptor
interceptor
=
new
MybatisPlusInterceptor
();
interceptor
.
addInnerInterceptor
(
new
PaginationInnerInterceptor
(
DbType
.
MYSQL
));
interceptor
.
addInnerInterceptor
(
new
PaginationInnerInterceptor
());
return
interceptor
;
}
...
...
@@ -35,7 +34,13 @@ public class MybatisConfig {
public
PageInterceptor
pageInterceptor
()
{
PageInterceptor
pageInterceptor
=
new
PageInterceptor
();
Properties
properties
=
new
Properties
();
properties
.
put
(
"helperDialect"
,
"mysql"
);
properties
.
setProperty
(
"offsetAsPageNum"
,
"false"
);
properties
.
setProperty
(
"rowBoundsWithCount"
,
"false"
);
properties
.
setProperty
(
"pageSizeZero"
,
"true"
);
properties
.
setProperty
(
"reasonable"
,
"false"
);
properties
.
setProperty
(
"supportMethodsArguments"
,
"false"
);
properties
.
setProperty
(
"returnPageInfo"
,
"none"
);
properties
.
setProperty
(
"autoRuntimeDialect"
,
"true"
);
pageInterceptor
.
setProperties
(
properties
);
return
pageInterceptor
;
}
...
...
config-server/src/main/resources/application.yml
View file @
64f94cb0
...
...
@@ -18,6 +18,7 @@ spring:
eureka
:
instance
:
prefer-ip-address
:
true
instance-id
:
${spring.cloud.client.ip-address}:${server.port}
client
:
service-url
:
defaultZone
:
http://admin:123456@127.0.0.1:8800/eureka/
...
...
file-server/src/main/resources/bootstrap.yml
View file @
64f94cb0
...
...
@@ -12,6 +12,7 @@ spring:
eureka
:
instance
:
prefer-ip-address
:
true
instance-id
:
${spring.cloud.client.ip-address}:${server.port}
client
:
service-url
:
defaultZone
:
http://admin:123456@127.0.0.1:8800/eureka/
gateway-server/src/main/resources/bootstrap.yml
View file @
64f94cb0
...
...
@@ -12,6 +12,7 @@ spring:
eureka
:
instance
:
prefer-ip-address
:
true
instance-id
:
${spring.cloud.client.ip-address}:${server.port}
client
:
service-url
:
defaultZone
:
http://admin:123456@127.0.0.1:8800/eureka/
portal-server/src/main/resources/bootstrap.yml
View file @
64f94cb0
...
...
@@ -12,6 +12,7 @@ spring:
eureka
:
instance
:
prefer-ip-address
:
true
instance-id
:
${spring.cloud.client.ip-address}:${server.port}
client
:
service-url
:
defaultZone
:
http://admin:123456@127.0.0.1:8800/eureka/
resource-server/src/main/java/com/zq/resource/config/MybatisConfig.java
deleted
100644 → 0
View file @
f2c03295
package
com
.
zq
.
resource
.
config
;
import
com.baomidou.mybatisplus.annotation.DbType
;
import
com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor
;
import
com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor
;
import
com.github.pagehelper.PageInterceptor
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
java.util.Properties
;
/**
* @author wilmiam
* @since 2021-08-09 15:59
*/
@Configuration
public
class
MybatisConfig
{
/**
* MybatisPlus分页插件
*/
@Bean
public
MybatisPlusInterceptor
mybatisPlusInterceptor
()
{
MybatisPlusInterceptor
interceptor
=
new
MybatisPlusInterceptor
();
interceptor
.
addInnerInterceptor
(
new
PaginationInnerInterceptor
(
DbType
.
ORACLE_12C
));
return
interceptor
;
}
/**
* PageHelper分页插件
*
* @return
*/
@Bean
public
PageInterceptor
pageInterceptor
()
{
PageInterceptor
pageInterceptor
=
new
PageInterceptor
();
Properties
properties
=
new
Properties
();
properties
.
put
(
"helperDialect"
,
"oracle"
);
pageInterceptor
.
setProperties
(
properties
);
return
pageInterceptor
;
}
}
resource-server/src/main/java/com/zq/resource/dao/OrgDeptDao.java
View file @
64f94cb0
...
...
@@ -2,8 +2,11 @@ package com.zq.resource.dao;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.zq.resource.entity.OrgDept
;
import
com.zq.resource.vo.OrgDeptFindVo
;
import
org.springframework.stereotype.Repository
;
import
java.util.List
;
/**
* 机构表(OrgDept)表数据库访问层
*
...
...
@@ -13,4 +16,6 @@ import org.springframework.stereotype.Repository;
@Repository
public
interface
OrgDeptDao
extends
BaseMapper
<
OrgDept
>
{
List
<
OrgDept
>
queryPageList
(
OrgDeptFindVo
vo
);
}
resource-server/src/main/resources/bootstrap.yml
View file @
64f94cb0
...
...
@@ -12,6 +12,7 @@ spring:
eureka
:
instance
:
prefer-ip-address
:
true
instance-id
:
${spring.cloud.client.ip-address}:${server.port}
client
:
service-url
:
defaultZone
:
http://admin:123456@127.0.0.1:8800/eureka/
resource-server/src/main/resources/mapper/OrgDeptMapper.xml
0 → 100644
View file @
64f94cb0
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.zq.resource.dao.OrgDeptDao"
>
<resultMap
id=
"BaseResultMap"
type=
"com.zq.resource.entity.OrgDept"
>
<!--@Table ORG_DEPT-->
<result
property=
"id"
column=
"ID"
jdbcType=
"VARCHAR"
/>
<result
property=
"parentId"
column=
"PARENT_ID"
jdbcType=
"VARCHAR"
/>
<result
property=
"deptName"
column=
"DEPT_NAME"
jdbcType=
"VARCHAR"
/>
<result
property=
"deptType"
column=
"DEPT_TYPE"
jdbcType=
"OTHER"
/>
<result
property=
"areaCode"
column=
"AREA_CODE"
jdbcType=
"VARCHAR"
/>
<result
property=
"address"
column=
"ADDRESS"
jdbcType=
"VARCHAR"
/>
<result
property=
"tel"
column=
"TEL"
jdbcType=
"VARCHAR"
/>
<result
property=
"totalOrgStaff"
column=
"TOTAL_ORG_STAFF"
jdbcType=
"OTHER"
/>
<result
property=
"currOrgStaff"
column=
"CURR_ORG_STAFF"
jdbcType=
"OTHER"
/>
<result
property=
"responsibility"
column=
"RESPONSIBILITY"
jdbcType=
"VARCHAR"
/>
<result
property=
"createTime"
column=
"CREATE_TIME"
jdbcType=
"TIMESTAMP"
/>
<result
property=
"updateTime"
column=
"UPDATE_TIME"
jdbcType=
"TIMESTAMP"
/>
<result
property=
"shareStatus"
column=
"SHARE_STATUS"
jdbcType=
"OTHER"
/>
</resultMap>
<!--通过实体作为筛选条件分页查询-->
<select
id=
"queryPageList"
resultMap=
"BaseResultMap"
>
SELECT
ID, PARENT_ID, DEPT_NAME, DEPT_TYPE, AREA_CODE, ADDRESS, TEL, TOTAL_ORG_STAFF, CURR_ORG_STAFF, RESPONSIBILITY,
CREATE_TIME, UPDATE_TIME, SHARE_STATUS
FROM ORG_DEPT
<where>
<if
test=
"id != null and id != ''"
>
AND ID = #{id, jdbcType=VARCHAR}
</if>
<if
test=
"parentId != null and parentId != ''"
>
AND PARENT_ID = #{parentId, jdbcType=VARCHAR}
</if>
<if
test=
"deptName != null and deptName != ''"
>
AND DEPT_NAME = #{deptName, jdbcType=VARCHAR}
</if>
<if
test=
"deptType != null"
>
AND DEPT_TYPE = #{deptType, jdbcType=OTHER}
</if>
<if
test=
"areaCode != null and areaCode != ''"
>
AND AREA_CODE = #{areaCode, jdbcType=VARCHAR}
</if>
<if
test=
"address != null and address != ''"
>
AND ADDRESS = #{address, jdbcType=VARCHAR}
</if>
<if
test=
"tel != null and tel != ''"
>
AND TEL = #{tel, jdbcType=VARCHAR}
</if>
<if
test=
"totalOrgStaff != null"
>
AND TOTAL_ORG_STAFF = #{totalOrgStaff, jdbcType=OTHER}
</if>
<if
test=
"currOrgStaff != null"
>
AND CURR_ORG_STAFF = #{currOrgStaff, jdbcType=OTHER}
</if>
<if
test=
"responsibility != null and responsibility != ''"
>
AND RESPONSIBILITY = #{responsibility, jdbcType=VARCHAR}
</if>
<if
test=
"createTime != null"
>
AND CREATE_TIME = #{createTime, jdbcType=TIMESTAMP}
</if>
<if
test=
"updateTime != null"
>
AND UPDATE_TIME = #{updateTime, jdbcType=TIMESTAMP}
</if>
<if
test=
"shareStatus != null"
>
AND SHARE_STATUS = #{shareStatus, jdbcType=OTHER}
</if>
</where>
</select>
</mapper>
\ No newline at end of file
sys-server/src/main/java/com/zq/system/config/MybatisConfig.java
deleted
100644 → 0
View file @
f2c03295
package
com
.
zq
.
system
.
config
;
import
com.baomidou.mybatisplus.annotation.DbType
;
import
com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor
;
import
com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor
;
import
com.github.pagehelper.PageInterceptor
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
java.util.Properties
;
/**
* @author wilmiam
* @since 2021-08-09 15:59
*/
@Configuration
public
class
MybatisConfig
{
/**
* MybatisPlus分页插件
*/
@Bean
public
MybatisPlusInterceptor
mybatisPlusInterceptor
()
{
MybatisPlusInterceptor
interceptor
=
new
MybatisPlusInterceptor
();
interceptor
.
addInnerInterceptor
(
new
PaginationInnerInterceptor
(
DbType
.
MYSQL
));
return
interceptor
;
}
/**
* PageHelper分页插件
*
* @return
*/
@Bean
public
PageInterceptor
pageInterceptor
()
{
PageInterceptor
pageInterceptor
=
new
PageInterceptor
();
Properties
properties
=
new
Properties
();
properties
.
put
(
"helperDialect"
,
"mysql"
);
pageInterceptor
.
setProperties
(
properties
);
return
pageInterceptor
;
}
}
sys-server/src/main/resources/bootstrap.yml
View file @
64f94cb0
...
...
@@ -12,6 +12,7 @@ spring:
eureka
:
instance
:
prefer-ip-address
:
true
instance-id
:
${spring.cloud.client.ip-address}:${server.port}
client
:
service-url
:
defaultZone
:
http://admin:123456@127.0.0.1:8800/eureka/
user-server/src/main/java/com/zq/user/config/MybatisConfig.java
deleted
100644 → 0
View file @
f2c03295
package
com
.
zq
.
user
.
config
;
import
com.baomidou.mybatisplus.annotation.DbType
;
import
com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor
;
import
com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor
;
import
com.github.pagehelper.PageInterceptor
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
java.util.Properties
;
/**
* @author wilmiam
* @since 2021-08-09 15:59
*/
@Configuration
public
class
MybatisConfig
{
/**
* MybatisPlus分页插件
*/
@Bean
public
MybatisPlusInterceptor
mybatisPlusInterceptor
()
{
MybatisPlusInterceptor
interceptor
=
new
MybatisPlusInterceptor
();
interceptor
.
addInnerInterceptor
(
new
PaginationInnerInterceptor
(
DbType
.
MYSQL
));
return
interceptor
;
}
/**
* PageHelper分页插件
*
* @return
*/
@Bean
public
PageInterceptor
pageInterceptor
()
{
PageInterceptor
pageInterceptor
=
new
PageInterceptor
();
Properties
properties
=
new
Properties
();
properties
.
put
(
"helperDialect"
,
"mysql"
);
pageInterceptor
.
setProperties
(
properties
);
return
pageInterceptor
;
}
}
user-server/src/main/resources/bootstrap.yml
View file @
64f94cb0
...
...
@@ -8,11 +8,11 @@ spring:
discovery
:
enabled
:
true
service-id
:
CONFIG-SERVER
uri
:
http://127.0.0.1:8300/
eureka
:
instance
:
prefer-ip-address
:
true
instance-id
:
${spring.cloud.client.ip-address}:${server.port}
client
:
service-url
:
defaultZone
:
http://admin:123456@127.0.0.1:8800/eureka/
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