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
190186aa
Commit
190186aa
authored
Mar 29, 2022
by
郭凡凡
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新
parent
d3cb0278
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
23 additions
and
25 deletions
+23
-25
src/main/java/com/pms/ocp/controller/ApiBasicManagementController.java
.../com/pms/ocp/controller/ApiBasicManagementController.java
+2
-2
src/main/java/com/pms/ocp/model/dto/AppRegisterDTO.java
src/main/java/com/pms/ocp/model/dto/AppRegisterDTO.java
+3
-3
src/main/java/com/pms/ocp/model/dto/ImgDTO.java
src/main/java/com/pms/ocp/model/dto/ImgDTO.java
+3
-3
src/main/java/com/pms/ocp/model/entity/OcpTenantIocn.java
src/main/java/com/pms/ocp/model/entity/OcpTenantIocn.java
+3
-3
src/main/java/com/pms/ocp/service/ApiBasicManagementService.java
...n/java/com/pms/ocp/service/ApiBasicManagementService.java
+2
-2
src/main/java/com/pms/ocp/service/impl/ApiBasicManagementServiceImpl.java
...m/pms/ocp/service/impl/ApiBasicManagementServiceImpl.java
+4
-5
src/main/java/com/pms/ocp/service/impl/AppRegisterServiceImpl.java
...java/com/pms/ocp/service/impl/AppRegisterServiceImpl.java
+3
-5
src/main/java/com/pms/ocp/service/impl/TenantBasicManagementServiceImpl.java
...ms/ocp/service/impl/TenantBasicManagementServiceImpl.java
+3
-2
No files found.
src/main/java/com/pms/ocp/controller/ApiBasicManagementController.java
View file @
190186aa
...
...
@@ -212,10 +212,10 @@ public class ApiBasicManagementController {
public
ResponseVO
<
PageInfo
<
OcpApiBase
>>
selectByCondition
(
@RequestParam
(
required
=
false
)
String
apiCode
,
@RequestParam
(
required
=
false
)
String
apiName
,
@RequestParam
(
required
=
false
)
String
apiCenterCode
,
@RequestParam
(
required
=
false
)
Integer
pageNum
,
@RequestParam
(
required
=
false
)
Integer
currentPage
,
@RequestParam
(
required
=
false
)
Integer
pageSize
,
@RequestParam
(
required
=
false
)
String
apiGroupCode
)
{
return
apiBasicManagementService
.
selectByCondition
(
apiCode
,
apiName
,
apiCenterCode
,
pageNum
,
pageSize
,
apiGroupCode
);
return
apiBasicManagementService
.
selectByCondition
(
apiCode
,
apiName
,
apiCenterCode
,
currentPage
,
pageSize
,
apiGroupCode
);
}
...
...
src/main/java/com/pms/ocp/model/dto/AppRegisterDTO.java
View file @
190186aa
...
...
@@ -28,7 +28,7 @@ public class AppRegisterDTO {
@ApiModelProperty
(
"应用图标"
)
@NotBlank
(
message
=
"应用图标不能为空"
,
groups
=
CreateGroups
.
class
)
private
String
imgUrl
;
private
byte
[]
imgUrl
;
@ApiModelProperty
(
"应用名称"
)
@NotBlank
(
message
=
"应用名称不能为空"
,
groups
=
CreateGroups
.
class
)
...
...
@@ -165,11 +165,11 @@ public class AppRegisterDTO {
this
.
time
=
time
;
}
public
String
getImgUrl
()
{
public
byte
[]
getImgUrl
()
{
return
imgUrl
;
}
public
void
setImgUrl
(
String
imgUrl
)
{
public
void
setImgUrl
(
byte
[]
imgUrl
)
{
this
.
imgUrl
=
imgUrl
;
}
...
...
src/main/java/com/pms/ocp/model/dto/ImgDTO.java
View file @
190186aa
...
...
@@ -20,7 +20,7 @@ public class ImgDTO {
@ApiModelProperty
(
value
=
"应用预览url"
)
@NotBlank
(
message
=
"应用预览url不能为空"
,
groups
=
CreateGroups
.
class
)
private
String
img
;
private
byte
[]
img
;
public
String
getTenantCode
()
{
return
tenantCode
;
...
...
@@ -30,11 +30,11 @@ public class ImgDTO {
this
.
tenantCode
=
tenantCode
;
}
public
String
getImg
()
{
public
byte
[]
getImg
()
{
return
img
;
}
public
void
setImg
(
String
img
)
{
public
void
setImg
(
byte
[]
img
)
{
this
.
img
=
img
;
}
}
...
...
src/main/java/com/pms/ocp/model/entity/OcpTenantIocn.java
View file @
190186aa
...
...
@@ -40,7 +40,7 @@ public class OcpTenantIocn implements Serializable {
* 应用调用的服务数量图标数据
*/
@ApiModelProperty
(
value
=
"应用调用的服务数量图标数据"
)
private
Object
iocn
;
private
byte
[]
iocn
;
@ApiModelProperty
(
value
=
"图片类型"
)
private
Object
iocnKind
;
...
...
@@ -77,11 +77,11 @@ public class OcpTenantIocn implements Serializable {
this
.
codeNo
=
codeNo
;
}
public
Object
getIocn
()
{
public
byte
[]
getIocn
()
{
return
iocn
;
}
public
void
setIocn
(
Object
iocn
)
{
public
void
setIocn
(
byte
[]
iocn
)
{
this
.
iocn
=
iocn
;
}
...
...
src/main/java/com/pms/ocp/service/ApiBasicManagementService.java
View file @
190186aa
...
...
@@ -86,12 +86,12 @@ public interface ApiBasicManagementService extends IService<OcpApiBase> {
* @param apiCode
* @param apiName
* @param apiCenterCode
* @param
pageNum
* @param
currentPage
* @param pageSize
* @param apiGroupCode
* @return
*/
ResponseVO
<
PageInfo
<
OcpApiBase
>>
selectByCondition
(
String
apiCode
,
String
apiName
,
String
apiCenterCode
,
Integer
pageNum
,
Integer
pageSize
,
String
apiGroupCode
);
ResponseVO
<
PageInfo
<
OcpApiBase
>>
selectByCondition
(
String
apiCode
,
String
apiName
,
String
apiCenterCode
,
Integer
currentPage
,
Integer
pageSize
,
String
apiGroupCode
);
/**
* 省侧-应用接入申请-查询组中所有中心
...
...
src/main/java/com/pms/ocp/service/impl/ApiBasicManagementServiceImpl.java
View file @
190186aa
...
...
@@ -262,17 +262,16 @@ public class ApiBasicManagementServiceImpl extends ServiceImpl<ApiBasicManagemen
* @param apiName
* @param apiCenterCode
* @param apiGroupCode
* @param
pageNum
* @param
currentPage
* @param pageSize
* @return
*/
public
ResponseVO
<
PageInfo
<
OcpApiBase
>>
selectByCondition
(
String
apiCode
,
String
apiName
,
String
apiCenterCode
,
Integer
pageNum
,
Integer
pageSize
,
String
apiGroupCode
)
{
if
(
pageNum
==
null
||
pageSize
==
null
)
{
public
ResponseVO
<
PageInfo
<
OcpApiBase
>>
selectByCondition
(
String
apiCode
,
String
apiName
,
String
apiCenterCode
,
Integer
currentPage
,
Integer
pageSize
,
String
apiGroupCode
)
{
if
(
currentPage
==
null
||
pageSize
==
null
)
{
return
ResponseVO
.
error
(
"分页参数不能为空"
);
}
PageHelper
.
startPage
(
pageNum
,
pageSize
);
PageHelper
.
startPage
(
currentPage
,
pageSize
);
List
<
OcpApiBase
>
list
=
apiBasicManagementMapper
.
selectByCondition
(
apiCode
,
apiName
,
apiCenterCode
,
apiGroupCode
);
PageInfo
<
OcpApiBase
>
pageInfo
=
new
PageInfo
<>(
list
);
return
ResponseVO
.
ok
(
pageInfo
);
...
...
src/main/java/com/pms/ocp/service/impl/AppRegisterServiceImpl.java
View file @
190186aa
...
...
@@ -24,7 +24,6 @@ import java.util.ArrayList;
import
java.util.Date
;
import
java.util.List
;
/**
* 应用注册业务接口实现
*
...
...
@@ -56,24 +55,23 @@ public class AppRegisterServiceImpl implements AppRegisterService {
ocpTenantIocn
.
setIocn
(
appRegisterDTO
.
getImgUrl
());
int
n
=
ocpTenantIocnMapper
.
insert
(
ocpTenantIocn
);
OcpTenantExtent
ocpTenantExtent
=
new
OcpTenantExtent
();
ocpTenantExtent
.
setTenantCtime
(
new
Date
());
ocpTenantExtent
.
setTenantCode
(
appRegisterDTO
.
getAppCode
());
ocpTenantExtent
.
setClusterName
(
appRegisterDTO
.
getGroup
());
ocpTenantExtent
.
setDeploymentName
(
appRegisterDTO
.
getDeploymentName
());
ocpTenantExtent
.
setIsDelete
((
short
)
0
);
int
j
=
ocpTenantExtentMapper
.
insert
(
ocpTenantExtent
);
OcpTenantGroup
ocpTenantGroup
=
new
OcpTenantGroup
();
ocpTenantGroup
.
setTenantGroupUserId
(
appRegisterDTO
.
getUserId
());
ocpTenantGroup
.
setTenantGroupUserName
(
appRegisterDTO
.
getUserName
());
ocpTenantGroup
.
setTenantGroupCtime
(
new
Timestamp
(
System
.
currentTimeMillis
()));
ocpTenantGroup
.
setTenantGroupCode
(
GUIDGenerator
.
generate32
(
true
));
ocpTenantGroup
.
setTenantGroupName
(
appRegisterDTO
.
getType
());
ocpTenantGroup
.
setIsDelete
((
short
)
0
);
int
m
=
ocpTenantGroupMapper
.
insert
(
ocpTenantGroup
);
OcpTenantBase
ocpTenantBase
=
new
OcpTenantBase
();
ocpTenantBase
.
setTenantUserId
(
appRegisterDTO
.
getUserId
());
ocpTenantBase
.
setTenantName
(
appRegisterDTO
.
getAppName
());
...
...
@@ -85,9 +83,9 @@ public class AppRegisterServiceImpl implements AppRegisterService {
ocpTenantBase
.
setTenantVersion
(
appRegisterDTO
.
getVersion
());
ocpTenantBase
.
setTenantCtime
(
new
Timestamp
(
System
.
currentTimeMillis
()));
ocpTenantBase
.
setTenantGroupCode
(
ocpTenantGroup
.
getTenantGroupCode
());
ocpTenantBase
.
setIsDelete
((
short
)
0
);
int
i
=
ocpTenantBaseMapper
.
insert
(
ocpTenantBase
);
if
(
n
>
0
&&
i
>
0
&&
j
>
0
&&
m
>
0
)
{
return
ResponseVO
.
ok
();
}
...
...
src/main/java/com/pms/ocp/service/impl/TenantBasicManagementServiceImpl.java
View file @
190186aa
...
...
@@ -409,6 +409,8 @@ public class TenantBasicManagementServiceImpl extends ServiceImpl<TenantBasicMan
String
tenantCode
=
ocpBaseTiocnDto
.
getTenantCode
();
OcpTenantBase
ocpTenantBase
=
new
OcpTenantBase
();
BeanUtils
.
copyProperties
(
ocpBaseTiocnDto
,
ocpTenantBase
);
ocpTenantBase
.
setIsDelete
((
short
)
0
);
ocpTenantBase
.
setTenantCtime
(
new
Timestamp
(
System
.
currentTimeMillis
()));
LambdaQueryWrapper
<
OcpTenantBase
>
lambdaQueryWrapper2
=
new
LambdaQueryWrapper
<>();
lambdaQueryWrapper2
.
eq
(
OcpTenantBase:
:
getTenantCode
,
tenantCode
);
// boolean flag = this.update(ocpTenantBase, lambdaQueryWrapper2);
...
...
@@ -437,11 +439,10 @@ public class TenantBasicManagementServiceImpl extends ServiceImpl<TenantBasicMan
//添加新的数据到图标表
OcpTenantIocn
ocpTenantIocn
=
new
OcpTenantIocn
();
String
iocn
=
ocpBaseTiocnDto
.
getIocn
();
String
ownerCompanyCode
=
ocpBaseTiocnDto
.
getOwnerCompanyCode
();
ocpTenantIocn
.
setCodeNo
(
tenantCode
);
ocpTenantIocn
.
setIocnType
(
"tenant"
);
ocpTenantIocn
.
setIocn
(
iocn
);
// ocpTenantIocn.setIocn(ocpBaseTiocnDto.getIocn()
);
ocpTenantIocn
.
setCompanyCode
(
ownerCompanyCode
);
boolean
save
=
ocpTenantIocnService
.
save
(
ocpTenantIocn
);
if
(
save
)
{
...
...
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