Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
d4e1d865
Commit
d4e1d865
authored
Sep 27, 2024
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.个人主体单位变更编辑时,单位名称回显多身份证
parent
f987a7a0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
14 deletions
+11
-14
JgChangeRegistrationUnitServiceImpl.java
...biz/service/impl/JgChangeRegistrationUnitServiceImpl.java
+11
-14
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/JgChangeRegistrationUnitServiceImpl.java
View file @
d4e1d865
...
...
@@ -326,6 +326,7 @@ public class JgChangeRegistrationUnitServiceImpl extends BaseService<JgChangeReg
notice
.
setNextExecutorIds
(
String
.
join
(
","
,
roleListNext
));
notice
.
setStatus
(
WorkFlowStatusEnum
.
UNITCHANGE_RECEIVE
.
getPass
());
notice
.
setNextExecuteUserIds
(
nextUserIds
);
setNewUnitInfo
(
reginParams
,
notice
);
JgChangeRegistrationUnitMapper
.
updateById
(
notice
);
commonServiceImpl
.
deleteTasksByRelationId
(
notice
.
getSequenceNbr
()
+
""
);
createTaskModel
(
notice
,
taskname
,
"1"
,
nextUserIds
);
...
...
@@ -379,6 +380,7 @@ public class JgChangeRegistrationUnitServiceImpl extends BaseService<JgChangeReg
}
else
{
JgChangeRegistrationUnit
bean
=
new
JgChangeRegistrationUnit
();
BeanUtils
.
copyProperties
(
noticeDto
,
bean
);
setNewUnitInfo
(
reginParams
,
bean
);
JgChangeRegistrationUnitMapper
.
updateById
(
bean
);
}
List
<
JgChangeRegistrationUnitEq
>
jgRelationEquipList
=
new
ArrayList
<>();
...
...
@@ -421,6 +423,14 @@ public class JgChangeRegistrationUnitServiceImpl extends BaseService<JgChangeReg
return
noticeDto
;
}
private
void
setNewUnitInfo
(
ReginParams
reginParams
,
JgChangeRegistrationUnit
notice
)
{
notice
.
setNewUseUnitName
(
CompanyTypeEnum
.
INDIVIDUAL
.
getName
().
equals
(
reginParams
.
getCompany
().
getCompanyType
())
?
reginParams
.
getCompany
().
getCompanyName
().
split
(
"_"
)[
1
]
:
reginParams
.
getCompany
().
getCompanyName
());
notice
.
setNewUseUnitCreditCode
(
CompanyTypeEnum
.
INDIVIDUAL
.
getName
().
equals
(
reginParams
.
getCompany
().
getCompanyType
())
?
reginParams
.
getCompany
().
getCompanyCode
().
split
(
"_"
)[
1
]
:
reginParams
.
getCompany
().
getCompanyCode
());
}
/**
* 分页查询
...
...
@@ -625,11 +635,6 @@ public class JgChangeRegistrationUnitServiceImpl extends BaseService<JgChangeReg
model
.
setPromoter
(
reginParams
.
getUserModel
().
getUserId
());
model
.
setStatus
(
taskName
[
0
]);
}
model
.
setNewUseUnitName
(
CompanyTypeEnum
.
INDIVIDUAL
.
getName
().
equals
(
reginParams
.
getCompany
().
getCompanyType
())
?
reginParams
.
getCompany
().
getCompanyName
().
split
(
"_"
)[
1
]
:
reginParams
.
getCompany
().
getCompanyName
());
model
.
setNewUseUnitCreditCode
(
CompanyTypeEnum
.
INDIVIDUAL
.
getName
().
equals
(
reginParams
.
getCompany
().
getCompanyType
())
?
reginParams
.
getCompany
().
getCompanyCode
().
split
(
"_"
)[
1
]
:
reginParams
.
getCompany
().
getCompanyCode
());
if
(!
CollectionUtils
.
isEmpty
(
nextExecutorUserIds
))
{
model
.
setNextExecuteUserIds
(
nextExecutorUserIds
.
get
(
0
));
}
...
...
@@ -649,6 +654,7 @@ public class JgChangeRegistrationUnitServiceImpl extends BaseService<JgChangeReg
model
.
setEquList
(
registrationList
.
get
(
0
).
get
(
"equList"
).
toString
());
JgChangeRegistrationUnit
registrationUnit
=
new
JgChangeRegistrationUnit
();
BeanUtils
.
copyProperties
(
model
,
registrationUnit
);
setNewUnitInfo
(
reginParams
,
registrationUnit
);
JgChangeRegistrationUnitMapper
.
insert
(
registrationUnit
);
List
<
TaskModelDto
>
modelDtos
=
new
ArrayList
<>();
...
...
@@ -778,15 +784,6 @@ public class JgChangeRegistrationUnitServiceImpl extends BaseService<JgChangeReg
}
}
String
newUseUnitId
=
model
.
getNewUseUnitCreditCode
();
if
(!
ObjectUtils
.
isEmpty
(
newUseUnitId
))
{
String
[]
newUseUnitList
=
newUseUnitId
.
split
(
"_"
);
if
(
newUseUnitList
.
length
>
1
)
{
model
.
setNewUseUnitCreditCode
(
newUseUnitList
[
0
]);
model
.
setNewUseUnitName
(
newUseUnitList
[
1
]);
}
}
String
receiveOrgCode
=
model
.
getReceiveOrgCode
();
if
(!
ObjectUtils
.
isEmpty
(
receiveOrgCode
))
{
String
[]
receiveOrgCodeList
=
receiveOrgCode
.
split
(
"_"
);
...
...
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