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
3c094805
Commit
3c094805
authored
Mar 17, 2022
by
itcast
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
郭凡凡
parent
edcf1e3d
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
599 additions
and
576 deletions
+599
-576
src/main/java/com/pms/ocp/controller/ApiBasicManagementController.java
.../com/pms/ocp/controller/ApiBasicManagementController.java
+19
-19
src/main/java/com/pms/ocp/controller/TenantBasicManagementController.java
...m/pms/ocp/controller/TenantBasicManagementController.java
+9
-6
src/main/java/com/pms/ocp/mapper/TenantBasicManagementMapper.java
.../java/com/pms/ocp/mapper/TenantBasicManagementMapper.java
+2
-0
src/main/java/com/pms/ocp/model/entity/OcpApiBase.java
src/main/java/com/pms/ocp/model/entity/OcpApiBase.java
+20
-12
src/main/java/com/pms/ocp/model/entity/OcpApiExtent.java
src/main/java/com/pms/ocp/model/entity/OcpApiExtent.java
+168
-163
src/main/java/com/pms/ocp/model/entity/OcpApiGroup.java
src/main/java/com/pms/ocp/model/entity/OcpApiGroup.java
+3
-5
src/main/java/com/pms/ocp/model/entity/OcpApiSubs.java
src/main/java/com/pms/ocp/model/entity/OcpApiSubs.java
+163
-163
src/main/java/com/pms/ocp/model/entity/OcpApiTenantRel.java
src/main/java/com/pms/ocp/model/entity/OcpApiTenantRel.java
+92
-92
src/main/java/com/pms/ocp/model/entity/OcpTenantBase.java
src/main/java/com/pms/ocp/model/entity/OcpTenantBase.java
+53
-53
src/main/java/com/pms/ocp/model/entity/OcpTenantGroup.java
src/main/java/com/pms/ocp/model/entity/OcpTenantGroup.java
+18
-12
src/main/java/com/pms/ocp/service/impl/TenantBasicManagementServiceImpl.java
...ms/ocp/service/impl/TenantBasicManagementServiceImpl.java
+41
-36
src/main/resources/mapper/ApiBasicManagementMapper.xml
src/main/resources/mapper/ApiBasicManagementMapper.xml
+3
-1
src/main/resources/mapper/OcpGroup.xml
src/main/resources/mapper/OcpGroup.xml
+8
-12
src/main/resources/mapper/TenantBasicManagementMapper.xml
src/main/resources/mapper/TenantBasicManagementMapper.xml
+0
-2
No files found.
src/main/java/com/pms/ocp/controller/ApiBasicManagementController.java
View file @
3c094805
...
@@ -4,11 +4,7 @@ import com.github.pagehelper.PageInfo;
...
@@ -4,11 +4,7 @@ import com.github.pagehelper.PageInfo;
import
com.pms.ocp.common.utils.ExcelUtils
;
import
com.pms.ocp.common.utils.ExcelUtils
;
import
com.pms.ocp.common.utils.FileExport
;
import
com.pms.ocp.common.utils.FileExport
;
import
com.pms.ocp.common.utils.FileUtil
;
import
com.pms.ocp.common.utils.FileUtil
;
import
com.pms.ocp.model.QueryResponseResult
;
import
com.pms.ocp.model.dto.ApiBaseDto
;
import
com.pms.ocp.model.dto.ApiBaseDto
;
import
com.pms.ocp.model.dto.ApiTreeGroupDto
;
import
com.pms.ocp.model.dto.OcpApiBaseDto
;
import
com.pms.ocp.model.entity.OcpApiBase
;
import
com.pms.ocp.model.entity.OcpApiBase
;
import
com.pms.ocp.model.entity.OcpApiGroup
;
import
com.pms.ocp.model.entity.OcpApiGroup
;
import
com.pms.ocp.model.vo.OcpApiBaseVo
;
import
com.pms.ocp.model.vo.OcpApiBaseVo
;
...
@@ -20,10 +16,10 @@ import io.swagger.annotations.Api;
...
@@ -20,10 +16,10 @@ import io.swagger.annotations.Api;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.omg.PortableInterceptor.Interceptor
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.multipart.MultipartFile
;
import
org.springframework.web.multipart.MultipartFile
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpServletResponse
;
import
java.sql.Timestamp
;
import
java.sql.Timestamp
;
...
@@ -44,12 +40,12 @@ public class ApiBasicManagementController {
...
@@ -44,12 +40,12 @@ public class ApiBasicManagementController {
@ApiOperation
(
"条件查询"
)
@ApiOperation
(
"条件查询"
)
@GetMapping
(
"/queryOcpApiBaseDto"
)
@GetMapping
(
"/queryOcpApiBaseDto"
)
public
ResponseVO
<
List
<
OcpApiBaseVo
>>
queryOcpApiBaseDto
(
@RequestParam
(
required
=
false
)
String
apiCode
,
public
ResponseVO
<
List
<
OcpApiBaseVo
>>
queryOcpApiBaseDto
(
@RequestParam
(
required
=
false
)
String
apiCode
,
@RequestParam
(
required
=
false
)
String
keyword
,
@RequestParam
(
required
=
false
)
String
keyword
,
@RequestParam
(
required
=
false
)
String
apiUnits
,
@RequestParam
(
required
=
false
)
String
apiUnits
,
@RequestParam
(
required
=
false
)
Timestamp
startTime
,
@RequestParam
(
required
=
false
)
Timestamp
startTime
,
@RequestParam
(
required
=
false
)
Timestamp
endTime
,
@RequestParam
(
required
=
false
)
Timestamp
endTime
,
@RequestParam
(
required
=
false
)
Integer
pageSize
,
@RequestParam
(
required
=
false
)
Integer
pageSize
,
@RequestParam
(
required
=
false
)
Integer
pageNum
@RequestParam
(
required
=
false
)
Integer
pageNum
)
{
)
{
List
<
OcpApiBaseVo
>
list
=
apiBasicManagementService
.
queryOcpApiBaseDto
(
apiCode
,
keyword
,
apiUnits
,
startTime
,
endTime
,
pageSize
List
<
OcpApiBaseVo
>
list
=
apiBasicManagementService
.
queryOcpApiBaseDto
(
apiCode
,
keyword
,
apiUnits
,
startTime
,
endTime
,
pageSize
,
pageNum
);
,
pageNum
);
...
@@ -149,7 +145,6 @@ public class ApiBasicManagementController {
...
@@ -149,7 +145,6 @@ public class ApiBasicManagementController {
@ApiOperation
(
"下载模块"
)
@ApiOperation
(
"下载模块"
)
@GetMapping
(
"/downloadExcel"
)
@GetMapping
(
"/downloadExcel"
)
public
void
downloadExcel
(
HttpServletResponse
response
,
HttpServletRequest
request
)
{
public
void
downloadExcel
(
HttpServletResponse
response
,
HttpServletRequest
request
)
{
String
[]
excelHeader
=
{
"序号"
,
"服务编码"
,
"服务中文名称"
,
"所属集群"
,
"所属命名空间"
,
"接口URL"
,
"状态"
,
"注册时间"
,
"建设单位"
};
String
[]
excelHeader
=
{
"序号"
,
"服务编码"
,
"服务中文名称"
,
"所属集群"
,
"所属命名空间"
,
"接口URL"
,
"状态"
,
"注册时间"
,
"建设单位"
};
List
<
Object
>
list
=
new
ArrayList
<>();
List
<
Object
>
list
=
new
ArrayList
<>();
FileExport
.
exportExcel
(
excelHeader
,
list
,
"XXX模板"
,
response
,
request
);
FileExport
.
exportExcel
(
excelHeader
,
list
,
"XXX模板"
,
response
,
request
);
...
@@ -163,10 +158,12 @@ public class ApiBasicManagementController {
...
@@ -163,10 +158,12 @@ public class ApiBasicManagementController {
}
}
@ApiOperation
(
"服务订阅"
)
@ApiOperation
(
"服务订阅"
)
@
Pos
tMapping
(
"/login"
)
@
Ge
tMapping
(
"/login"
)
public
ResponseVO
ApiLogin
(
@RequestParam
(
required
=
false
)
String
apiPromotion
,
public
ResponseVO
ApiLogin
(
@RequestParam
(
required
=
false
)
String
apiPromotion
,
@RequestParam
(
required
=
false
)
String
apiCodes
)
{
@RequestParam
(
required
=
false
)
String
apiCodes
)
{
if
(
StringUtils
.
isEmpty
(
apiPromotion
)
||
apiPromotion
.
equals
(
"0"
))
{
if
(
StringUtils
.
isEmpty
(
apiPromotion
))
{
return
ResponseVO
.
error
(
"不能为空"
);
}
else
if
(
apiPromotion
.
equals
(
"0"
))
{
return
ResponseVO
.
error
(
"统招"
);
return
ResponseVO
.
error
(
"统招"
);
}
else
{
}
else
{
apiBasicManagementService
.
apiLogin
(
apiCodes
);
apiBasicManagementService
.
apiLogin
(
apiCodes
);
...
@@ -176,12 +173,14 @@ public class ApiBasicManagementController {
...
@@ -176,12 +173,14 @@ public class ApiBasicManagementController {
}
}
@ApiOperation
(
"服务发布"
)
@ApiOperation
(
"服务发布"
)
@
Pos
tMapping
(
"/issue"
)
@
Ge
tMapping
(
"/issue"
)
public
ResponseVO
ApiIssue
(
@RequestParam
(
required
=
false
)
String
apiPromotion
,
public
ResponseVO
ApiIssue
(
@RequestParam
(
required
=
false
)
String
apiPromotion
,
@RequestParam
(
required
=
false
)
String
apiCodes
)
{
@RequestParam
(
required
=
false
)
String
apiCodes
)
{
if
(
StringUtils
.
isEmpty
(
apiPromotion
)
||
apiPromotion
.
equals
(
"0"
))
{
if
(
StringUtils
.
isEmpty
(
apiPromotion
))
{
return
ResponseVO
.
error
(
"不能为空"
);
}
else
if
(
apiPromotion
.
equals
(
"0"
))
{
return
ResponseVO
.
error
(
"统招"
);
return
ResponseVO
.
error
(
"统招"
);
}
else
{
}
else
{
return
apiBasicManagementService
.
apiIssue
(
apiCodes
);
return
apiBasicManagementService
.
apiIssue
(
apiCodes
);
}
}
...
@@ -192,7 +191,7 @@ public class ApiBasicManagementController {
...
@@ -192,7 +191,7 @@ public class ApiBasicManagementController {
@GetMapping
(
"/apiListQuery"
)
@GetMapping
(
"/apiListQuery"
)
public
ResponseVO
<
PageInfo
<
OcpApiBaseVo
>>
apiListQuery
(
HttpServletRequest
request
,
ApiBaseDto
ApiBaseReq
)
{
public
ResponseVO
<
PageInfo
<
OcpApiBaseVo
>>
apiListQuery
(
HttpServletRequest
request
,
ApiBaseDto
ApiBaseReq
)
{
return
apiBasicManagementService
.
getBaseByGroupCode
(
ApiBaseReq
);
return
apiBasicManagementService
.
getBaseByGroupCode
(
ApiBaseReq
);
}
}
/* @ApiOperation("服务树一级")
/* @ApiOperation("服务树一级")
@GetMapping("/apiBaseTree")
@GetMapping("/apiBaseTree")
...
@@ -204,9 +203,10 @@ public class ApiBasicManagementController {
...
@@ -204,9 +203,10 @@ public class ApiBasicManagementController {
@ApiOperation
(
"服务分类层级"
)
@ApiOperation
(
"服务分类层级"
)
@GetMapping
(
"/apiBaseTreeOther"
)
@GetMapping
(
"/apiBaseTreeOther"
)
public
ResponseVO
<
List
<
OcpApiGroup
>>
apiBaseTreeOther
(
String
apiGroupCompanyCode
,
String
apiGroupCode
,
Integer
apiGroupPromotionType
)
{
public
ResponseVO
<
List
<
OcpApiGroup
>>
apiBaseTreeOther
(
String
apiGroupCompanyCode
,
String
apiGroupCode
,
Integer
apiGroupPromotionType
)
{
List
<
OcpApiGroup
>
apiTreeGroupDtos
=
apiBasicManagementService
.
apiBaseTreeOther
(
apiGroupCompanyCode
,
apiGroupCode
,
apiGroupPromotionType
);
List
<
OcpApiGroup
>
apiTreeGroupDtos
=
apiBasicManagementService
.
apiBaseTreeOther
(
apiGroupCompanyCode
,
apiGroupCode
,
apiGroupPromotionType
);
return
ResponseVO
.
ok
(
apiTreeGroupDtos
);
return
ResponseVO
.
ok
(
apiTreeGroupDtos
);
}
}
@ApiOperation
(
"服务树列表"
)
@ApiOperation
(
"服务树列表"
)
@GetMapping
(
"/apiBaseTreeList"
)
@GetMapping
(
"/apiBaseTreeList"
)
public
ResponseVO
<
List
<
OcpApiBase
>>
apiBaseTreeList
(
String
apiGroupCompanyCode
,
String
apiGroupCode
)
{
public
ResponseVO
<
List
<
OcpApiBase
>>
apiBaseTreeList
(
String
apiGroupCompanyCode
,
String
apiGroupCode
)
{
...
...
src/main/java/com/pms/ocp/controller/TenantBasicManagementController.java
View file @
3c094805
package
com.pms.ocp.controller
;
package
com.pms.ocp.controller
;
import
com.baomidou.mybatisplus.extension.api.R
;
import
com.github.pagehelper.PageInfo
;
import
com.github.pagehelper.PageInfo
;
import
com.pms.ocp.model.dto.*
;
import
com.pms.ocp.model.dto.*
;
...
@@ -93,6 +93,9 @@ public class TenantBasicManagementController {
...
@@ -93,6 +93,9 @@ public class TenantBasicManagementController {
@GetMapping
(
"/tenantBaseTree"
)
@GetMapping
(
"/tenantBaseTree"
)
public
ResponseVO
<
List
<
OcpTenantBase
>>
tenantBaseTree
(
@RequestParam
(
required
=
false
)
String
tenantGroupCode
,
public
ResponseVO
<
List
<
OcpTenantBase
>>
tenantBaseTree
(
@RequestParam
(
required
=
false
)
String
tenantGroupCode
,
@RequestParam
(
required
=
false
)
String
tenantGroupCompanyCode
)
{
@RequestParam
(
required
=
false
)
String
tenantGroupCompanyCode
)
{
if
(
StringUtils
.
isEmpty
(
tenantGroupCode
))
{
return
ResponseVO
.
error
(
"code为空"
);
}
List
<
OcpTenantBase
>
ocpTenantBases
=
tenantBasicManagementService
.
tenantBaseTree
(
tenantGroupCode
,
tenantGroupCompanyCode
);
List
<
OcpTenantBase
>
ocpTenantBases
=
tenantBasicManagementService
.
tenantBaseTree
(
tenantGroupCode
,
tenantGroupCompanyCode
);
return
ResponseVO
.
ok
(
ocpTenantBases
);
return
ResponseVO
.
ok
(
ocpTenantBases
);
}
}
...
@@ -102,11 +105,11 @@ public class TenantBasicManagementController {
...
@@ -102,11 +105,11 @@ public class TenantBasicManagementController {
public
ResponseVO
<
PageInfo
<
OcpTenantBaseDto
>>
tenantListQuery
(
HttpServletRequest
request
,
TenantDto
tenantDto
)
{
public
ResponseVO
<
PageInfo
<
OcpTenantBaseDto
>>
tenantListQuery
(
HttpServletRequest
request
,
TenantDto
tenantDto
)
{
return
tenantBasicManagementService
.
getBaseByGroupCode
(
tenantDto
);
return
tenantBasicManagementService
.
getBaseByGroupCode
(
tenantDto
);
}
}
@ApiOperation
(
"注册查询信息"
)
@ApiOperation
(
"注册查询信息"
)
@GetMapping
(
"/select/register"
)
@GetMapping
(
"/select/register"
)
public
ResponseVO
<
OcpTenantGroup
>
selectRegister
(
@RequestParam
(
required
=
false
)
String
tenantGroupCode
,
public
ResponseVO
<
OcpTenantGroup
>
selectRegister
(
@RequestParam
(
required
=
false
)
String
tenantGroupCode
,
@RequestParam
(
required
=
false
)
String
tenantGroupCompanyCode
)
{
@RequestParam
(
required
=
false
)
String
tenantGroupCompanyCode
){
OcpTenantGroup
ocpTenantGroup
=
tenantBasicManagementService
.
selectRegister
(
tenantGroupCode
,
tenantGroupCompanyCode
);
OcpTenantGroup
ocpTenantGroup
=
tenantBasicManagementService
.
selectRegister
(
tenantGroupCode
,
tenantGroupCompanyCode
);
return
ResponseVO
.
ok
(
ocpTenantGroup
);
return
ResponseVO
.
ok
(
ocpTenantGroup
);
}
}
}
}
src/main/java/com/pms/ocp/mapper/TenantBasicManagementMapper.java
View file @
3c094805
...
@@ -21,4 +21,6 @@ public interface TenantBasicManagementMapper extends BaseMapper<OcpTenantBase> {
...
@@ -21,4 +21,6 @@ public interface TenantBasicManagementMapper extends BaseMapper<OcpTenantBase> {
List
<
GroupDto
>
select
(
String
tenantGroupCode
);
List
<
GroupDto
>
select
(
String
tenantGroupCode
);
List
<
OcpTenantBaseDto
>
queryOcpTenantBaseDto
(
String
tenantGroupCode
,
String
keyword
,
String
tenantUnit
,
Timestamp
startTime
,
Timestamp
endTime
,
String
tenantCode
,
Integer
pageSize
,
Integer
pageNum
);
List
<
OcpTenantBaseDto
>
queryOcpTenantBaseDto
(
String
tenantGroupCode
,
String
keyword
,
String
tenantUnit
,
Timestamp
startTime
,
Timestamp
endTime
,
String
tenantCode
,
Integer
pageSize
,
Integer
pageNum
);
}
}
src/main/java/com/pms/ocp/model/entity/OcpApiBase.java
View file @
3c094805
...
@@ -58,8 +58,8 @@ public class OcpApiBase {
...
@@ -58,8 +58,8 @@ public class OcpApiBase {
@ApiModelProperty
(
"服务所属公司"
)
@ApiModelProperty
(
"服务所属公司"
)
private
String
ownerCompanyCode
;
private
String
ownerCompanyCode
;
@ApiModelProperty
(
"服务所属公司"
)
//
@ApiModelProperty("服务所属公司")
private
String
ownerCompanyName
;
//
private String ownerCompanyName;
@ApiModelProperty
(
"是否删除0-否1-是"
)
@ApiModelProperty
(
"是否删除0-否1-是"
)
private
long
isDelete
;
private
long
isDelete
;
...
@@ -71,7 +71,7 @@ public class OcpApiBase {
...
@@ -71,7 +71,7 @@ public class OcpApiBase {
private
long
apiLayer
;
private
long
apiLayer
;
@ApiModelProperty
(
"服务版本(最新版本)"
)
@ApiModelProperty
(
"服务版本(最新版本)"
)
private
lo
ng
apiVersion
;
private
Stri
ng
apiVersion
;
public
long
getApiZone
()
{
public
long
getApiZone
()
{
return
apiZone
;
return
apiZone
;
...
@@ -89,11 +89,19 @@ public class OcpApiBase {
...
@@ -89,11 +89,19 @@ public class OcpApiBase {
this
.
apiLayer
=
apiLayer
;
this
.
apiLayer
=
apiLayer
;
}
}
public
long
getApiVersion
()
{
// public long getApiVersion() {
// return apiVersion;
// }
//
// public void setApiVersion(long apiVersion) {
// this.apiVersion = apiVersion;
// }
public
String
getApiVersion
()
{
return
apiVersion
;
return
apiVersion
;
}
}
public
void
setApiVersion
(
lo
ng
apiVersion
)
{
public
void
setApiVersion
(
Stri
ng
apiVersion
)
{
this
.
apiVersion
=
apiVersion
;
this
.
apiVersion
=
apiVersion
;
}
}
...
@@ -212,13 +220,13 @@ public class OcpApiBase {
...
@@ -212,13 +220,13 @@ public class OcpApiBase {
}
}
public
String
getOwnerCompanyName
()
{
//
public String getOwnerCompanyName() {
return
ownerCompanyName
;
//
return ownerCompanyName;
}
//
}
//
public
void
setOwnerCompanyName
(
String
ownerCompanyName
)
{
//
public void setOwnerCompanyName(String ownerCompanyName) {
this
.
ownerCompanyName
=
ownerCompanyName
;
//
this.ownerCompanyName = ownerCompanyName;
}
//
}
public
long
getIsDelete
()
{
public
long
getIsDelete
()
{
...
...
src/main/java/com/pms/ocp/model/entity/OcpApiExtent.java
View file @
3c094805
...
@@ -7,6 +7,7 @@ import io.swagger.annotations.ApiModel;
...
@@ -7,6 +7,7 @@ import io.swagger.annotations.ApiModel;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.Data
;
import
lombok.experimental.Accessors
;
import
lombok.experimental.Accessors
;
import
java.sql.Timestamp
;
import
java.sql.Timestamp
;
@Data
@Data
...
@@ -14,168 +15,172 @@ import java.sql.Timestamp;
...
@@ -14,168 +15,172 @@ import java.sql.Timestamp;
@TableName
(
"ocp_api_extent"
)
@TableName
(
"ocp_api_extent"
)
@ApiModel
(
"服务扩展信息表"
)
@ApiModel
(
"服务扩展信息表"
)
public
class
OcpApiExtent
{
public
class
OcpApiExtent
{
@TableId
(
type
=
IdType
.
ASSIGN_ID
)
@TableId
(
type
=
IdType
.
ASSIGN_ID
)
@ApiModelProperty
(
"主键ID"
)
@ApiModelProperty
(
"主键ID"
)
private
String
objId
;
private
String
objId
;
@ApiModelProperty
(
"服务编码"
)
@ApiModelProperty
(
"服务编码"
)
private
String
apiCode
;
private
String
apiCode
;
@ApiModelProperty
(
"系统名称"
)
// @ApiModelProperty("系统名称")
private
String
sysName
;
// private String sysName;
@ApiModelProperty
(
"模块"
)
// @ApiModelProperty("模块")
private
String
partName
;
// private String partName;
@ApiModelProperty
(
"服务群"
)
// @ApiModelProperty("服务群")
private
String
serviceGroup
;
// private String serviceGroup;
@ApiModelProperty
(
"服务"
)
@ApiModelProperty
(
"服务"
)
private
String
serviceName
;
private
String
serviceName
;
@ApiModelProperty
(
"所属集群"
)
@ApiModelProperty
(
"所属集群"
)
private
String
clusterName
;
private
String
clusterName
;
@ApiModelProperty
(
"所属命名空间"
)
@ApiModelProperty
(
"所属命名空间"
)
private
String
spaceName
;
private
String
spaceName
;
@ApiModelProperty
(
"服务描述"
)
// @ApiModelProperty("服务描述")
private
String
serviceDescription
;
// private String serviceDescription;
@ApiModelProperty
(
"部署信息"
)
private
String
deployment
;
@ApiModelProperty
(
"部署信息"
)
@ApiModelProperty
(
"服务状态0未发布1已发布"
)
private
String
deployment
;
private
String
apiState
;
@ApiModelProperty
(
"服务状态0未发布1已发布"
)
private
String
apiState
;
@ApiModelProperty
(
"属性添加时间"
)
private
Timestamp
apiCtime
;
@ApiModelProperty
(
"属性添加时间"
)
private
Timestamp
apiCtime
;
@ApiModelProperty
(
"属性修改时间"
)
private
Timestamp
apiMtime
;
@ApiModelProperty
(
"属性修改时间"
)
private
Timestamp
apiMtime
;
@ApiModelProperty
(
"部属公司"
)
private
String
depCompanyCode
;
@ApiModelProperty
(
"部属公司"
)
private
String
depCompanyCode
;
@ApiModelProperty
(
"是否已删除 0-否 1-是"
)
private
long
isDelete
;
@ApiModelProperty
(
"是否已删除 0-否 1-是"
)
private
long
isDelete
;
public
String
getSysName
()
{
// public String getSysName() {
return
sysName
;
// return sysName;
}
// }
//
public
void
setSysName
(
String
sysName
)
{
// public void setSysName(String sysName) {
this
.
sysName
=
sysName
;
// this.sysName = sysName;
}
// }
//
public
String
getPartName
()
{
// public String getPartName() {
return
partName
;
// return partName;
}
// }
//
public
void
setPartName
(
String
partName
)
{
// public void setPartName(String partName) {
this
.
partName
=
partName
;
// this.partName = partName;
}
// }
//
public
String
getServiceGroup
()
{
// public String getServiceGroup() {
return
serviceGroup
;
// return serviceGroup;
}
// }
public
void
setServiceGroup
(
String
serviceGroup
)
{
// public void setServiceGroup(String serviceGroup) {
this
.
serviceGroup
=
serviceGroup
;
// this.serviceGroup = serviceGroup;
}
// }
public
String
getServiceName
()
{
public
String
getServiceName
()
{
return
serviceName
;
return
serviceName
;
}
}
public
void
setServiceName
(
String
serviceName
)
{
public
void
setServiceName
(
String
serviceName
)
{
this
.
serviceName
=
serviceName
;
this
.
serviceName
=
serviceName
;
}
}
public
String
getClusterName
()
{
public
String
getClusterName
()
{
return
clusterName
;
return
clusterName
;
}
}
public
void
setClusterName
(
String
clusterName
)
{
public
void
setClusterName
(
String
clusterName
)
{
this
.
clusterName
=
clusterName
;
this
.
clusterName
=
clusterName
;
}
}
public
String
get所属命名空间
()
{
public
String
getSpaceName
()
{
return
spaceName
;
return
spaceName
;
}
}
public
void
set所属命名空间
(
String
所属命名空间
)
{
public
void
setSpaceName
(
String
spaceName
)
{
this
.
spaceName
=
spaceName
;
this
.
spaceName
=
spaceName
;
}
}
// public String get所属命名空间() {
public
String
getServiceDescription
()
{
// return spaceName;
return
serviceDescription
;
// }
}
//
// public void set所属命名空间(String 所属命名空间) {
public
void
setServiceDescription
(
String
serviceDescription
)
{
// this.spaceName = spaceName;
this
.
serviceDescription
=
serviceDescription
;
// }
}
// public String getServiceDescription() {
public
String
getDeployment
()
{
// return serviceDescription;
return
deployment
;
// }
}
// public void setServiceDescription(String serviceDescription) {
public
void
setDeployment
(
String
deployment
)
{
// this.serviceDescription = serviceDescription;
this
.
deployment
=
deployment
;
// }
}
public
String
getDeployment
()
{
public
String
getApiState
()
{
return
deployment
;
return
apiState
;
}
}
public
void
setDeployment
(
String
deployment
)
{
public
void
setApiState
(
String
apiState
)
{
this
.
deployment
=
deployment
;
this
.
apiState
=
apiState
;
}
}
public
String
getApiState
()
{
public
Timestamp
getApiCtime
()
{
return
apiState
;
return
apiCtime
;
}
}
public
void
setApiState
(
String
apiState
)
{
public
void
setApiCtime
(
Timestamp
apiCtime
)
{
this
.
apiState
=
apiState
;
this
.
apiCtime
=
apiCtime
;
}
}
public
Timestamp
getApiCtime
()
{
public
Timestamp
getApiMtime
()
{
return
apiCtime
;
return
apiMtime
;
}
}
public
void
setApiCtime
(
Timestamp
apiCtime
)
{
public
void
setApiMtime
(
Timestamp
apiMtime
)
{
this
.
apiCtime
=
apiCtime
;
this
.
apiMtime
=
apiMtime
;
}
}
public
Timestamp
getApiMtime
()
{
public
String
getDepCompanyCode
()
{
return
apiMtime
;
return
depCompanyCode
;
}
}
public
void
setApiMtime
(
Timestamp
apiMtime
)
{
public
void
setDepCompanyCode
(
String
depCompanyCode
)
{
this
.
apiMtime
=
apiMtime
;
this
.
depCompanyCode
=
depCompanyCode
;
}
}
public
String
getDepCompanyCode
()
{
public
String
getObjId
()
{
return
depCompanyCode
;
return
objId
;
}
}
public
void
setDepCompanyCode
(
String
depCompanyCode
)
{
public
void
setObjId
(
String
objId
)
{
this
.
depCompanyCode
=
depCompanyCode
;
this
.
objId
=
objId
;
}
}
public
String
getObjId
()
{
return
objId
;
public
String
getApiCode
()
{
}
return
apiCode
;
}
public
void
setObjId
(
String
objId
)
{
this
.
objId
=
objId
;
public
void
setApiCode
(
String
apiCode
)
{
}
this
.
apiCode
=
apiCode
;
}
public
String
getApiCode
()
{
return
apiCode
;
}
public
long
getIsDelete
()
{
public
void
setApiCode
(
String
apiCode
)
{
return
isDelete
;
this
.
apiCode
=
apiCode
;
}
}
public
void
setIsDelete
(
long
isDelete
)
{
public
long
getIsDelete
()
{
this
.
isDelete
=
isDelete
;
return
isDelete
;
}
}
public
void
setIsDelete
(
long
isDelete
)
{
this
.
isDelete
=
isDelete
;
}
}
}
src/main/java/com/pms/ocp/model/entity/OcpApiGroup.java
View file @
3c094805
...
@@ -58,15 +58,13 @@ public class OcpApiGroup {
...
@@ -58,15 +58,13 @@ public class OcpApiGroup {
private
long
isDelete
;
private
long
isDelete
;
@ApiModelProperty
(
"分层树层级 1中台层 2中心层 3 服务组层 4服务层 "
)
@ApiModelProperty
(
"分层树层级 1中台层 2中心层 3 服务组层 4服务层 "
)
private
lo
ng
apiGroupLevel
;
private
Stri
ng
apiGroupLevel
;
public
String
getApiGroupLevel
()
{
public
long
getApiGroupLevel
()
{
return
apiGroupLevel
;
return
apiGroupLevel
;
}
}
public
void
setApiGroupLevel
(
lo
ng
apiGroupLevel
)
{
public
void
setApiGroupLevel
(
Stri
ng
apiGroupLevel
)
{
this
.
apiGroupLevel
=
apiGroupLevel
;
this
.
apiGroupLevel
=
apiGroupLevel
;
}
}
...
...
src/main/java/com/pms/ocp/model/entity/OcpApiSubs.java
View file @
3c094805
...
@@ -40,50 +40,50 @@ public class OcpApiSubs {
...
@@ -40,50 +40,50 @@ public class OcpApiSubs {
@ApiModelProperty
(
"是否删除0-否,1-是"
)
@ApiModelProperty
(
"是否删除0-否,1-是"
)
private
long
isDelete
;
private
long
isDelete
;
@ApiModelProperty
(
"服务接口中文名称"
)
//
@ApiModelProperty("服务接口中文名称")
private
String
apiName
;
//
private String apiName;
//
@ApiModelProperty
(
"服务分类代码"
)
//
@ApiModelProperty("服务分类代码")
private
String
apiGroupCode
;
//
private String apiGroupCode;
@ApiModelProperty
(
"推广类型0:统建;1:自建"
)
//
@ApiModelProperty("推广类型0:统建;1:自建")
private
long
apiPromotion
;
//
private long apiPromotion;
@ApiModelProperty
(
"服务请求体"
)
//
@ApiModelProperty("服务请求体")
private
String
apiReq
;
//
private String apiReq;
//
@ApiModelProperty
(
"服务返回体"
)
//
@ApiModelProperty("服务返回体")
private
String
apiResp
;
//
private String apiResp;
//
@ApiModelProperty
(
"服务地址"
)
//
@ApiModelProperty("服务地址")
private
String
apiUrl
;
//
private String apiUrl;
//
@ApiModelProperty
(
"服务创建时间"
)
//
@ApiModelProperty("服务创建时间")
private
Timestamp
apiCtime
;
//
private Timestamp apiCtime;
//
@ApiModelProperty
(
"服务修改时间"
)
//
@ApiModelProperty("服务修改时间")
private
Timestamp
apiMtime
;
//
private Timestamp apiMtime;
//
@ApiModelProperty
(
"创建者用户ID"
)
//
@ApiModelProperty("创建者用户ID")
private
String
apiUserId
;
//
private String apiUserId;
//
@ApiModelProperty
(
"建设单位"
)
//
@ApiModelProperty("建设单位")
private
String
apiUnit
;
//
private String apiUnit;
//
@ApiModelProperty
(
"服务所属公司"
)
//
@ApiModelProperty("服务所属公司")
private
String
ownerCompanyCode
;
//
private String ownerCompanyCode;
//
@ApiModelProperty
(
"服务所属公司"
)
//
@ApiModelProperty("服务所属公司")
private
String
ownerCompanyName
;
//
private String ownerCompanyName;
//
@ApiModelProperty
(
"所属区域 1:生产控制大区;2:信息关联大区;3:互联网大区"
)
//
@ApiModelProperty("所属区域 1:生产控制大区;2:信息关联大区;3:互联网大区")
private
long
apiZone
;
//
private long apiZone;
//
@ApiModelProperty
(
"'所属层级 1:应用层;2:平台层;3:网络层;4:感知层;"
)
//
@ApiModelProperty("'所属层级 1:应用层;2:平台层;3:网络层;4:感知层;")
private
long
apiLayer
;
//
private long apiLayer;
//
@ApiModelProperty
(
"服务版本(最新版本)"
)
//
@ApiModelProperty("服务版本(最新版本)")
private
long
apiVersion
;
//
private long apiVersion;
public
String
getObjId
()
{
public
String
getObjId
()
{
...
@@ -142,123 +142,123 @@ public class OcpApiSubs {
...
@@ -142,123 +142,123 @@ public class OcpApiSubs {
this
.
subsCompanyCode
=
subsCompanyCode
;
this
.
subsCompanyCode
=
subsCompanyCode
;
}
}
public
String
getApiName
()
{
//
public String getApiName() {
return
apiName
;
//
return apiName;
}
//
}
//
public
void
setApiName
(
String
apiName
)
{
//
public void setApiName(String apiName) {
this
.
apiName
=
apiName
;
//
this.apiName = apiName;
}
//
}
//
public
String
getApiGroupCode
()
{
//
public String getApiGroupCode() {
return
apiGroupCode
;
//
return apiGroupCode;
}
//
}
//
public
void
setApiGroupCode
(
String
apiGroupCode
)
{
//
public void setApiGroupCode(String apiGroupCode) {
this
.
apiGroupCode
=
apiGroupCode
;
//
this.apiGroupCode = apiGroupCode;
}
//
}
public
long
getApiPromotion
()
{
//
public long getApiPromotion() {
return
apiPromotion
;
//
return apiPromotion;
}
//
}
//
public
void
setApiPromotion
(
long
apiPromotion
)
{
//
public void setApiPromotion(long apiPromotion) {
this
.
apiPromotion
=
apiPromotion
;
//
this.apiPromotion = apiPromotion;
}
//
}
public
String
getApiReq
()
{
//
public String getApiReq() {
return
apiReq
;
//
return apiReq;
}
//
}
//
public
void
setApiReq
(
String
apiReq
)
{
//
public void setApiReq(String apiReq) {
this
.
apiReq
=
apiReq
;
//
this.apiReq = apiReq;
}
//
}
//
public
String
getApiResp
()
{
//
public String getApiResp() {
return
apiResp
;
//
return apiResp;
}
//
}
//
public
void
setApiResp
(
String
apiResp
)
{
//
public void setApiResp(String apiResp) {
this
.
apiResp
=
apiResp
;
//
this.apiResp = apiResp;
}
//
}
//
public
String
getApiUrl
()
{
//
public String getApiUrl() {
return
apiUrl
;
//
return apiUrl;
}
//
}
//
public
void
setApiUrl
(
String
apiUrl
)
{
//
public void setApiUrl(String apiUrl) {
this
.
apiUrl
=
apiUrl
;
//
this.apiUrl = apiUrl;
}
//
}
//
public
Timestamp
getApiCtime
()
{
//
public Timestamp getApiCtime() {
return
apiCtime
;
//
return apiCtime;
}
//
}
//
public
void
setApiCtime
(
Timestamp
apiCtime
)
{
//
public void setApiCtime(Timestamp apiCtime) {
this
.
apiCtime
=
apiCtime
;
//
this.apiCtime = apiCtime;
}
//
}
//
public
Timestamp
getApiMtime
()
{
//
public Timestamp getApiMtime() {
return
apiMtime
;
//
return apiMtime;
}
//
}
//
public
void
setApiMtime
(
Timestamp
apiMtime
)
{
//
public void setApiMtime(Timestamp apiMtime) {
this
.
apiMtime
=
apiMtime
;
//
this.apiMtime = apiMtime;
}
//
}
//
public
String
getApiUserId
()
{
//
public String getApiUserId() {
return
apiUserId
;
//
return apiUserId;
}
//
}
//
public
void
setApiUserId
(
String
apiUserId
)
{
//
public void setApiUserId(String apiUserId) {
this
.
apiUserId
=
apiUserId
;
//
this.apiUserId = apiUserId;
}
//
}
//
public
String
getApiUnit
()
{
//
public String getApiUnit() {
return
apiUnit
;
//
return apiUnit;
}
//
}
public
void
setApiUnit
(
String
apiUnit
)
{
//
public void setApiUnit(String apiUnit) {
this
.
apiUnit
=
apiUnit
;
//
this.apiUnit = apiUnit;
}
//
}
//
public
String
getOwnerCompanyCode
()
{
//
public String getOwnerCompanyCode() {
return
ownerCompanyCode
;
//
return ownerCompanyCode;
}
//
}
//
public
void
setOwnerCompanyCode
(
String
ownerCompanyCode
)
{
//
public void setOwnerCompanyCode(String ownerCompanyCode) {
this
.
ownerCompanyCode
=
ownerCompanyCode
;
//
this.ownerCompanyCode = ownerCompanyCode;
}
//
}
//
public
String
getOwnerCompanyName
()
{
//
public String getOwnerCompanyName() {
return
ownerCompanyName
;
//
return ownerCompanyName;
}
//
}
//
public
void
setOwnerCompanyName
(
String
ownerCompanyName
)
{
//
public void setOwnerCompanyName(String ownerCompanyName) {
this
.
ownerCompanyName
=
ownerCompanyName
;
//
this.ownerCompanyName = ownerCompanyName;
}
//
}
//
public
long
getApiZone
()
{
//
public long getApiZone() {
return
apiZone
;
//
return apiZone;
}
//
}
//
public
void
setApiZone
(
long
apiZone
)
{
//
public void setApiZone(long apiZone) {
this
.
apiZone
=
apiZone
;
//
this.apiZone = apiZone;
}
//
}
//
public
long
getApiLayer
()
{
//
public long getApiLayer() {
return
apiLayer
;
//
return apiLayer;
}
//
}
//
public
void
setApiLayer
(
long
apiLayer
)
{
//
public void setApiLayer(long apiLayer) {
this
.
apiLayer
=
apiLayer
;
//
this.apiLayer = apiLayer;
}
//
}
//
public
long
getApiVersion
()
{
//
public long getApiVersion() {
return
apiVersion
;
//
return apiVersion;
}
//
}
//
public
void
setApiVersion
(
long
apiVersion
)
{
//
public void setApiVersion(long apiVersion) {
this
.
apiVersion
=
apiVersion
;
//
this.apiVersion = apiVersion;
}
//
}
}
}
src/main/java/com/pms/ocp/model/entity/OcpApiTenantRel.java
View file @
3c094805
...
@@ -46,98 +46,98 @@ public class OcpApiTenantRel {
...
@@ -46,98 +46,98 @@ public class OcpApiTenantRel {
@ApiModelProperty
(
"是否已删除0未删除,1已删除"
)
@ApiModelProperty
(
"是否已删除0未删除,1已删除"
)
private
long
isDelete
;
private
long
isDelete
;
@ApiModelProperty
(
"服务接口中文名称"
)
//
@ApiModelProperty("服务接口中文名称")
private
String
apiName
;
//
private String apiName;
//
@ApiModelProperty
(
"服务分类代码"
)
//
@ApiModelProperty("服务分类代码")
private
String
apiGroupCode
;
//
private String apiGroupCode;
//
@ApiModelProperty
(
"推广类型0:统建;1:自建"
)
//
@ApiModelProperty("推广类型0:统建;1:自建")
private
long
apiPromotion
;
//
private long apiPromotion;
//
@ApiModelProperty
(
"服务请求体"
)
//
@ApiModelProperty("服务请求体")
private
String
apiReq
;
//
private String apiReq;
//
@ApiModelProperty
(
"服务返回体"
)
//
@ApiModelProperty("服务返回体")
private
String
apiResp
;
//
private String apiResp;
//
@ApiModelProperty
(
"服务地址"
)
//
@ApiModelProperty("服务地址")
private
String
apiUrl
;
//
private String apiUrl;
//
@ApiModelProperty
(
"服务创建时间"
)
//
@ApiModelProperty("服务创建时间")
private
Timestamp
apiCtime
;
//
private Timestamp apiCtime;
//
@ApiModelProperty
(
"服务修改时间"
)
//
@ApiModelProperty("服务修改时间")
private
Timestamp
apiMtime
;
//
private Timestamp apiMtime;
//
@ApiModelProperty
(
"创建者用户ID"
)
//
@ApiModelProperty("创建者用户ID")
private
String
apiUserId
;
//
private String apiUserId;
//
@ApiModelProperty
(
"建设单位"
)
//
@ApiModelProperty("建设单位")
private
String
apiUnit
;
//
private String apiUnit;
//
@ApiModelProperty
(
"服务所属公司"
)
//
@ApiModelProperty("服务所属公司")
private
String
ownerCompanyCode
;
//
private String ownerCompanyCode;
//
@ApiModelProperty
(
"服务所属公司"
)
//
@ApiModelProperty("服务所属公司")
private
String
ownerCompanyName
;
//
private String ownerCompanyName;
//
@ApiModelProperty
(
"所属区域 1:生产控制大区;2:信息关联大区;3:互联网大区"
)
//
@ApiModelProperty("所属区域 1:生产控制大区;2:信息关联大区;3:互联网大区")
private
long
apiZone
;
//
private long apiZone;
//
@ApiModelProperty
(
"'所属层级 1:应用层;2:平台层;3:网络层;4:感知层;"
)
//
@ApiModelProperty("'所属层级 1:应用层;2:平台层;3:网络层;4:感知层;")
private
long
apiLayer
;
//
private long apiLayer;
//
@ApiModelProperty
(
"服务版本(最新版本)"
)
//
@ApiModelProperty("服务版本(最新版本)")
private
long
apiVersion
;
//
private long apiVersion;
//
@ApiModelProperty
(
"应用名称"
)
//
@ApiModelProperty("应用名称")
private
String
tenantName
;
//
private String tenantName;
//
@ApiModelProperty
(
"应用分类代码"
)
//
@ApiModelProperty("应用分类代码")
private
String
tenantGroupCode
;
//
private String tenantGroupCode;
//
@ApiModelProperty
(
"应用IP"
)
//
@ApiModelProperty("应用IP")
private
String
tenantIp
;
//
private String tenantIp;
//
@ApiModelProperty
(
"应用url"
)
//
@ApiModelProperty("应用url")
private
String
tenantUrl
;
//
private String tenantUrl;
//
@ApiModelProperty
(
"所属专业"
)
//
@ApiModelProperty("所属专业")
private
String
professionalKind
;
//
private String professionalKind;
//
@ApiModelProperty
(
"创建者用户ID"
)
//
@ApiModelProperty("创建者用户ID")
private
String
tenantUserId
;
//
private String tenantUserId;
//
@ApiModelProperty
(
"排序"
)
//
@ApiModelProperty("排序")
private
String
tenantOrderNo
;
//
private String tenantOrderNo;
//
@ApiModelProperty
(
"创建时间"
)
//
@ApiModelProperty("创建时间")
private
String
tenantCtime
;
//
private String tenantCtime;
//
@ApiModelProperty
(
"最后更新时间"
)
//
@ApiModelProperty("最后更新时间")
private
String
tenantMtime
;
//
private String tenantMtime;
//
@ApiModelProperty
(
"部署名称"
)
//
@ApiModelProperty("部署名称")
private
String
deploymentName
;
//
private String deploymentName;
//
@ApiModelProperty
(
"描述"
)
//
@ApiModelProperty("描述")
private
String
tenantDescription
;
//
private String tenantDescription;
//
@ApiModelProperty
(
"应用状态0设计 1运行态"
)
//
@ApiModelProperty("应用状态0设计 1运行态")
private
String
tenantState
;
//
private String tenantState;
//
@ApiModelProperty
(
"建设单位"
)
//
@ApiModelProperty("建设单位")
private
String
tenantUnit
;
//
private String tenantUnit;
//
@ApiModelProperty
(
"所属区域 1:生产控制大区;2:信息关联大区;3:互联网大区"
)
//
@ApiModelProperty("所属区域 1:生产控制大区;2:信息关联大区;3:互联网大区")
private
String
tenantZone
;
//
private String tenantZone;
//
@ApiModelProperty
(
"所属层级 1:应用层;2:平台层;3:网络层;4:感知层"
)
//
@ApiModelProperty("所属层级 1:应用层;2:平台层;3:网络层;4:感知层")
private
String
tenantLayer
;
//
private String tenantLayer;
//
@ApiModelProperty
(
"应用版本(当前版本)"
)
//
@ApiModelProperty("应用版本(当前版本)")
private
String
tenantVersion
;
//
private String tenantVersion;
}
}
src/main/java/com/pms/ocp/model/entity/OcpTenantBase.java
View file @
3c094805
...
@@ -91,20 +91,20 @@ public class OcpTenantBase implements Serializable {
...
@@ -91,20 +91,20 @@ public class OcpTenantBase implements Serializable {
/**
/**
* 部署名称
* 部署名称
*/
*/
@ApiModelProperty
(
"部署名称"
)
//
@ApiModelProperty("部署名称")
private
String
deploymentName
;
//
private String deploymentName;
/**
/**
* 描述
* 描述
*/
*/
@ApiModelProperty
(
"描述"
)
@ApiModelProperty
(
"描述"
)
private
String
tenantDescription
;
private
String
tenantDescription
;
//
/**
//
/**
* 应用状态0:设计态;1:运行态
//
* 应用状态0:设计态;1:运行态
*/
//
*/
@ApiModelProperty
(
"应用状态0:设计态;1:运行态"
)
//
@ApiModelProperty("应用状态0:设计态;1:运行态")
private
Short
tenantState
;
//
private Short tenantState;
// /**
// /**
// * 推广类型0:统建;1:自建
// * 推广类型0:统建;1:自建
// */
// */
...
@@ -122,11 +122,11 @@ public class OcpTenantBase implements Serializable {
...
@@ -122,11 +122,11 @@ public class OcpTenantBase implements Serializable {
@ApiModelProperty
(
"所属公司编码"
)
@ApiModelProperty
(
"所属公司编码"
)
private
String
ownerCompanyCode
;
private
String
ownerCompanyCode
;
/**
//
/**
* 所属公司名称
//
* 所属公司名称
*/
//
*/
@ApiModelProperty
(
"所属公司名称"
)
//
@ApiModelProperty("所属公司名称")
private
String
ownerCompanyName
;
//
private String ownerCompanyName;
/**
/**
* 是否删除0:否;1:是
* 是否删除0:否;1:是
...
@@ -308,19 +308,19 @@ public class OcpTenantBase implements Serializable {
...
@@ -308,19 +308,19 @@ public class OcpTenantBase implements Serializable {
this
.
tenantMtime
=
tenantMtime
;
this
.
tenantMtime
=
tenantMtime
;
}
}
/**
//
/**
* 部署名称
//
* 部署名称
*/
//
*/
public
String
getDeploymentName
()
{
//
public String getDeploymentName() {
return
deploymentName
;
//
return deploymentName;
}
//
}
//
/**
//
/**
* 部署名称
//
* 部署名称
*/
//
*/
public
void
setDeploymentName
(
String
deploymentName
)
{
//
public void setDeploymentName(String deploymentName) {
this
.
deploymentName
=
deploymentName
;
//
this.deploymentName = deploymentName;
}
//
}
/**
/**
* 描述
* 描述
...
@@ -336,19 +336,19 @@ public class OcpTenantBase implements Serializable {
...
@@ -336,19 +336,19 @@ public class OcpTenantBase implements Serializable {
this
.
tenantDescription
=
tenantDescription
;
this
.
tenantDescription
=
tenantDescription
;
}
}
/**
//
/**
* 应用状态0:设计态;1:运行态
//
* 应用状态0:设计态;1:运行态
*/
//
*/
public
Short
getTenantState
()
{
//
public Short getTenantState() {
return
tenantState
;
//
return tenantState;
}
//
}
//
/**
//
/**
* 应用状态0:设计态;1:运行态
//
* 应用状态0:设计态;1:运行态
*/
//
*/
public
void
setTenantState
(
Short
tenantState
)
{
//
public void setTenantState(Short tenantState) {
this
.
tenantState
=
tenantState
;
//
this.tenantState = tenantState;
}
//
}
/**
/**
* 建设单位
* 建设单位
...
@@ -377,20 +377,20 @@ public class OcpTenantBase implements Serializable {
...
@@ -377,20 +377,20 @@ public class OcpTenantBase implements Serializable {
public
void
setOwnerCompanyCode
(
String
ownerCompanyCode
)
{
public
void
setOwnerCompanyCode
(
String
ownerCompanyCode
)
{
this
.
ownerCompanyCode
=
ownerCompanyCode
;
this
.
ownerCompanyCode
=
ownerCompanyCode
;
}
}
//
/**
//
/**
* 所属公司名称
//
* 所属公司名称
*/
//
*/
public
String
getOwnerCompanyName
()
{
//
public String getOwnerCompanyName() {
return
ownerCompanyName
;
//
return ownerCompanyName;
}
//
}
//
/**
//
/**
* 所属公司名称
//
* 所属公司名称
*/
//
*/
public
void
setOwnerCompanyName
(
String
ownerCompanyName
)
{
//
public void setOwnerCompanyName(String ownerCompanyName) {
this
.
ownerCompanyName
=
ownerCompanyName
;
//
this.ownerCompanyName = ownerCompanyName;
}
//
}
/**
/**
* 是否删除0:否;1:是
* 是否删除0:否;1:是
...
...
src/main/java/com/pms/ocp/model/entity/OcpTenantGroup.java
View file @
3c094805
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
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.Data
;
import
lombok.experimental.Accessors
;
import
lombok.experimental.Accessors
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.sql.Timestamp
;
import
java.sql.Timestamp
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
/**
/**
* 应用分类表
* 应用分类表
...
@@ -106,7 +104,7 @@ public class OcpTenantGroup implements Serializable {
...
@@ -106,7 +104,7 @@ public class OcpTenantGroup implements Serializable {
* 应用树层级 1:应用分组层 2:应用层
* 应用树层级 1:应用分组层 2:应用层
*/
*/
@ApiModelProperty
(
"应用树层级 1:应用分组层 2:应用层"
)
@ApiModelProperty
(
"应用树层级 1:应用分组层 2:应用层"
)
private
S
hort
tenantGroupLevel
;
private
S
tring
tenantGroupLevel
;
...
@@ -298,17 +296,25 @@ public class OcpTenantGroup implements Serializable {
...
@@ -298,17 +296,25 @@ public class OcpTenantGroup implements Serializable {
this
.
isDelete
=
isDelete
;
this
.
isDelete
=
isDelete
;
}
}
/**
// /**
* 应用树层级 1:应用分组层 2:应用层
// * 应用树层级 1:应用分组层 2:应用层
*/
// */
public
Short
getTenantGroupLevel
()
{
// public Short getTenantGroupLevel() {
// return tenantGroupLevel;
// }
//
// /**
// * 应用树层级 1:应用分组层 2:应用层
// */
// public void setTenantGroupLevel(Short tenantGroupLevel) {
// this.tenantGroupLevel = tenantGroupLevel;
// }
public
String
getTenantGroupLevel
()
{
return
tenantGroupLevel
;
return
tenantGroupLevel
;
}
}
/**
public
void
setTenantGroupLevel
(
String
tenantGroupLevel
)
{
* 应用树层级 1:应用分组层 2:应用层
*/
public
void
setTenantGroupLevel
(
Short
tenantGroupLevel
)
{
this
.
tenantGroupLevel
=
tenantGroupLevel
;
this
.
tenantGroupLevel
=
tenantGroupLevel
;
}
}
...
...
src/main/java/com/pms/ocp/service/impl/TenantBasicManagementServiceImpl.java
View file @
3c094805
package
com.pms.ocp.service.impl
;
package
com.pms.ocp.service.impl
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.github.pagehelper.PageHelper
;
import
com.github.pagehelper.PageHelper
;
import
com.github.pagehelper.PageInfo
;
import
com.github.pagehelper.PageInfo
;
...
@@ -11,10 +11,9 @@ import com.pms.ocp.mapper.TenantBasicManagementMapper;
...
@@ -11,10 +11,9 @@ import com.pms.ocp.mapper.TenantBasicManagementMapper;
import
com.pms.ocp.model.dto.GroupDto
;
import
com.pms.ocp.model.dto.GroupDto
;
import
com.pms.ocp.model.dto.OcpTenantBaseDto
;
import
com.pms.ocp.model.dto.OcpTenantBaseDto
;
import
com.pms.ocp.model.dto.TenantDto
;
import
com.pms.ocp.model.dto.TenantDto
;
import
com.pms.ocp.model.dto.WholeLinkParamDto
;
import
com.pms.ocp.model.entity.*
;
import
com.pms.ocp.model.entity.*
;
import
com.pms.ocp.model.vo.CompanyTenantVo
;
import
com.pms.ocp.model.vo.CompanyVo
;
import
com.pms.ocp.model.vo.ResponseVO
;
import
com.pms.ocp.model.vo.ResponseVO
;
import
com.pms.ocp.model.vo.TenantGroupVo
;
import
com.pms.ocp.model.vo.TenantGroupVo
;
import
com.pms.ocp.service.*
;
import
com.pms.ocp.service.*
;
...
@@ -22,6 +21,7 @@ import org.apache.commons.lang3.StringUtils;
...
@@ -22,6 +21,7 @@ import org.apache.commons.lang3.StringUtils;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.sql.Timestamp
;
import
java.sql.Timestamp
;
import
java.time.LocalDateTime
;
import
java.time.LocalDateTime
;
...
@@ -31,6 +31,7 @@ import java.util.List;
...
@@ -31,6 +31,7 @@ import java.util.List;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
@Service
@Service
public
class
TenantBasicManagementServiceImpl
extends
ServiceImpl
<
TenantBasicManagementMapper
,
OcpTenantBase
>
implements
TenantBasicManagementService
{
public
class
TenantBasicManagementServiceImpl
extends
ServiceImpl
<
TenantBasicManagementMapper
,
OcpTenantBase
>
implements
TenantBasicManagementService
{
@Autowired
@Autowired
private
TenantBasicManagementMapper
tenantBasicManagementMapper
;
private
TenantBasicManagementMapper
tenantBasicManagementMapper
;
...
@@ -85,8 +86,11 @@ public class TenantBasicManagementServiceImpl extends ServiceImpl<TenantBasicMan
...
@@ -85,8 +86,11 @@ public class TenantBasicManagementServiceImpl extends ServiceImpl<TenantBasicMan
lambdaQueryWrapper
.
in
(
OcpTenantExtent:
:
getTenantCode
,
list
);
lambdaQueryWrapper
.
in
(
OcpTenantExtent:
:
getTenantCode
,
list
);
List
<
OcpTenantExtent
>
ocpTenantExtents
=
ocpTenantExtentMapper
.
selectList
(
lambdaQueryWrapper
);
List
<
OcpTenantExtent
>
ocpTenantExtents
=
ocpTenantExtentMapper
.
selectList
(
lambdaQueryWrapper
);
for
(
OcpTenantExtent
ocpTenantExtent
:
ocpTenantExtents
)
{
for
(
OcpTenantExtent
ocpTenantExtent
:
ocpTenantExtents
)
{
if
(
ocpTenantExtent
.
getTenantState
()
==
1
)
{
String
tenantCode
=
ocpTenantExtent
.
getTenantCode
();
return
ResponseVO
.
error
(
"已发布"
);
if
(
ocpTenantExtent
.
getTenantState
()
==
0
)
{
return
ResponseVO
.
error
(
"数据为空"
);
}
else
if
(
ocpTenantExtent
.
getTenantState
()
==
1
)
{
return
ResponseVO
.
error
(
tenantCode
+
"已发布,请勿重复操作"
);
}
else
{
}
else
{
ocpTenantExtent
.
setTenantState
((
short
)
1
);
ocpTenantExtent
.
setTenantState
((
short
)
1
);
ocpTenantExtentMapper
.
updateById
(
ocpTenantExtent
);
ocpTenantExtentMapper
.
updateById
(
ocpTenantExtent
);
...
@@ -113,7 +117,7 @@ public class TenantBasicManagementServiceImpl extends ServiceImpl<TenantBasicMan
...
@@ -113,7 +117,7 @@ public class TenantBasicManagementServiceImpl extends ServiceImpl<TenantBasicMan
for
(
String
s
:
tenantCode
)
{
for
(
String
s
:
tenantCode
)
{
OcpTenantSubs
ocpTenantSubs
=
new
OcpTenantSubs
();
OcpTenantSubs
ocpTenantSubs
=
new
OcpTenantSubs
();
ocpTenantSubs
.
setTenantCode
(
s
);
ocpTenantSubs
.
setTenantCode
(
s
);
ocpTenantSubs
.
setSubsCompanyCode
(
companyCode
);
ocpTenantSubs
.
setSubsCompanyCode
(
"1"
);
ocpTenantSubs
.
setSubsLogTenantAtime
(
Timestamp
.
valueOf
(
LocalDateTime
.
now
()));
ocpTenantSubs
.
setSubsLogTenantAtime
(
Timestamp
.
valueOf
(
LocalDateTime
.
now
()));
ocpTenantSubs
.
setSubsLogTenantCtime
(
Timestamp
.
valueOf
(
LocalDateTime
.
now
()));
ocpTenantSubs
.
setSubsLogTenantCtime
(
Timestamp
.
valueOf
(
LocalDateTime
.
now
()));
ocpTenantSubs
.
setSubsLogTenantMtime
(
Timestamp
.
valueOf
(
LocalDateTime
.
now
()));
ocpTenantSubs
.
setSubsLogTenantMtime
(
Timestamp
.
valueOf
(
LocalDateTime
.
now
()));
...
@@ -139,17 +143,16 @@ public class TenantBasicManagementServiceImpl extends ServiceImpl<TenantBasicMan
...
@@ -139,17 +143,16 @@ public class TenantBasicManagementServiceImpl extends ServiceImpl<TenantBasicMan
LambdaQueryWrapper
<
OcpTenantExtent
>
lambdaQueryWrapper
=
new
LambdaQueryWrapper
<>();
LambdaQueryWrapper
<
OcpTenantExtent
>
lambdaQueryWrapper
=
new
LambdaQueryWrapper
<>();
lambdaQueryWrapper
.
in
(
OcpTenantExtent:
:
getTenantCode
,
list
);
lambdaQueryWrapper
.
in
(
OcpTenantExtent:
:
getTenantCode
,
list
);
List
<
OcpTenantExtent
>
ocpTenantExtents
=
ocpTenantExtentMapper
.
selectList
(
lambdaQueryWrapper
);
List
<
OcpTenantExtent
>
ocpTenantExtents
=
ocpTenantExtentMapper
.
selectList
(
lambdaQueryWrapper
);
if
(
ocpTenantExtents
.
size
()
==
0
)
{
return
ResponseVO
.
error
(
"数据为空"
);
}
for
(
OcpTenantExtent
ocpTenantExtent
:
ocpTenantExtents
)
{
for
(
OcpTenantExtent
ocpTenantExtent
:
ocpTenantExtents
)
{
// if (ocpTenantExtent == null) {
String
tenantCode
=
ocpTenantExtent
.
getTenantCode
();
// return ResponseVO.error("未知错误");
//
if
(
ocpTenantExtent
.
getTenantState
()
==
null
)
{
if
(
ocpTenantExtent
.
getTenantState
()
==
null
)
{
return
ResponseVO
.
error
(
"系统错误,状态为空"
);
return
ResponseVO
.
error
(
"系统错误,状态为空"
);
}
else
if
(
ocpTenantExtent
.
getTenantState
()
==
2
)
{
}
else
if
(
ocpTenantExtent
.
getTenantState
()
==
2
)
{
return
ResponseVO
.
error
(
"有一个应用已下线,请勿重复下线"
);
return
ResponseVO
.
error
(
tenantCode
+
"已下线,请勿重复下线"
);
}
else
{
}
else
{
ocpTenantExtent
.
setTenantState
((
short
)
2
);
ocpTenantExtent
.
setTenantState
((
short
)
2
);
ocpTenantExtentMapper
.
updateById
(
ocpTenantExtent
);
ocpTenantExtentMapper
.
updateById
(
ocpTenantExtent
);
...
@@ -174,6 +177,11 @@ public class TenantBasicManagementServiceImpl extends ServiceImpl<TenantBasicMan
...
@@ -174,6 +177,11 @@ public class TenantBasicManagementServiceImpl extends ServiceImpl<TenantBasicMan
if
(
one
==
null
)
{
if
(
one
==
null
)
{
return
ResponseVO
.
error
(
"该应用分类不存在"
);
return
ResponseVO
.
error
(
"该应用分类不存在"
);
}
}
String
apiCodes
=
ocpTenantBaseDto
.
getApiCodes
();
if
(
StringUtils
.
isEmpty
(
apiCodes
))
{
return
ResponseVO
.
error
(
"服务编码为空"
);
}
//获取应用分类编码
//获取应用分类编码
String
tenantGroupCode
=
one
.
getTenantGroupCode
();
String
tenantGroupCode
=
one
.
getTenantGroupCode
();
...
@@ -190,25 +198,22 @@ public class TenantBasicManagementServiceImpl extends ServiceImpl<TenantBasicMan
...
@@ -190,25 +198,22 @@ public class TenantBasicManagementServiceImpl extends ServiceImpl<TenantBasicMan
ocpTenantExtentMapper
.
insert
(
ocpTenantExtent
);
ocpTenantExtentMapper
.
insert
(
ocpTenantExtent
);
//ocp_api_tenant_rel
//ocp_api_tenant_rel
String
apiCodes
=
ocpTenantBaseDto
.
getApiCodes
();
if
(
StringUtils
.
isEmpty
(
apiCodes
))
{
OcpApiTenantRel
ocpApiTenantRel
=
new
OcpApiTenantRel
();
return
ResponseVO
.
error
(
"服务编码为空"
);
String
[]
split
=
apiCodes
.
split
(
","
);
}
else
{
List
<
String
>
apiCode
=
Arrays
.
asList
(
split
);
OcpApiTenantRel
ocpApiTenantRel
=
new
OcpApiTenantRel
();
String
tenantCode
=
ocpTenantBaseDto
.
getTenantCode
();
String
[]
split
=
apiCodes
.
split
(
","
);
for
(
String
s
:
apiCode
)
{
List
<
String
>
apiCode
=
Arrays
.
asList
(
split
);
ocpApiTenantRel
.
setApiCode
(
s
);
String
tenantCode
=
ocpTenantBaseDto
.
getTenantCode
();
ocpApiTenantRel
.
setTenantDepCompanyCode
(
null
);
for
(
String
s
:
apiCode
)
{
ocpApiTenantRel
.
setApiDepCompanyCode
(
null
);
ocpApiTenantRel
.
setApiCode
(
s
);
ocpApiTenantRel
.
setTenantCode
(
tenantCode
);
ocpApiTenantRel
.
setTenantDepCompanyCode
(
null
);
ocpApiTenantRel
.
setApiTenantRelCtime
(
Timestamp
.
valueOf
(
LocalDateTime
.
now
()));
ocpApiTenantRel
.
setApiDepCompanyCode
(
null
);
ocpApiTenantRel
.
setApiTenantRelMtime
(
Timestamp
.
valueOf
(
LocalDateTime
.
now
()));
ocpApiTenantRel
.
setTenantCode
(
tenantCode
);
//保存到数据库
ocpApiTenantRel
.
setApiTenantRelCtime
(
Timestamp
.
valueOf
(
LocalDateTime
.
now
()));
ocpApiTenantRelService
.
save
(
ocpApiTenantRel
);
ocpApiTenantRel
.
setApiTenantRelMtime
(
Timestamp
.
valueOf
(
LocalDateTime
.
now
()));
//保存到数据库
ocpApiTenantRelService
.
save
(
ocpApiTenantRel
);
}
}
}
return
ResponseVO
.
ok
();
return
ResponseVO
.
ok
();
}
}
...
@@ -259,9 +264,11 @@ public class TenantBasicManagementServiceImpl extends ServiceImpl<TenantBasicMan
...
@@ -259,9 +264,11 @@ public class TenantBasicManagementServiceImpl extends ServiceImpl<TenantBasicMan
@Override
@Override
public
List
<
OcpTenantBase
>
tenantBaseTree
(
String
tenantGroupCode
,
String
tenantGroupCompanyCode
)
{
public
List
<
OcpTenantBase
>
tenantBaseTree
(
String
tenantGroupCode
,
String
tenantGroupCompanyCode
)
{
LambdaQueryWrapper
<
OcpTenantBase
>
lambdaQueryWrapper
=
new
LambdaQueryWrapper
<>();
LambdaQueryWrapper
<
OcpTenantBase
>
lambdaQueryWrapper
=
new
LambdaQueryWrapper
<>();
lambdaQueryWrapper
.
eq
(
OcpTenantBase:
:
getOwnerCompanyCode
,
tenantGroupCompanyCode
);
lambdaQueryWrapper
.
eq
(
StringUtils
.
isNotEmpty
(
tenantGroupCompanyCode
),
OcpTenantBase:
:
getOwnerCompanyCode
,
tenantGroupCompanyCode
);
lambdaQueryWrapper
.
eq
(
OcpTenantBase:
:
getTenantCode
,
tenantGroupCode
);
lambdaQueryWrapper
.
eq
(
StringUtils
.
isNotEmpty
(
tenantGroupCode
),
OcpTenantBase:
:
getTenantGroupCode
,
tenantGroupCode
);
List
<
OcpTenantBase
>
ocpTenantBases
=
tenantBasicManagementMapper
.
selectList
(
lambdaQueryWrapper
);
List
<
OcpTenantBase
>
ocpTenantBases
=
tenantBasicManagementMapper
.
selectList
(
lambdaQueryWrapper
);
return
ocpTenantBases
;
return
ocpTenantBases
;
}
}
...
@@ -274,7 +281,6 @@ public class TenantBasicManagementServiceImpl extends ServiceImpl<TenantBasicMan
...
@@ -274,7 +281,6 @@ public class TenantBasicManagementServiceImpl extends ServiceImpl<TenantBasicMan
*/
*/
@Override
@Override
public
OcpTenantGroup
selectRegister
(
String
tenantGroupCode
,
String
tenantGroupCompanyCode
)
{
public
OcpTenantGroup
selectRegister
(
String
tenantGroupCode
,
String
tenantGroupCompanyCode
)
{
OcpTenantGroup
ocpTenantGroup
=
ocpTenantGroupMapper
.
selectRegister
(
tenantGroupCode
,
tenantGroupCompanyCode
);
OcpTenantGroup
ocpTenantGroup
=
ocpTenantGroupMapper
.
selectRegister
(
tenantGroupCode
,
tenantGroupCompanyCode
);
return
ocpTenantGroup
;
return
ocpTenantGroup
;
}
}
...
@@ -293,7 +299,6 @@ public class TenantBasicManagementServiceImpl extends ServiceImpl<TenantBasicMan
...
@@ -293,7 +299,6 @@ public class TenantBasicManagementServiceImpl extends ServiceImpl<TenantBasicMan
setGroupIdValue
(
tenantGroupCompanyCode
,
cod
);
setGroupIdValue
(
tenantGroupCompanyCode
,
cod
);
tenantGroup
.
add
(
cod
);
tenantGroup
.
add
(
cod
);
}
}
;
}
}
}
}
...
...
src/main/resources/mapper/ApiBasicManagementMapper.xml
View file @
3c094805
...
@@ -28,7 +28,9 @@
...
@@ -28,7 +28,9 @@
</select>
</select>
<select
id=
"queryOcpApiBaseDto"
resultMap=
"oabMap"
>
<select
id=
"queryOcpApiBaseDto"
resultMap=
"oabMap"
>
select oab.obj_id,oab.api_code,oae.api_code,oab.api_name,oae.cluster_name,
select
oab.obj_id,
oab.api_code,oae.api_code,oab.api_name,oae.cluster_name,
oae.space_name,oab.api_url,oae.api_state ,oab.api_unit ,oab.api_ctime from ocp_api_base oab
oae.space_name,oab.api_url,oae.api_state ,oab.api_unit ,oab.api_ctime from ocp_api_base oab
join ocp_api_extent oae ON oae.api_code = oab.api_code
join ocp_api_extent oae ON oae.api_code = oab.api_code
<where>
<where>
...
...
src/main/resources/mapper/OcpGroup.xml
View file @
3c094805
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
<result
property=
"deploymentName"
column=
"deployment_name"
/>
<result
property=
"deploymentName"
column=
"deployment_name"
/>
<result
property=
"tenantZone"
column=
"tenant_zone"
/>
<result
property=
"tenantZone"
column=
"tenant_zone"
/>
<result
property=
"tenantCtime"
column=
"tenant_ctime"
/>
<result
property=
"tenantCtime"
column=
"tenant_ctime"
/>
<result
property=
"tenantUnit"
column=
"tenant_unit"
/>
<result
property=
"tenantUnit"
column=
"tenant_unit"
jdbcType=
"VARCHAR"
/>
</resultMap>
</resultMap>
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
<select
id=
"selectPageLists"
resultMap=
"ctbMap"
>
<select
id=
"selectPageLists"
resultMap=
"ctbMap"
>
select
select
otb.obj_id,otb.tenant_code,otb.tenant_name,otg.tenant_group_name,otb.tenant_url,ote.cluster_name,ote.space_name,
otb.obj_id,otb.tenant_code,otb.tenant_name,otg.tenant_group_name,otb.tenant_url,ote.cluster_name,ote.space_name,
ot
e.deployment_name,ot
b.tenant_zone,otb.tenant_ctime,otb.tenant_unit
otb.tenant_zone,otb.tenant_ctime,otb.tenant_unit
from ocp_tenant_base otb
from ocp_tenant_base otb
join ocp_tenant_extent ote on otb.tenant_code=ote.tenant_code
join ocp_tenant_extent ote on otb.tenant_code=ote.tenant_code
join ocp_tenant_group otg on otb.tenant_group_code =otg.tenant_group_code
join ocp_tenant_group otg on otb.tenant_group_code =otg.tenant_group_code
...
@@ -50,19 +50,15 @@
...
@@ -50,19 +50,15 @@
</foreach>
</foreach>
</if>
</if>
<if
test=
"tenantUnit !=null and tenantUnit!=''"
>
<if
test=
"tenantUnit !=null and tenantUnit!=''"
>
and otb.tenant_unit = #{api
Unit}
and otb.tenant_unit = #{tenant
Unit}
</if>
</if>
<!-- <if test="tenantGroupCode !=null and tenantGroupCode!=''">-->
<if
test=
"startCTime !=null "
>
<!-- and otb.tenant_group_code = #{tenantGroupCode}-->
<!-- </if>-->
<if
test=
"startTime !=null "
>
<![CDATA[
<![CDATA[
and otb.tenant_ctime >
= #{startCTime}
and otb.tenant_ctime >
= #{startCTime}
]]>
]]>
</if>
</if>
<if
test=
"endTime !=null "
>
<if
test=
"end
C
Time !=null "
>
<![CDATA[
<![CDATA[
and otb.tenant_ctime <= #{endCTime}
and otb.tenant_ctime <= #{endCTime}
]]>
]]>
...
@@ -70,9 +66,9 @@
...
@@ -70,9 +66,9 @@
<if
test=
"keyword !=null and keyword != '' "
>
<if
test=
"keyword !=null and keyword != '' "
>
and otb.tenant_name like CONCAT('%', #{keyword}::text,'%')
and otb.tenant_name like CONCAT('%', #{keyword}::text,'%')
</if>
</if>
<if
test=
"keyword !=null and keyword != '' "
>
<!-- <if test="keyword !=null and keyword != '' ">--
>
and otb.tenant_code like CONCAT('%', #{keyword}::text,'%')
<!-- and otb.tenant_code like CONCAT('%', #{keyword}::text,'%')-->
</if
>
<!-- </if>--
>
</select>
</select>
<select
id=
"selectRegister"
resultType=
"com.pms.ocp.model.entity.OcpTenantGroup"
>
<select
id=
"selectRegister"
resultType=
"com.pms.ocp.model.entity.OcpTenantGroup"
>
select * from ocp_tenant_group where is_delete = 0
select * from ocp_tenant_group where is_delete = 0
...
...
src/main/resources/mapper/TenantBasicManagementMapper.xml
View file @
3c094805
...
@@ -65,6 +65,4 @@
...
@@ -65,6 +65,4 @@
</mapper>
</mapper>
\ No newline at end of file
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