Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
browser-backend
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
browser-backend
Commits
705b1d0a
Commit
705b1d0a
authored
Apr 15, 2020
by
renjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
企业认证添加公司名
parent
2fe9d45b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
AccountServiceImpl.java
...owserbackend/account/service/impl/AccountServiceImpl.java
+4
-0
AdministratorServiceImpl.java
...ackend/account/service/impl/AdministratorServiceImpl.java
+1
-1
No files found.
src/main/java/com/edgec/browserbackend/account/service/impl/AccountServiceImpl.java
View file @
705b1d0a
...
...
@@ -1201,11 +1201,15 @@ public class AccountServiceImpl implements AccountService {
throw
new
ClientRequestException
(
AccountErrorCode
.
NAMENOTEXIST
);
if
(
isAgree
)
{
account
.
setAuthorized
(
2
);
CompanyAuthorize
companyAuthorize
=
companyAuthorizeRepository
.
findByUsername
(
username
);
account
.
setCompanyName
(
companyAuthorize
.
getCompanyName
());
repository
.
save
(
account
);
}
else
{
account
.
setAuthorized
(
3
);
account
.
setCompanyName
(
null
);
repository
.
save
(
account
);
CompanyAuthorize
companyAuthorize
=
companyAuthorizeRepository
.
findByUsername
(
username
);
if
(
companyAuthorize
!=
null
)
{
if
(
companyAuthorize
.
getCompanyLicenseId
()
!=
null
)
...
...
src/main/java/com/edgec/browserbackend/account/service/impl/AdministratorServiceImpl.java
View file @
705b1d0a
...
...
@@ -400,7 +400,7 @@ public class AdministratorServiceImpl implements AdministratorService {
accountPromotionDtos
.
add
(
new
AccountPromotionDto
(
account1
));
});
}
log
.
error
(
accountPromotionDtos
.
size
()
+
""
);
Page
<
AccountPromotionDto
>
accountPromotionDtoPage
=
new
PageImpl
<
AccountPromotionDto
>(
accountPromotionDtos
);
promotionQueryResultDto
.
setUsers
(
accountPromotionDtoPage
);
...
...
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