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
b7bef58f
Commit
b7bef58f
authored
Mar 18, 2022
by
zhaochengming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
赵呈明 --服务树分类
parent
6b9c1de8
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
178 additions
and
54 deletions
+178
-54
src/main/java/com/pms/ocp/controller/OcpApiTreeController.java
...ain/java/com/pms/ocp/controller/OcpApiTreeController.java
+2
-6
src/main/java/com/pms/ocp/mapper/OcpApiTreeMapper.java
src/main/java/com/pms/ocp/mapper/OcpApiTreeMapper.java
+1
-1
src/main/java/com/pms/ocp/model/dto/PageGroupDto.java
src/main/java/com/pms/ocp/model/dto/PageGroupDto.java
+12
-0
src/main/java/com/pms/ocp/model/dto/TenanBaseDto.java
src/main/java/com/pms/ocp/model/dto/TenanBaseDto.java
+98
-1
src/main/java/com/pms/ocp/model/entity/OcpTenantGroup.java
src/main/java/com/pms/ocp/model/entity/OcpTenantGroup.java
+5
-0
src/main/java/com/pms/ocp/service/OcpApiTreeService.java
src/main/java/com/pms/ocp/service/OcpApiTreeService.java
+1
-1
src/main/java/com/pms/ocp/service/impl/OcpApiTreeServiceImpl.java
.../java/com/pms/ocp/service/impl/OcpApiTreeServiceImpl.java
+58
-43
src/main/java/com/pms/ocp/service/impl/TenantServiceImpl.java
...main/java/com/pms/ocp/service/impl/TenantServiceImpl.java
+1
-2
No files found.
src/main/java/com/pms/ocp/controller/OcpApiTreeController.java
View file @
b7bef58f
...
@@ -43,11 +43,8 @@ public class OcpApiTreeController {
...
@@ -43,11 +43,8 @@ public class OcpApiTreeController {
@PostMapping
(
"/instertree"
)
@PostMapping
(
"/instertree"
)
@ApiOperation
(
"服务树分类--新增"
)
@ApiOperation
(
"服务树分类--新增"
)
public
ResponseVO
inseter
(
@RequestBody
OcpApiGroup
ocpApiGroup
){
public
ResponseVO
inseter
(
@RequestBody
OcpApiGroup
ocpApiGroup
){
boolean
flag
=
service
.
insertTree
(
ocpApiGroup
);
OcpApiGroup
ocpApiGroup1
=
service
.
insertTree
(
ocpApiGroup
);
if
(
flag
){
return
ResponseVO
.
ok
(
ocpApiGroup1
);
return
ResponseVO
.
ok
();
}
return
ResponseVO
.
error
(
"您的服务编码重复,请重新输入"
);
}
}
...
@@ -58,7 +55,6 @@ public class OcpApiTreeController {
...
@@ -58,7 +55,6 @@ public class OcpApiTreeController {
return
ResponseVO
.
ok
(
onePages
);
return
ResponseVO
.
ok
(
onePages
);
}
}
@PostMapping
(
"/updatatree"
)
@PostMapping
(
"/updatatree"
)
@ApiOperation
(
"服务树分类--修改"
)
@ApiOperation
(
"服务树分类--修改"
)
public
ResponseVO
updataTree
(
@RequestBody
OcpApiGroup
ocpApiGroup
){
public
ResponseVO
updataTree
(
@RequestBody
OcpApiGroup
ocpApiGroup
){
...
...
src/main/java/com/pms/ocp/mapper/OcpApiTreeMapper.java
View file @
b7bef58f
...
@@ -32,7 +32,7 @@ public interface OcpApiTreeMapper extends BaseMapper<OcpApiGroup> {
...
@@ -32,7 +32,7 @@ public interface OcpApiTreeMapper extends BaseMapper<OcpApiGroup> {
List
<
OcpApiGroup
>
selectThreeApiGroupsList
(
Long
apiGroupPromotionType
,
String
apiGroupCode
);
List
<
OcpApiGroup
>
selectThreeApiGroupsList
(
Long
apiGroupPromotionType
,
String
apiGroupCode
);
List
<
OcpApiGroup
>
selectLists
(
Long
apiGroupPromotionType
,
String
apiGroupCode
,
String
apiGroupLevel
);
List
<
OcpApiGroup
>
selectLists
(
Long
apiGroupPromotionType
,
String
apiGroupCode
);
//code重复问题
//code重复问题
List
<
OcpApiGroup
>
selectGroupCode
();
List
<
OcpApiGroup
>
selectGroupCode
();
...
...
src/main/java/com/pms/ocp/model/dto/PageGroupDto.java
View file @
b7bef58f
...
@@ -53,6 +53,18 @@ public class PageGroupDto extends PageParam {
...
@@ -53,6 +53,18 @@ public class PageGroupDto extends PageParam {
@ApiModelProperty
(
"分层树层级 1中台层 2中心层 3 服务组层 4服务层 "
)
@ApiModelProperty
(
"分层树层级 1中台层 2中心层 3 服务组层 4服务层 "
)
private
String
apiGroupLevel
;
private
String
apiGroupLevel
;
@ApiModelProperty
(
"模糊查询字段"
)
private
String
keyword
;
public
String
getKeyword
()
{
return
keyword
;
}
public
void
setKeyword
(
String
keyword
)
{
this
.
keyword
=
keyword
;
}
public
String
getObjId
()
{
public
String
getObjId
()
{
return
objId
;
return
objId
;
}
}
...
...
src/main/java/com/pms/ocp/model/dto/TenanBaseDto.java
View file @
b7bef58f
...
@@ -131,7 +131,104 @@ public class TenanBaseDto extends OcpTenantGroup {
...
@@ -131,7 +131,104 @@ public class TenanBaseDto extends OcpTenantGroup {
return
classIfy
;
return
classIfy
;
}
}
public
void
setClassIfy
(
String
classIfy
)
{
public
String
getTenantGroupName
()
{
return
tenantGroupName
;
}
public
void
setTenantGroupName
(
String
tenantGroupName
)
{
this
.
tenantGroupName
=
tenantGroupName
;
}
public
String
getTenantGroupCompanyCode
()
{
return
tenantGroupCompanyCode
;
}
public
void
setTenantGroupCompanyCode
(
String
tenantGroupCompanyCode
)
{
this
.
tenantGroupCompanyCode
=
tenantGroupCompanyCode
;
}
public
String
getTenantGroupPcode
()
{
return
tenantGroupPcode
;
}
public
void
setTenantGroupPcode
(
String
tenantGroupPcode
)
{
this
.
tenantGroupPcode
=
tenantGroupPcode
;
}
public
String
getTenantType
()
{
return
tenantType
;
}
public
void
setTenantType
(
String
tenantType
)
{
this
.
tenantType
=
tenantType
;
}
public
String
getTenantGroupVersion
()
{
return
tenantGroupVersion
;
}
public
void
setTenantGroupVersion
(
String
tenantGroupVersion
)
{
this
.
tenantGroupVersion
=
tenantGroupVersion
;
}
public
Integer
getTenantGroupOrderNo
()
{
return
tenantGroupOrderNo
;
}
public
void
setTenantGroupOrderNo
(
Integer
tenantGroupOrderNo
)
{
this
.
tenantGroupOrderNo
=
tenantGroupOrderNo
;
}
public
String
getTenantGroupUserId
()
{
return
tenantGroupUserId
;
}
public
void
setTenantGroupUserId
(
String
tenantGroupUserId
)
{
this
.
tenantGroupUserId
=
tenantGroupUserId
;
}
public
String
getTenantGroupUserName
()
{
return
tenantGroupUserName
;
}
public
void
setTenantGroupUserName
(
String
tenantGroupUserName
)
{
this
.
tenantGroupUserName
=
tenantGroupUserName
;
}
public
Timestamp
getTenantGroupCtime
()
{
return
tenantGroupCtime
;
}
public
void
setTenantGroupCtime
(
Timestamp
tenantGroupCtime
)
{
this
.
tenantGroupCtime
=
tenantGroupCtime
;
}
public
Timestamp
getTenantGroupMtime
()
{
return
tenantGroupMtime
;
}
public
void
setTenantGroupMtime
(
Timestamp
tenantGroupMtime
)
{
this
.
tenantGroupMtime
=
tenantGroupMtime
;
}
public
Short
getIsDelete
()
{
return
isDelete
;
}
public
void
setIsDelete
(
Short
isDelete
)
{
this
.
isDelete
=
isDelete
;
}
public
String
getTenantGroupLevel
()
{
return
tenantGroupLevel
;
}
public
void
setTenantGroupLevel
(
String
tenantGroupLevel
)
{
this
.
tenantGroupLevel
=
tenantGroupLevel
;
}
public
OcpTenantGroup
setClassIfy
(
String
classIfy
)
{
this
.
classIfy
=
classIfy
;
this
.
classIfy
=
classIfy
;
return
null
;
}
}
}
}
src/main/java/com/pms/ocp/model/entity/OcpTenantGroup.java
View file @
b7bef58f
package
com.pms.ocp.model.entity
;
package
com.pms.ocp.model.entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
...
@@ -106,7 +107,11 @@ public class OcpTenantGroup implements Serializable {
...
@@ -106,7 +107,11 @@ public class OcpTenantGroup implements Serializable {
@ApiModelProperty
(
"应用树层级 1:应用分组层 2:应用层"
)
@ApiModelProperty
(
"应用树层级 1:应用分组层 2:应用层"
)
private
String
tenantGroupLevel
;
private
String
tenantGroupLevel
;
//上级分类名称
@ApiModelProperty
(
"上级分类名称"
)
@TableField
(
exist
=
false
)
private
String
classIfy
;
public
static
long
getSerialVersionUID
()
{
public
static
long
getSerialVersionUID
()
{
return
serialVersionUID
;
return
serialVersionUID
;
...
...
src/main/java/com/pms/ocp/service/OcpApiTreeService.java
View file @
b7bef58f
...
@@ -19,7 +19,7 @@ public interface OcpApiTreeService extends IService<OcpApiGroup> {
...
@@ -19,7 +19,7 @@ public interface OcpApiTreeService extends IService<OcpApiGroup> {
/**
/**
* 新增服务分类
* 新增服务分类
*/
*/
boolean
insertTree
(
OcpApiGroup
ocpApiGroup
);
OcpApiGroup
insertTree
(
OcpApiGroup
ocpApiGroup
);
/*
/*
...
...
src/main/java/com/pms/ocp/service/impl/OcpApiTreeServiceImpl.java
View file @
b7bef58f
...
@@ -8,9 +8,11 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
...
@@ -8,9 +8,11 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import
com.pms.ocp.common.utils.RandomStringUtils
;
import
com.pms.ocp.common.utils.RandomStringUtils
;
import
com.pms.ocp.mapper.OcpApiBaseMapper
;
import
com.pms.ocp.mapper.OcpApiBaseMapper
;
import
com.pms.ocp.mapper.OcpApiTreeMapper
;
import
com.pms.ocp.mapper.OcpApiTreeMapper
;
import
com.pms.ocp.model.QueryResponseResult
;
import
com.pms.ocp.model.dto.*
;
import
com.pms.ocp.model.dto.*
;
import
com.pms.ocp.model.entity.OcpApiGroup
;
import
com.pms.ocp.model.entity.OcpApiGroup
;
import
com.pms.ocp.model.entity.OcpTenantGroup
;
import
com.pms.ocp.service.OcpApiTreeService
;
import
com.pms.ocp.service.OcpApiTreeService
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
...
@@ -25,7 +27,7 @@ import java.util.stream.Stream;
...
@@ -25,7 +27,7 @@ import java.util.stream.Stream;
@Service
@Service
@Slf4j
@Slf4j
public
class
OcpApiTreeServiceImpl
extends
ServiceImpl
<
OcpApiTreeMapper
,
OcpApiGroup
>
implements
OcpApiTreeService
{
public
class
OcpApiTreeServiceImpl
extends
ServiceImpl
<
OcpApiTreeMapper
,
OcpApiGroup
>
implements
OcpApiTreeService
{
@Autowired
@Autowired
...
@@ -41,19 +43,19 @@ public class OcpApiTreeServiceImpl extends ServiceImpl<OcpApiTreeMapper,OcpApiGr
...
@@ -41,19 +43,19 @@ public class OcpApiTreeServiceImpl extends ServiceImpl<OcpApiTreeMapper,OcpApiGr
*/
*/
@Override
@Override
public
List
<
OcpApiGroup
>
getByGroup
(
Long
apiGroupPromotionType
,
String
apiGroupCode
)
{
public
List
<
OcpApiGroup
>
getByGroup
(
Long
apiGroupPromotionType
,
String
apiGroupCode
)
{
if
(!(
""
.
equals
(
apiGroupPromotionType
))
&&
StringUtils
.
isBlank
(
apiGroupCode
)){
if
(!(
""
.
equals
(
apiGroupPromotionType
))
&&
StringUtils
.
isBlank
(
apiGroupCode
))
{
List
<
OcpApiGroup
>
ocpApiGroups
=
mapper
.
selectTwoApiGroups
(
apiGroupPromotionType
);
List
<
OcpApiGroup
>
ocpApiGroups
=
mapper
.
selectTwoApiGroups
(
apiGroupPromotionType
);
return
ocpApiGroups
;
return
ocpApiGroups
;
}
else
if
(!(
""
.
equals
(
apiGroupPromotionType
))
&&
!(
StringUtils
.
isBlank
(
apiGroupCode
))){
}
else
if
(!(
""
.
equals
(
apiGroupPromotionType
))
&&
!(
StringUtils
.
isBlank
(
apiGroupCode
)))
{
List
<
OcpApiGroup
>
ocpApiGroups
=
mapper
.
selectThreeApiGroupsList
(
apiGroupPromotionType
,
apiGroupCode
);
List
<
OcpApiGroup
>
ocpApiGroups
=
mapper
.
selectThreeApiGroupsList
(
apiGroupPromotionType
,
apiGroupCode
);
return
ocpApiGroups
;
return
ocpApiGroups
;
}
return
null
;
}
}
return
null
;
}
/**
/**
* 新增服务分类
* 新增服务分类
...
@@ -61,35 +63,35 @@ public class OcpApiTreeServiceImpl extends ServiceImpl<OcpApiTreeMapper,OcpApiGr
...
@@ -61,35 +63,35 @@ public class OcpApiTreeServiceImpl extends ServiceImpl<OcpApiTreeMapper,OcpApiGr
* @param
* @param
*/
*/
@Override
@Override
public
boolean
insertTree
(
OcpApiGroup
ocpApiGroup
)
{
public
OcpApiGroup
insertTree
(
OcpApiGroup
ocpApiGroup
)
{
Timestamp
timestamp
=
new
Timestamp
(
System
.
currentTimeMillis
());
Timestamp
timestamp
=
new
Timestamp
(
System
.
currentTimeMillis
());
String
code
=
RandomStringUtils
.
getRandomString
(
6
);
String
code
=
RandomStringUtils
.
getRandomString
(
6
);
boolean
flag
=
true
;
boolean
flag
=
true
;
List
<
OcpApiGroup
>
ocpApiGroups
=
mapper
.
selectList
(
null
);
List
<
OcpApiGroup
>
ocpApiGroups
=
mapper
.
selectList
(
null
);
Stream
<
OcpApiGroup
>
ocpApiGroupStream
=
ocpApiGroups
.
stream
().
filter
(
item
->
item
.
getApiGroupCode
().
equals
(
ocpApiGroup
.
getApiGroupPcode
()));
Stream
<
OcpApiGroup
>
ocpApiGroupStream
=
ocpApiGroups
.
stream
().
filter
(
item
->
item
.
getApiGroupCode
().
equals
(
ocpApiGroup
.
getApiGroupPcode
()));
Stream
<
OcpApiGroup
>
apiGroupStream1
=
ocpApiGroupStream
.
filter
(
ocp
->
ocp
.
getApiGroupName
().
equals
(
ocpApiGroup
.
getApiGroupName
()));
Stream
<
OcpApiGroup
>
apiGroupStream1
=
ocpApiGroupStream
.
filter
(
ocp
->
ocp
.
getApiGroupName
().
equals
(
ocpApiGroup
.
getApiGroupName
()));
if
(!(
apiGroupStream1
.
isParallel
())){
OcpApiGroup
ocpApi
=
new
OcpApiGroup
();
OcpApiGroup
ocpApi
=
new
OcpApiGroup
();
if
(!(
StringUtils
.
isBlank
(
apiGroupStream1
.
toString
())))
{
BeanUtils
.
copyProperties
(
ocpApiGroup
,
ocpApi
);
ocpApi
.
setApiGroupPromotionType
(
ocpApiGroup
.
getApiGroupPromotionType
());
ocpApi
.
setApiGroupPromotionType
(
ocpApiGroup
.
getApiGroupPromotionType
());
BeanUtils
.
copyProperties
(
ocpApiGroup
,
ocpApi
);
ocpApi
.
setObjId
(
""
);
ocpApi
.
setObjId
(
""
);
ocpApi
.
setApiGroupMtime
(
timestamp
);
ocpApi
.
setApiGroupMtime
(
timestamp
);
ocpApi
.
setApiGroupCtime
(
timestamp
);
ocpApi
.
setApiGroupCtime
(
timestamp
);
ocpApi
.
setApiGroupPcode
(
ocpApiGroup
.
getApiGroupCode
());
ocpApi
.
setApiGroupPcode
(
ocpApiGroup
.
getApiGroupCode
());
ocpApi
.
setApiGroupCode
(
code
);
ocpApi
.
setApiGroupCode
(
code
);
if
(
ocpApiGroup
.
getApiGroupLevel
().
equals
(
"Middleground"
)){
ocpApi
.
setApiGroupPromotionType
(
ocpApiGroup
.
getApiGroupPromotionType
());
if
(
"Middleground"
.
equals
(
ocpApiGroup
.
getApiGroupLevel
()))
{
ocpApiGroup
.
setApiGroupLevel
(
"sys_center"
);
ocpApiGroup
.
setApiGroupLevel
(
"sys_center"
);
}
}
if
(
ocpApiGroup
.
getApiGroupLevel
().
equals
(
"sys_center"
))
{
if
(
"sys_center"
.
equals
(
ocpApiGroup
.
getApiGroupLevel
()))
{
ocpApiGroup
.
setApiGroupLevel
(
"api_group"
);
ocpApiGroup
.
setApiGroupLevel
(
"api_group"
);
}
}
mapper
.
insert
(
ocpApi
);
mapper
.
insert
(
ocpApi
);
}
else
{
}
else
{
return
ocpApi
;
return
false
;
}
}
return
flag
;
return
ocpApi
;
}
}
...
@@ -123,18 +125,21 @@ public class OcpApiTreeServiceImpl extends ServiceImpl<OcpApiTreeMapper,OcpApiGr
...
@@ -123,18 +125,21 @@ public class OcpApiTreeServiceImpl extends ServiceImpl<OcpApiTreeMapper,OcpApiGr
* @param ocpApiGroup
* @param ocpApiGroup
*/
*/
@Override
@Override
public
boolean
deleteOcpTree
(
OcpApiGroup
ocpApiGroup
)
{
public
boolean
deleteOcpTree
(
OcpApiGroup
ocpApiGroup
)
{
boolean
flag
=
true
;
boolean
flag
=
true
;
LambdaQueryWrapper
<
OcpApiGroup
>
queryWrapper
=
new
LambdaQueryWrapper
<>();
queryWrapper
.
eq
(
OcpApiGroup:
:
getApiGroupCode
,
ocpApiGroup
.
getApiGroupCode
());
String
objId
=
ocpApiGroup
.
getObjId
();
String
objId
=
ocpApiGroup
.
getObjId
();
OcpApiGroup
ocpApiGroup1
=
mapper
.
selectById
(
objId
);
if
(
StringUtils
.
isBlank
(
ocpApiGroup
.
getApiGroupCode
()))
{
List
<
OcpApiGroup
>
ocpApiGroups
=
mapper
.
selectList
(
null
);
flag
=
false
;
for
(
OcpApiGroup
apiGroup
:
ocpApiGroups
)
{
}
else
{
if
((
ocpApiGroup1
.
getApiGroupCode
()).
equals
(
apiGroup
.
getApiGroupPcode
())){
flag
=
false
;
LambdaQueryWrapper
<
OcpApiGroup
>
eq
=
queryWrapper
.
eq
(
OcpApiGroup:
:
getApiGroupPcode
,
ocpApiGroup
.
getApiGroupCode
());
break
;
if
(
StringUtils
.
isBlank
(
eq
.
toString
()))
{
}
flag
=
false
;
}
}
}
if
(
flag
){
if
(
flag
)
{
mapper
.
deleteById
(
objId
);
mapper
.
deleteById
(
objId
);
}
}
return
flag
;
return
flag
;
...
@@ -149,17 +154,27 @@ public class OcpApiTreeServiceImpl extends ServiceImpl<OcpApiTreeMapper,OcpApiGr
...
@@ -149,17 +154,27 @@ public class OcpApiTreeServiceImpl extends ServiceImpl<OcpApiTreeMapper,OcpApiGr
*/
*/
@Override
@Override
public
Page
<
OcpApiGroup
>
getOnePages
(
PageGroupDto
pageGroupDto
)
{
public
Page
<
OcpApiGroup
>
getOnePages
(
PageGroupDto
pageGroupDto
)
{
Page
pageInfo
=
new
Page
(
pageGroupDto
.
getPageNum
(),
pageGroupDto
.
getPageSize
());
Page
pageInfo
=
new
Page
(
pageGroupDto
.
getPageNum
(),
pageGroupDto
.
getPageSize
());
if
(
StringUtils
.
isBlank
(
pageGroupDto
.
getApiGroupCode
())){
LambdaQueryWrapper
<
OcpApiGroup
>
qw
=
new
LambdaQueryWrapper
<>();
LambdaQueryWrapper
<
OcpApiGroup
>
lambdaQueryWrapper
=
new
LambdaQueryWrapper
();
if
(!(
""
.
equals
(
pageGroupDto
.
getKeyword
())))
{
lambdaQueryWrapper
.
eq
(
OcpApiGroup:
:
getApiGroupPromotionType
,
pageGroupDto
.
getApiGroupPromotionType
());
if
(
StringUtils
.
isBlank
(
pageGroupDto
.
getApiGroupLevel
()))
{
pageInfo
=
mapper
.
selectPage
(
pageInfo
,
lambdaQueryWrapper
);
}
else
if
(!(
StringUtils
.
isBlank
(
pageGroupDto
.
getApiGroupCode
()))){
qw
.
eq
(
OcpApiGroup:
:
getApiGroupPromotionType
,
pageGroupDto
.
getApiGroupPromotionType
());
List
<
OcpApiGroup
>
ocpApiGroups
=
mapper
.
selectLists
(
pageGroupDto
.
getApiGroupPromotionType
(),
pageGroupDto
.
getApiGroupCode
(),
pageGroupDto
.
getApiGroupLevel
());
mapper
.
selectPage
(
pageInfo
,
qw
);
pageInfo
.
setRecords
(
ocpApiGroups
);
pageInfo
=
mapper
.
selectPage
(
pageInfo
,
null
);
}
else
if
(
"Middleground"
.
equals
(
pageGroupDto
.
getApiGroupLevel
())
||
"sys_center"
.
equals
(
pageGroupDto
.
getApiGroupLevel
())
||
"api_group"
.
equals
(
pageGroupDto
.
getApiGroupLevel
()))
{
List
<
OcpApiGroup
>
ocpApiGroups
=
mapper
.
selectLists
(
pageGroupDto
.
getApiGroupPromotionType
(),
pageGroupDto
.
getApiGroupCode
());
pageInfo
.
setRecords
(
ocpApiGroups
);
pageInfo
.
setTotal
(
ocpApiGroups
.
size
());
}
}
else
{
LambdaQueryWrapper
<
OcpApiGroup
>
ocpTenantGroupLambdaQueryWrapper
=
qw
.
and
(
c
->
c
.
like
(
OcpApiGroup:
:
getApiGroupName
,
pageGroupDto
.
getKeyword
()))
.
or
().
like
(
OcpApiGroup:
:
getApiGroupUserName
,
pageGroupDto
.
getKeyword
())
.
or
().
like
(
OcpApiGroup:
:
getApiGroupPcode
,
pageGroupDto
.
getKeyword
());
mapper
.
selectPage
(
pageInfo
,
ocpTenantGroupLambdaQueryWrapper
);
}
}
return
pageInfo
;
return
pageInfo
;
}
}
}
}
src/main/java/com/pms/ocp/service/impl/TenantServiceImpl.java
View file @
b7bef58f
...
@@ -86,8 +86,7 @@ public class TenantServiceImpl extends ServiceImpl<TenantMapper, OcpTenantGroup>
...
@@ -86,8 +86,7 @@ public class TenantServiceImpl extends ServiceImpl<TenantMapper, OcpTenantGroup>
if
(
tenanBaseDto
.
getTenantGroupLevel
().
equals
(
"sys_center"
)){
if
(
tenanBaseDto
.
getTenantGroupLevel
().
equals
(
"sys_center"
)){
group
.
setTenantGroupLevel
(
"api_group"
);
group
.
setTenantGroupLevel
(
"api_group"
);
}
}
group
.
setClassIfy
(
tenanBaseDto
.
getTenantGroupCompanyCode
());
//判断是否含有相同的分类名称
//判断是否含有相同的分类名称
if
(
falg
)
{
if
(
falg
)
{
...
...
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