Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
operation-control-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王锦盛
operation-control-platform
Commits
68e1dab2
Commit
68e1dab2
authored
Mar 17, 2022
by
胡秀武
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
be9d4437
4e14c0d8
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
11 deletions
+10
-11
src/main/java/com/pms/ocp/controller/OcpTenantController.java
...main/java/com/pms/ocp/controller/OcpTenantController.java
+2
-2
src/main/java/com/pms/ocp/service/TenantService.java
src/main/java/com/pms/ocp/service/TenantService.java
+1
-1
src/main/java/com/pms/ocp/service/impl/TenantServiceImpl.java
...main/java/com/pms/ocp/service/impl/TenantServiceImpl.java
+7
-8
No files found.
src/main/java/com/pms/ocp/controller/OcpTenantController.java
View file @
68e1dab2
...
@@ -41,8 +41,8 @@ public class OcpTenantController {
...
@@ -41,8 +41,8 @@ public class OcpTenantController {
}
}
@GetMapping
(
"/tenantselect"
)
@GetMapping
(
"/tenantselect"
)
@ApiModelProperty
(
"应用树分类--查询"
)
@ApiModelProperty
(
"应用树分类--查询"
)
private
ResponseVO
<
Page
<
OcpTenantGroup
>>
getselect
(
String
tenantGroupCode
,
String
tenantGroupCompanyCode
,
int
currentPage
,
int
pageSize
,
String
keyword
){
private
ResponseVO
<
Page
<
OcpTenantGroup
>>
getselect
(
String
tenantGroupCode
,
String
tenantGroupCompanyCode
,
int
currentPage
,
int
pageSize
,
String
keyword
,
String
lev
){
Page
<
OcpTenantGroup
>
tree
=
tenantService
.
getselects
(
tenantGroupCode
,
tenantGroupCompanyCode
,
currentPage
,
pageSize
,
keyword
);
Page
<
OcpTenantGroup
>
tree
=
tenantService
.
getselects
(
tenantGroupCode
,
tenantGroupCompanyCode
,
currentPage
,
pageSize
,
keyword
,
lev
);
return
ResponseVO
.
ok
(
tree
);
return
ResponseVO
.
ok
(
tree
);
}
}
...
...
src/main/java/com/pms/ocp/service/TenantService.java
View file @
68e1dab2
...
@@ -48,6 +48,6 @@ public interface TenantService extends IService<OcpTenantGroup> {
...
@@ -48,6 +48,6 @@ public interface TenantService extends IService<OcpTenantGroup> {
* @param tenantGroupCompanyCode
* @param tenantGroupCompanyCode
* @return
* @return
*/
*/
Page
<
OcpTenantGroup
>
getselects
(
String
tenantGroupCode
,
String
tenantGroupCompanyCode
,
int
currentPage
,
int
pageSize
,
String
text
);
Page
<
OcpTenantGroup
>
getselects
(
String
tenantGroupCode
,
String
tenantGroupCompanyCode
,
int
currentPage
,
int
pageSize
,
String
text
,
String
lev
);
}
}
src/main/java/com/pms/ocp/service/impl/TenantServiceImpl.java
View file @
68e1dab2
...
@@ -168,18 +168,17 @@ public class TenantServiceImpl extends ServiceImpl<TenantMapper, OcpTenantGroup>
...
@@ -168,18 +168,17 @@ public class TenantServiceImpl extends ServiceImpl<TenantMapper, OcpTenantGroup>
* @return
* @return
*/
*/
@Override
@Override
public
Page
<
OcpTenantGroup
>
getselects
(
String
tenantGroupCode
,
String
tenantGroupCompanyCode
,
int
currentPage
,
int
pageSize
,
String
keyword
)
{
public
Page
<
OcpTenantGroup
>
getselects
(
String
tenantGroupCode
,
String
tenantGroupCompanyCode
,
int
currentPage
,
int
pageSize
,
String
keyword
,
String
lev
)
{
LambdaQueryWrapper
<
OcpTenantGroup
>
qw
=
new
LambdaQueryWrapper
<>();
LambdaQueryWrapper
<
OcpTenantGroup
>
qw
=
new
LambdaQueryWrapper
<>();
Page
<
OcpTenantGroup
>
page
=
new
Page
<>(
currentPage
,
pageSize
);
Page
<
OcpTenantGroup
>
page
=
new
Page
<>(
currentPage
,
pageSize
);
if
(
StringUtils
.
isBlank
(
keyword
))
{
if
(
StringUtils
.
isBlank
(
keyword
))
{
if
(!(
""
.
equals
(
tenantGroupCompanyCode
))
&&
StringUtils
.
isBlank
(
tenantGroupCode
))
{
if
(
lev
.
equals
(
"1"
))
{
//
List<OcpTenantGroup> ocpTenantGroupList = tenantMapper.selectTenantGroup(tenantGroupCompanyCode);
List
<
OcpTenantGroup
>
ocpTenantGroupList
=
tenantMapper
.
selectTenantGroup
(
tenantGroupCompanyCode
);
qw
.
eq
(
OcpTenantGroup:
:
getTenantGroupCompanyCode
,
tenantGroupCompanyCode
);
qw
.
eq
(
OcpTenantGroup:
:
getTenantGroupCompanyCode
,
tenantGroupCompanyCode
);
//
page.setRecords(ocpTenantGroupList);
page
.
setRecords
(
ocpTenantGroupList
);
tenantMapper
.
selectPage
(
page
,
qw
);
tenantMapper
.
selectPage
(
page
,
qw
);
}
else
if
(
lev
.
equals
(
"2"
)
||
lev
.
equals
(
"3"
))
{
}
else
if
(!(
""
.
equals
(
tenantGroupCompanyCode
))
&&
!(
""
.
equals
(
tenantGroupCode
)))
{
LambdaQueryWrapper
<
OcpTenantGroup
>
eq
=
qw
.
or
(
wq
->
wq
.
eq
(
OcpTenantGroup:
:
getTenantGroupCompanyCode
,
tenantGroupCompanyCode
)).
eq
(
OcpTenantGroup:
:
getTenantGroupPcode
,
tenantGroupCode
);
LambdaQueryWrapper
<
OcpTenantGroup
>
eq
=
qw
.
or
(
wq
->
wq
.
eq
(
OcpTenantGroup:
:
getTenantGroupCompanyCode
,
tenantGroupCompanyCode
)).
eq
(
OcpTenantGroup:
:
getTenantGroupPcode
,
tenantGroupCode
);
tenantMapper
.
selectPage
(
page
,
eq
);
tenantMapper
.
selectPage
(
page
,
eq
);
}
}
...
...
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