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
7af6bde3
Commit
7af6bde3
authored
Mar 31, 2022
by
xxxxxwwwww
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
4d2a06cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
src/main/java/com/pms/ocp/service/impl/AppRegisterServiceImpl.java
...java/com/pms/ocp/service/impl/AppRegisterServiceImpl.java
+10
-10
No files found.
src/main/java/com/pms/ocp/service/impl/AppRegisterServiceImpl.java
View file @
7af6bde3
...
...
@@ -71,14 +71,14 @@ public class AppRegisterServiceImpl implements AppRegisterService {
ocpTenantExtent
.
setTenantState
((
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
);
//
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
());
...
...
@@ -90,11 +90,11 @@ public class AppRegisterServiceImpl implements AppRegisterService {
ocpTenantBase
.
setTenantUnit
(
appRegisterDTO
.
getManufacturer
());
ocpTenantBase
.
setTenantVersion
(
appRegisterDTO
.
getVersion
());
ocpTenantBase
.
setTenantCtime
(
new
Timestamp
(
System
.
currentTimeMillis
()));
ocpTenantBase
.
setTenantGroupCode
(
ocpTenantGroup
.
getTenantGroupCod
e
());
ocpTenantBase
.
setTenantGroupCode
(
appRegisterDTO
.
getTyp
e
());
ocpTenantBase
.
setIsDelete
((
short
)
0
);
int
i
=
ocpTenantBaseMapper
.
insert
(
ocpTenantBase
);
if
(
n
>
0
&&
i
>
0
&&
j
>
0
&&
m
>
0
)
{
if
(
n
>
0
&&
i
>
0
&&
j
>
0
)
{
return
ResponseVO
.
ok
();
}
return
ResponseVO
.
error
(
"新增应用注册失败"
);
...
...
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