Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
csbr-daop
/
ms-data-circulation-portal-service
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
c1edaac4
authored
2025-02-12 17:42:42 +0800
by
肖初晴
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
【DAOP-1.0】企业认证
【功能点】测试问题处理
1 parent
d62df2f4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
src/main/java/com/csbr/qingcloud/portal/service/impl/EnterpriseServiceImpl.java
src/main/java/com/csbr/qingcloud/portal/service/impl/EnterpriseServiceImpl.java
View file @
c1edaac
...
...
@@ -452,12 +452,29 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris
@Override
public
Boolean
check
(
EnterpriseRQVO
vo
)
{
//防止管理员帐号发起认证
if
(
StringUtils
.
isBlank
(
vo
.
getGuid
())){
checkUser
(
vo
.
getLogonUser
());
}
//检查会员名称等数据
TenantRQVO
tenant
=
csbrBeanUtil
.
convert
(
vo
,
TenantRQVO
.
class
);
personelFeign
.
checkTenant
(
tenant
);
return
true
;
}
private
void
checkUser
(
String
logonUser
){
UserQueryDTO
dto
=
new
UserQueryDTO
();
dto
.
setLogonUser
(
logonUser
);
List
<
UserVO
>
userList
=
userFeign
.
getUserSomeInfo
(
dto
).
getData
().
getRecords
();
if
(
CollectionUtils
.
isNotEmpty
(
userList
)){
StaffRSVO
staffVO
=
personelFeign
.
getByUserGuid
(
userList
.
get
(
0
).
getGuid
()).
getData
();
if
(
staffVO
!=
null
&&
StringUtils
.
isNotBlank
(
staffVO
.
getIsAdmin
())
&&
"Y"
.
equals
(
staffVO
.
getIsAdmin
())){
throw
new
CsbrUserException
(
UserError
.
VALIDATE_CODE_ERROR
,
"账号已存在!"
);
}
}
}
/**
* 获取发起流程参数
* @author xcq
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment