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
359bdca8
authored
2025-02-19 16:57:32 +0800
by
肖初晴
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
【DAOP-1.0】企业认证
【功能点】测试问题处理
1 parent
e8a78ceb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
8 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 @
359bdca
...
...
@@ -444,6 +444,14 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris
if
(
entity
==
null
)
{
throw
new
CsbrSystemException
(
SystemError
.
DATA_NOT_EXISTS
,
messageSourceUtil
.
notExistsToSelectMessage
(
FUNCTION_NAME
));
}
// 同步更新审批状态
LambdaUpdateWrapper
<
MfEnterprise
>
updateWrapper
=
new
LambdaUpdateWrapper
<>();
updateWrapper
.
set
(
MfEnterprise:
:
getBizApproveState
,
dto
.
getApprovalState
());
updateWrapper
.
eq
(
MfEnterprise:
:
getGuid
,
dto
.
getBizGuid
());
boolean
flag
=
mfEnterpriseService
.
update
(
updateWrapper
);
if
(!
flag
)
{
throw
new
CsbrSystemException
(
SystemError
.
DATA_UPDATE_ERROR
,
messageSourceUtil
.
updateMessage
(
String
.
format
(
"%s的业务审批状态"
,
FUNCTION_NAME
)));
}
if
(
ApprovalStateEnum
.
PASSED
.
getValue
().
equals
(
dto
.
getApprovalState
()))
{
//删除原帐号并新增正式会员
TenantRQVO
vo
=
csbrBeanUtil
.
convert
(
entity
,
TenantRQVO
.
class
);
...
...
@@ -451,16 +459,16 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris
vo
.
setGuid
(
CommonUtil
.
newGuid
());
vo
.
setPersonIncharge
(
entity
.
getJuridicalPerson
());
vo
.
setBizState
(
"Y"
);
try
{
vo
=
personelFeign
.
authTenant
(
vo
).
getData
();
}
catch
(
Exception
e
){
if
(!
e
.
getMessage
().
contains
(
"Read timed out"
)){
throw
e
;
}
// 同步更新审批状态
LambdaUpdateWrapper
<
MfEnterprise
>
updateWrapper
=
new
LambdaUpdateWrapper
<>();
updateWrapper
.
set
(
MfEnterprise:
:
getBizApproveState
,
dto
.
getApprovalState
());
updateWrapper
.
eq
(
MfEnterprise:
:
getGuid
,
dto
.
getBizGuid
());
boolean
flag
=
mfEnterpriseService
.
update
(
updateWrapper
);
if
(!
flag
)
{
throw
new
CsbrSystemException
(
SystemError
.
DATA_UPDATE_ERROR
,
messageSourceUtil
.
updateMessage
(
String
.
format
(
"%s的业务审批状态"
,
FUNCTION_NAME
)));
}
}
}
/** 将此账号提交的数据需求迁移到新的企业 */
...
...
@@ -468,7 +476,7 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
void
moveOldData
(
TenantRQVO
vo
){
LambdaQueryWrapper
<
MfDemand
>
queryWrapper
=
new
LambdaQueryWrapper
<>();
queryWrapper
.
eq
(
MfDemand:
:
get
RequirementUnit
,
vo
.
getTenantName
());
queryWrapper
.
eq
(
MfDemand:
:
get
CreateUserName
,
vo
.
getTenantName
());
mfDemandService
.
csbrExcludeShardingLambdaQueryWrapper
(
queryWrapper
);
List
<
MfDemand
>
list
=
mfDemandService
.
list
(
queryWrapper
);
if
(
CollectionUtils
.
isEmpty
(
list
)){
...
...
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