Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzou
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzou
提交
0315c184
提交
0315c184
编写于
5月 19, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
lab_qyk 部署微服务接口
上级
80be3646
变更
12
隐藏空白字符变更
内嵌
并排
正在显示
12 个修改的文件
包含
50 行增加
和
33 行删除
+50
-33
config.xml
config.xml
+5
-5
Dockerfile
ibzou-app/ibzou-app-web/src/main/docker/Dockerfile
+1
-1
ibzou-app-web.yaml
ibzou-app/ibzou-app-web/src/main/docker/ibzou-app-web.yaml
+1
-13
pom.xml
ibzou-dependencies/pom.xml
+8
-0
Dockerfile
ibzou-provider/ibzou-provider-api/src/main/docker/Dockerfile
+1
-1
ibzou-provider-api.yaml
...bzou-provider-api/src/main/docker/ibzou-provider-api.yaml
+13
-1
IBZDepartmentResource.java
.../main/java/cn/ibizlab/api/rest/IBZDepartmentResource.java
+4
-4
IBZEmployeeResource.java
...rc/main/java/cn/ibizlab/api/rest/IBZEmployeeResource.java
+2
-2
IBZOrganizationResource.java
...ain/java/cn/ibizlab/api/rest/IBZOrganizationResource.java
+6
-6
pom.xml
ibzou-util/pom.xml
+5
-0
SearchContextBase.java
...c/main/java/cn/ibizlab/util/filter/SearchContextBase.java
+2
-0
application-sys.yml
ibzou-util/src/main/resources/application-sys.yml
+2
-0
未找到文件。
config.xml
浏览文件 @
0315c184
...
@@ -37,11 +37,11 @@
...
@@ -37,11 +37,11 @@
git clone -b master $para2 ibzou/
git clone -b master $para2 ibzou/
export NODE_OPTIONS=--max-old-space-size=4096
export NODE_OPTIONS=--max-old-space-size=4096
cd ibzou/
cd ibzou/
mvn clean package -P
web
mvn clean package -P
api
cd ibzou-
app/ibzou-app-web
cd ibzou-
provider/ibzou-provider-api
mvn -P
web
docker:build
mvn -P
api
docker:build
mvn -P
web
docker:push
mvn -P
api
docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/ibzou-
app-web.yaml ibzlab-rt --with-registry-auth
docker -H $para1 stack deploy --compose-file=src/main/docker/ibzou-
provider-api.yaml ibzlab-rt --with-registry-auth
</command>
</command>
</hudson.tasks.Shell>
</hudson.tasks.Shell>
</builders>
</builders>
...
...
ibzou-app/ibzou-app-web/src/main/docker/Dockerfile
浏览文件 @
0315c184
...
@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBZ_SLEEP}s..." && \
...
@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBZ_SLEEP}s..." && \
sleep ${IBZ_SLEEP} && \
sleep ${IBZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ibzou-app-web.jar
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ibzou-app-web.jar
EXPOSE
30001
EXPOSE
8080
ADD
ibzou-app-web.jar /ibzou-app-web.jar
ADD
ibzou-app-web.jar /ibzou-app-web.jar
ibzou-app/ibzou-app-web/src/main/docker/ibzou-app-web.yaml
浏览文件 @
0315c184
...
@@ -3,21 +3,9 @@ services:
...
@@ -3,21 +3,9 @@ services:
ibzou-app-web
:
ibzou-app-web
:
image
:
registry.cn-shanghai.aliyuncs.com/ibizsys/ibzou-app-web:latest
image
:
registry.cn-shanghai.aliyuncs.com/ibizsys/ibzou-app-web:latest
ports
:
ports
:
-
"
30001:30001
"
-
"
8080:8080
"
networks
:
networks
:
-
agent_network
-
agent_network
environment
:
-
SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.180.237
-
SERVER_PORT=30001
-
SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.102.211:8848
-
SPRING_REDIS_HOST=172.16.100.243
-
SPRING_REDIS_PORT=6379
-
SPRING_REDIS_DATABASE=0
-
SPRING_DATASOURCE_USERNAME=a_A_5d9d78509
-
SPRING_DATASOURCE_PASSWORD=@6dEfb3@
-
SPRING_DATASOURCE_URL=jdbc:mysql://172.16.180.232:3306/a_A_5d9d78509?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true
-
SPRING_DATASOURCE_DRIVER-CLASS-NAME=com.mysql.jdbc.Driver
-
SPRING_DATASOURCE_DEFAULTSCHEMA=a_A_5d9d78509
deploy
:
deploy
:
mode
:
replicated
mode
:
replicated
replicas
:
1
replicas
:
1
...
...
ibzou-dependencies/pom.xml
浏览文件 @
0315c184
...
@@ -71,6 +71,9 @@
...
@@ -71,6 +71,9 @@
<!--反序列化工具-->
<!--反序列化工具-->
<kryo.version>
4.0.2
</kryo.version>
<kryo.version>
4.0.2
</kryo.version>
<!--httpClient -->
<openfeign-httpclient.version>
11.0
</openfeign-httpclient.version>
</properties>
</properties>
<dependencyManagement>
<dependencyManagement>
...
@@ -250,6 +253,11 @@
...
@@ -250,6 +253,11 @@
<version>
${kryo.version}
</version>
<version>
${kryo.version}
</version>
</dependency>
</dependency>
<dependency>
<groupId>
io.github.openfeign
</groupId>
<artifactId>
feign-httpclient
</artifactId>
<version>
${openfeign-httpclient.version}
</version>
</dependency>
</dependencies>
</dependencies>
</dependencyManagement>
</dependencyManagement>
...
...
ibzou-provider/ibzou-provider-api/src/main/docker/Dockerfile
浏览文件 @
0315c184
...
@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBZ_SLEEP}s..." && \
...
@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBZ_SLEEP}s..." && \
sleep ${IBZ_SLEEP} && \
sleep ${IBZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ibzou-provider-api.jar
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ibzou-provider-api.jar
EXPOSE
808
1
EXPOSE
4000
1
ADD
ibzou-provider-api.jar /ibzou-provider-api.jar
ADD
ibzou-provider-api.jar /ibzou-provider-api.jar
ibzou-provider/ibzou-provider-api/src/main/docker/ibzou-provider-api.yaml
浏览文件 @
0315c184
...
@@ -3,9 +3,21 @@ services:
...
@@ -3,9 +3,21 @@ services:
ibzou-provider-api
:
ibzou-provider-api
:
image
:
registry.cn-shanghai.aliyuncs.com/ibizsys/ibzou-provider-api:latest
image
:
registry.cn-shanghai.aliyuncs.com/ibizsys/ibzou-provider-api:latest
ports
:
ports
:
-
"
8081:808
1"
-
"
40001:4000
1"
networks
:
networks
:
-
agent_network
-
agent_network
environment
:
-
SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.180.237
-
SERVER_PORT=40001
-
SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.102.211:8848
-
SPRING_REDIS_HOST=172.16.100.243
-
SPRING_REDIS_PORT=6379
-
SPRING_REDIS_DATABASE=0
-
SPRING_DATASOURCE_USERNAME=a_A_5d9d78509
-
SPRING_DATASOURCE_PASSWORD=@6dEfb3@
-
SPRING_DATASOURCE_URL=jdbc:mysql://172.16.180.232:3306/a_A_5d9d78509?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true
-
SPRING_DATASOURCE_DRIVER-CLASS-NAME=com.mysql.jdbc.Driver
-
SPRING_DATASOURCE_DEFAULTSCHEMA=a_A_5d9d78509
deploy
:
deploy
:
mode
:
replicated
mode
:
replicated
replicas
:
1
replicas
:
1
...
...
ibzou-provider/ibzou-provider-api/src/main/java/cn/ibizlab/api/rest/IBZDepartmentResource.java
浏览文件 @
0315c184
...
@@ -164,7 +164,7 @@ public class IBZDepartmentResource {
...
@@ -164,7 +164,7 @@ public class IBZDepartmentResource {
@PreAuthorize
(
"hasPermission('Get',{#context,'CurDept',this.getEntity(),'Sql'})"
)
@PreAuthorize
(
"hasPermission('Get',{#context,'CurDept',this.getEntity(),'Sql'})"
)
@ApiOperation
(
value
=
"fetchCurDept"
,
tags
=
{
"IBZDepartment"
}
,
notes
=
"fetchCurDept"
)
@ApiOperation
(
value
=
"fetchCurDept"
,
tags
=
{
"IBZDepartment"
}
,
notes
=
"fetchCurDept"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/ibzdepartments/fetchcurdept"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/ibzdepartments/fetchcurdept"
)
public
ResponseEntity
<
List
<
IBZDepartmentDTO
>>
fetchCurDept
(
IBZDepartmentSearchContext
context
)
{
public
ResponseEntity
<
List
<
IBZDepartmentDTO
>>
fetchCurDept
(
@RequestBody
IBZDepartmentSearchContext
context
)
{
Page
<
IBZDepartment
>
domains
=
ibzdepartmentService
.
searchCurDept
(
context
)
;
Page
<
IBZDepartment
>
domains
=
ibzdepartmentService
.
searchCurDept
(
context
)
;
List
<
IBZDepartmentDTO
>
list
=
ibzdepartmentMapping
.
toDto
(
domains
.
getContent
());
List
<
IBZDepartmentDTO
>
list
=
ibzdepartmentMapping
.
toDto
(
domains
.
getContent
());
return
ResponseEntity
.
status
(
HttpStatus
.
OK
)
return
ResponseEntity
.
status
(
HttpStatus
.
OK
)
...
@@ -177,7 +177,7 @@ public class IBZDepartmentResource {
...
@@ -177,7 +177,7 @@ public class IBZDepartmentResource {
@PreAuthorize
(
"hasPermission('Get',{#context,'CurDept',this.getEntity(),'Sql'})"
)
@PreAuthorize
(
"hasPermission('Get',{#context,'CurDept',this.getEntity(),'Sql'})"
)
@ApiOperation
(
value
=
"searchCurDept"
,
tags
=
{
"IBZDepartment"
}
,
notes
=
"searchCurDept"
)
@ApiOperation
(
value
=
"searchCurDept"
,
tags
=
{
"IBZDepartment"
}
,
notes
=
"searchCurDept"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/ibzdepartments/searchcurdept"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/ibzdepartments/searchcurdept"
)
public
ResponseEntity
<
Page
<
IBZDepartmentDTO
>>
searchCurDept
(
IBZDepartmentSearchContext
context
)
{
public
ResponseEntity
<
Page
<
IBZDepartmentDTO
>>
searchCurDept
(
@RequestBody
IBZDepartmentSearchContext
context
)
{
Page
<
IBZDepartment
>
domains
=
ibzdepartmentService
.
searchCurDept
(
context
)
;
Page
<
IBZDepartment
>
domains
=
ibzdepartmentService
.
searchCurDept
(
context
)
;
return
ResponseEntity
.
status
(
HttpStatus
.
OK
)
return
ResponseEntity
.
status
(
HttpStatus
.
OK
)
.
body
(
new
PageImpl
(
ibzdepartmentMapping
.
toDto
(
domains
.
getContent
()),
context
.
getPageable
(),
domains
.
getTotalElements
()));
.
body
(
new
PageImpl
(
ibzdepartmentMapping
.
toDto
(
domains
.
getContent
()),
context
.
getPageable
(),
domains
.
getTotalElements
()));
...
@@ -186,7 +186,7 @@ public class IBZDepartmentResource {
...
@@ -186,7 +186,7 @@ public class IBZDepartmentResource {
@PreAuthorize
(
"hasPermission('Get',{#context,'Default',this.getEntity(),'Sql'})"
)
@PreAuthorize
(
"hasPermission('Get',{#context,'Default',this.getEntity(),'Sql'})"
)
@ApiOperation
(
value
=
"fetchDEFAULT"
,
tags
=
{
"IBZDepartment"
}
,
notes
=
"fetchDEFAULT"
)
@ApiOperation
(
value
=
"fetchDEFAULT"
,
tags
=
{
"IBZDepartment"
}
,
notes
=
"fetchDEFAULT"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/ibzdepartments/fetchdefault"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/ibzdepartments/fetchdefault"
)
public
ResponseEntity
<
List
<
IBZDepartmentDTO
>>
fetchDefault
(
IBZDepartmentSearchContext
context
)
{
public
ResponseEntity
<
List
<
IBZDepartmentDTO
>>
fetchDefault
(
@RequestBody
IBZDepartmentSearchContext
context
)
{
Page
<
IBZDepartment
>
domains
=
ibzdepartmentService
.
searchDefault
(
context
)
;
Page
<
IBZDepartment
>
domains
=
ibzdepartmentService
.
searchDefault
(
context
)
;
List
<
IBZDepartmentDTO
>
list
=
ibzdepartmentMapping
.
toDto
(
domains
.
getContent
());
List
<
IBZDepartmentDTO
>
list
=
ibzdepartmentMapping
.
toDto
(
domains
.
getContent
());
return
ResponseEntity
.
status
(
HttpStatus
.
OK
)
return
ResponseEntity
.
status
(
HttpStatus
.
OK
)
...
@@ -199,7 +199,7 @@ public class IBZDepartmentResource {
...
@@ -199,7 +199,7 @@ public class IBZDepartmentResource {
@PreAuthorize
(
"hasPermission('Get',{#context,'Default',this.getEntity(),'Sql'})"
)
@PreAuthorize
(
"hasPermission('Get',{#context,'Default',this.getEntity(),'Sql'})"
)
@ApiOperation
(
value
=
"searchDEFAULT"
,
tags
=
{
"IBZDepartment"
}
,
notes
=
"searchDEFAULT"
)
@ApiOperation
(
value
=
"searchDEFAULT"
,
tags
=
{
"IBZDepartment"
}
,
notes
=
"searchDEFAULT"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/ibzdepartments/searchdefault"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/ibzdepartments/searchdefault"
)
public
ResponseEntity
<
Page
<
IBZDepartmentDTO
>>
searchDefault
(
IBZDepartmentSearchContext
context
)
{
public
ResponseEntity
<
Page
<
IBZDepartmentDTO
>>
searchDefault
(
@RequestBody
IBZDepartmentSearchContext
context
)
{
Page
<
IBZDepartment
>
domains
=
ibzdepartmentService
.
searchDefault
(
context
)
;
Page
<
IBZDepartment
>
domains
=
ibzdepartmentService
.
searchDefault
(
context
)
;
return
ResponseEntity
.
status
(
HttpStatus
.
OK
)
return
ResponseEntity
.
status
(
HttpStatus
.
OK
)
.
body
(
new
PageImpl
(
ibzdepartmentMapping
.
toDto
(
domains
.
getContent
()),
context
.
getPageable
(),
domains
.
getTotalElements
()));
.
body
(
new
PageImpl
(
ibzdepartmentMapping
.
toDto
(
domains
.
getContent
()),
context
.
getPageable
(),
domains
.
getTotalElements
()));
...
...
ibzou-provider/ibzou-provider-api/src/main/java/cn/ibizlab/api/rest/IBZEmployeeResource.java
浏览文件 @
0315c184
...
@@ -177,7 +177,7 @@ public class IBZEmployeeResource {
...
@@ -177,7 +177,7 @@ public class IBZEmployeeResource {
@PreAuthorize
(
"hasPermission('Get',{#context,'Default',this.getEntity(),'Sql'})"
)
@PreAuthorize
(
"hasPermission('Get',{#context,'Default',this.getEntity(),'Sql'})"
)
@ApiOperation
(
value
=
"fetchDEFAULT"
,
tags
=
{
"IBZEmployee"
}
,
notes
=
"fetchDEFAULT"
)
@ApiOperation
(
value
=
"fetchDEFAULT"
,
tags
=
{
"IBZEmployee"
}
,
notes
=
"fetchDEFAULT"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/ibzemployees/fetchdefault"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/ibzemployees/fetchdefault"
)
public
ResponseEntity
<
List
<
IBZEmployeeDTO
>>
fetchDefault
(
IBZEmployeeSearchContext
context
)
{
public
ResponseEntity
<
List
<
IBZEmployeeDTO
>>
fetchDefault
(
@RequestBody
IBZEmployeeSearchContext
context
)
{
Page
<
IBZEmployee
>
domains
=
ibzemployeeService
.
searchDefault
(
context
)
;
Page
<
IBZEmployee
>
domains
=
ibzemployeeService
.
searchDefault
(
context
)
;
List
<
IBZEmployeeDTO
>
list
=
ibzemployeeMapping
.
toDto
(
domains
.
getContent
());
List
<
IBZEmployeeDTO
>
list
=
ibzemployeeMapping
.
toDto
(
domains
.
getContent
());
return
ResponseEntity
.
status
(
HttpStatus
.
OK
)
return
ResponseEntity
.
status
(
HttpStatus
.
OK
)
...
@@ -190,7 +190,7 @@ public class IBZEmployeeResource {
...
@@ -190,7 +190,7 @@ public class IBZEmployeeResource {
@PreAuthorize
(
"hasPermission('Get',{#context,'Default',this.getEntity(),'Sql'})"
)
@PreAuthorize
(
"hasPermission('Get',{#context,'Default',this.getEntity(),'Sql'})"
)
@ApiOperation
(
value
=
"searchDEFAULT"
,
tags
=
{
"IBZEmployee"
}
,
notes
=
"searchDEFAULT"
)
@ApiOperation
(
value
=
"searchDEFAULT"
,
tags
=
{
"IBZEmployee"
}
,
notes
=
"searchDEFAULT"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/ibzemployees/searchdefault"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/ibzemployees/searchdefault"
)
public
ResponseEntity
<
Page
<
IBZEmployeeDTO
>>
searchDefault
(
IBZEmployeeSearchContext
context
)
{
public
ResponseEntity
<
Page
<
IBZEmployeeDTO
>>
searchDefault
(
@RequestBody
IBZEmployeeSearchContext
context
)
{
Page
<
IBZEmployee
>
domains
=
ibzemployeeService
.
searchDefault
(
context
)
;
Page
<
IBZEmployee
>
domains
=
ibzemployeeService
.
searchDefault
(
context
)
;
return
ResponseEntity
.
status
(
HttpStatus
.
OK
)
return
ResponseEntity
.
status
(
HttpStatus
.
OK
)
.
body
(
new
PageImpl
(
ibzemployeeMapping
.
toDto
(
domains
.
getContent
()),
context
.
getPageable
(),
domains
.
getTotalElements
()));
.
body
(
new
PageImpl
(
ibzemployeeMapping
.
toDto
(
domains
.
getContent
()),
context
.
getPageable
(),
domains
.
getTotalElements
()));
...
...
ibzou-provider/ibzou-provider-api/src/main/java/cn/ibizlab/api/rest/IBZOrganizationResource.java
浏览文件 @
0315c184
...
@@ -164,7 +164,7 @@ public class IBZOrganizationResource {
...
@@ -164,7 +164,7 @@ public class IBZOrganizationResource {
@PreAuthorize
(
"hasPermission('Get',{#context,'SelectSOrg',this.getEntity(),'Sql'})"
)
@PreAuthorize
(
"hasPermission('Get',{#context,'SelectSOrg',this.getEntity(),'Sql'})"
)
@ApiOperation
(
value
=
"fetch查询下级单位"
,
tags
=
{
"IBZOrganization"
}
,
notes
=
"fetch查询下级单位"
)
@ApiOperation
(
value
=
"fetch查询下级单位"
,
tags
=
{
"IBZOrganization"
}
,
notes
=
"fetch查询下级单位"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/ibzorganizations/fetchselectsorg"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/ibzorganizations/fetchselectsorg"
)
public
ResponseEntity
<
List
<
IBZOrganizationDTO
>>
fetchSelectSOrg
(
IBZOrganizationSearchContext
context
)
{
public
ResponseEntity
<
List
<
IBZOrganizationDTO
>>
fetchSelectSOrg
(
@RequestBody
IBZOrganizationSearchContext
context
)
{
Page
<
IBZOrganization
>
domains
=
ibzorganizationService
.
searchSelectSOrg
(
context
)
;
Page
<
IBZOrganization
>
domains
=
ibzorganizationService
.
searchSelectSOrg
(
context
)
;
List
<
IBZOrganizationDTO
>
list
=
ibzorganizationMapping
.
toDto
(
domains
.
getContent
());
List
<
IBZOrganizationDTO
>
list
=
ibzorganizationMapping
.
toDto
(
domains
.
getContent
());
return
ResponseEntity
.
status
(
HttpStatus
.
OK
)
return
ResponseEntity
.
status
(
HttpStatus
.
OK
)
...
@@ -177,7 +177,7 @@ public class IBZOrganizationResource {
...
@@ -177,7 +177,7 @@ public class IBZOrganizationResource {
@PreAuthorize
(
"hasPermission('Get',{#context,'SelectSOrg',this.getEntity(),'Sql'})"
)
@PreAuthorize
(
"hasPermission('Get',{#context,'SelectSOrg',this.getEntity(),'Sql'})"
)
@ApiOperation
(
value
=
"search查询下级单位"
,
tags
=
{
"IBZOrganization"
}
,
notes
=
"search查询下级单位"
)
@ApiOperation
(
value
=
"search查询下级单位"
,
tags
=
{
"IBZOrganization"
}
,
notes
=
"search查询下级单位"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/ibzorganizations/searchselectsorg"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/ibzorganizations/searchselectsorg"
)
public
ResponseEntity
<
Page
<
IBZOrganizationDTO
>>
searchSelectSOrg
(
IBZOrganizationSearchContext
context
)
{
public
ResponseEntity
<
Page
<
IBZOrganizationDTO
>>
searchSelectSOrg
(
@RequestBody
IBZOrganizationSearchContext
context
)
{
Page
<
IBZOrganization
>
domains
=
ibzorganizationService
.
searchSelectSOrg
(
context
)
;
Page
<
IBZOrganization
>
domains
=
ibzorganizationService
.
searchSelectSOrg
(
context
)
;
return
ResponseEntity
.
status
(
HttpStatus
.
OK
)
return
ResponseEntity
.
status
(
HttpStatus
.
OK
)
.
body
(
new
PageImpl
(
ibzorganizationMapping
.
toDto
(
domains
.
getContent
()),
context
.
getPageable
(),
domains
.
getTotalElements
()));
.
body
(
new
PageImpl
(
ibzorganizationMapping
.
toDto
(
domains
.
getContent
()),
context
.
getPageable
(),
domains
.
getTotalElements
()));
...
@@ -186,7 +186,7 @@ public class IBZOrganizationResource {
...
@@ -186,7 +186,7 @@ public class IBZOrganizationResource {
@PreAuthorize
(
"hasPermission('Get',{#context,'SelectPOrg',this.getEntity(),'Sql'})"
)
@PreAuthorize
(
"hasPermission('Get',{#context,'SelectPOrg',this.getEntity(),'Sql'})"
)
@ApiOperation
(
value
=
"fetch查询上级单位"
,
tags
=
{
"IBZOrganization"
}
,
notes
=
"fetch查询上级单位"
)
@ApiOperation
(
value
=
"fetch查询上级单位"
,
tags
=
{
"IBZOrganization"
}
,
notes
=
"fetch查询上级单位"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/ibzorganizations/fetchselectporg"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/ibzorganizations/fetchselectporg"
)
public
ResponseEntity
<
List
<
IBZOrganizationDTO
>>
fetchSelectPOrg
(
IBZOrganizationSearchContext
context
)
{
public
ResponseEntity
<
List
<
IBZOrganizationDTO
>>
fetchSelectPOrg
(
@RequestBody
IBZOrganizationSearchContext
context
)
{
Page
<
IBZOrganization
>
domains
=
ibzorganizationService
.
searchSelectPOrg
(
context
)
;
Page
<
IBZOrganization
>
domains
=
ibzorganizationService
.
searchSelectPOrg
(
context
)
;
List
<
IBZOrganizationDTO
>
list
=
ibzorganizationMapping
.
toDto
(
domains
.
getContent
());
List
<
IBZOrganizationDTO
>
list
=
ibzorganizationMapping
.
toDto
(
domains
.
getContent
());
return
ResponseEntity
.
status
(
HttpStatus
.
OK
)
return
ResponseEntity
.
status
(
HttpStatus
.
OK
)
...
@@ -199,7 +199,7 @@ public class IBZOrganizationResource {
...
@@ -199,7 +199,7 @@ public class IBZOrganizationResource {
@PreAuthorize
(
"hasPermission('Get',{#context,'SelectPOrg',this.getEntity(),'Sql'})"
)
@PreAuthorize
(
"hasPermission('Get',{#context,'SelectPOrg',this.getEntity(),'Sql'})"
)
@ApiOperation
(
value
=
"search查询上级单位"
,
tags
=
{
"IBZOrganization"
}
,
notes
=
"search查询上级单位"
)
@ApiOperation
(
value
=
"search查询上级单位"
,
tags
=
{
"IBZOrganization"
}
,
notes
=
"search查询上级单位"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/ibzorganizations/searchselectporg"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/ibzorganizations/searchselectporg"
)
public
ResponseEntity
<
Page
<
IBZOrganizationDTO
>>
searchSelectPOrg
(
IBZOrganizationSearchContext
context
)
{
public
ResponseEntity
<
Page
<
IBZOrganizationDTO
>>
searchSelectPOrg
(
@RequestBody
IBZOrganizationSearchContext
context
)
{
Page
<
IBZOrganization
>
domains
=
ibzorganizationService
.
searchSelectPOrg
(
context
)
;
Page
<
IBZOrganization
>
domains
=
ibzorganizationService
.
searchSelectPOrg
(
context
)
;
return
ResponseEntity
.
status
(
HttpStatus
.
OK
)
return
ResponseEntity
.
status
(
HttpStatus
.
OK
)
.
body
(
new
PageImpl
(
ibzorganizationMapping
.
toDto
(
domains
.
getContent
()),
context
.
getPageable
(),
domains
.
getTotalElements
()));
.
body
(
new
PageImpl
(
ibzorganizationMapping
.
toDto
(
domains
.
getContent
()),
context
.
getPageable
(),
domains
.
getTotalElements
()));
...
@@ -208,7 +208,7 @@ public class IBZOrganizationResource {
...
@@ -208,7 +208,7 @@ public class IBZOrganizationResource {
@PreAuthorize
(
"hasPermission('Get',{#context,'Default',this.getEntity(),'Sql'})"
)
@PreAuthorize
(
"hasPermission('Get',{#context,'Default',this.getEntity(),'Sql'})"
)
@ApiOperation
(
value
=
"fetchDEFAULT"
,
tags
=
{
"IBZOrganization"
}
,
notes
=
"fetchDEFAULT"
)
@ApiOperation
(
value
=
"fetchDEFAULT"
,
tags
=
{
"IBZOrganization"
}
,
notes
=
"fetchDEFAULT"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/ibzorganizations/fetchdefault"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/ibzorganizations/fetchdefault"
)
public
ResponseEntity
<
List
<
IBZOrganizationDTO
>>
fetchDefault
(
IBZOrganizationSearchContext
context
)
{
public
ResponseEntity
<
List
<
IBZOrganizationDTO
>>
fetchDefault
(
@RequestBody
IBZOrganizationSearchContext
context
)
{
Page
<
IBZOrganization
>
domains
=
ibzorganizationService
.
searchDefault
(
context
)
;
Page
<
IBZOrganization
>
domains
=
ibzorganizationService
.
searchDefault
(
context
)
;
List
<
IBZOrganizationDTO
>
list
=
ibzorganizationMapping
.
toDto
(
domains
.
getContent
());
List
<
IBZOrganizationDTO
>
list
=
ibzorganizationMapping
.
toDto
(
domains
.
getContent
());
return
ResponseEntity
.
status
(
HttpStatus
.
OK
)
return
ResponseEntity
.
status
(
HttpStatus
.
OK
)
...
@@ -221,7 +221,7 @@ public class IBZOrganizationResource {
...
@@ -221,7 +221,7 @@ public class IBZOrganizationResource {
@PreAuthorize
(
"hasPermission('Get',{#context,'Default',this.getEntity(),'Sql'})"
)
@PreAuthorize
(
"hasPermission('Get',{#context,'Default',this.getEntity(),'Sql'})"
)
@ApiOperation
(
value
=
"searchDEFAULT"
,
tags
=
{
"IBZOrganization"
}
,
notes
=
"searchDEFAULT"
)
@ApiOperation
(
value
=
"searchDEFAULT"
,
tags
=
{
"IBZOrganization"
}
,
notes
=
"searchDEFAULT"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/ibzorganizations/searchdefault"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/ibzorganizations/searchdefault"
)
public
ResponseEntity
<
Page
<
IBZOrganizationDTO
>>
searchDefault
(
IBZOrganizationSearchContext
context
)
{
public
ResponseEntity
<
Page
<
IBZOrganizationDTO
>>
searchDefault
(
@RequestBody
IBZOrganizationSearchContext
context
)
{
Page
<
IBZOrganization
>
domains
=
ibzorganizationService
.
searchDefault
(
context
)
;
Page
<
IBZOrganization
>
domains
=
ibzorganizationService
.
searchDefault
(
context
)
;
return
ResponseEntity
.
status
(
HttpStatus
.
OK
)
return
ResponseEntity
.
status
(
HttpStatus
.
OK
)
.
body
(
new
PageImpl
(
ibzorganizationMapping
.
toDto
(
domains
.
getContent
()),
context
.
getPageable
(),
domains
.
getTotalElements
()));
.
body
(
new
PageImpl
(
ibzorganizationMapping
.
toDto
(
domains
.
getContent
()),
context
.
getPageable
(),
domains
.
getTotalElements
()));
...
...
ibzou-util/pom.xml
浏览文件 @
0315c184
...
@@ -85,5 +85,10 @@
...
@@ -85,5 +85,10 @@
<artifactId>
springfox-swagger-ui
</artifactId>
<artifactId>
springfox-swagger-ui
</artifactId>
</dependency>
</dependency>
<dependency>
<groupId>
io.github.openfeign
</groupId>
<artifactId>
feign-httpclient
</artifactId>
</dependency>
</dependencies>
</dependencies>
</project>
</project>
ibzou-util/src/main/java/cn/ibizlab/util/filter/SearchContextBase.java
浏览文件 @
0315c184
...
@@ -7,6 +7,7 @@ import com.fasterxml.jackson.annotation.JsonProperty;
...
@@ -7,6 +7,7 @@ import com.fasterxml.jackson.annotation.JsonProperty;
import
lombok.Data
;
import
lombok.Data
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.data.domain.PageRequest
;
import
org.springframework.data.domain.PageRequest
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.data.domain.Sort
;
import
org.springframework.data.domain.Sort
;
import
org.springframework.util.StringUtils
;
import
org.springframework.util.StringUtils
;
...
@@ -54,6 +55,7 @@ public class SearchContextBase implements ISearchContext{
...
@@ -54,6 +55,7 @@ public class SearchContextBase implements ISearchContext{
/**
/**
* 排序对象
* 排序对象
*/
*/
@JsonIgnore
public
Sort
pageSort
;
public
Sort
pageSort
;
/**
/**
* 工作流步骤标识
* 工作流步骤标识
...
...
ibzou-util/src/main/resources/application-sys.yml
浏览文件 @
0315c184
...
@@ -63,6 +63,8 @@ mybatis-plus:
...
@@ -63,6 +63,8 @@ mybatis-plus:
#阿里sentinel熔断器
#阿里sentinel熔断器
feign
:
feign
:
httpclient
:
enabled
:
true
sentinel
:
sentinel
:
enabled
:
true
enabled
:
true
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录