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
b3311585
Commit
b3311585
authored
Oct 28, 2025
by
刘林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(jg):更名变更添加超时时间,使用登记添加监察处置单位
parent
a6d99abe
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
1 deletion
+25
-1
JgChangeRegistrationNameServiceImpl.java
...biz/service/impl/JgChangeRegistrationNameServiceImpl.java
+1
-1
JgUseRegistrationServiceImpl.java
...ule/jg/biz/service/impl/JgUseRegistrationServiceImpl.java
+24
-0
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/JgChangeRegistrationNameServiceImpl.java
View file @
b3311585
...
@@ -145,7 +145,7 @@ public class JgChangeRegistrationNameServiceImpl extends BaseService<JgChangeReg
...
@@ -145,7 +145,7 @@ public class JgChangeRegistrationNameServiceImpl extends BaseService<JgChangeReg
private
EventPublisher
eventPublisher
;
private
EventPublisher
eventPublisher
;
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
@GlobalTransactional
(
rollbackFor
=
Exception
.
class
)
@GlobalTransactional
(
rollbackFor
=
Exception
.
class
,
timeoutMills
=
600000
)
public
List
<
JgChangeRegistrationName
>
save2
(
String
submitType
,
JSONObject
requestParam
)
{
public
List
<
JgChangeRegistrationName
>
save2
(
String
submitType
,
JSONObject
requestParam
)
{
Map
<
String
,
JSONObject
>
jgRegistrationInfoMap
=
(
Map
<
String
,
JSONObject
>)
JSONObject
.
parseObject
(
JSONObject
.
toJSONString
(
requestParam
),
Map
.
class
);
Map
<
String
,
JSONObject
>
jgRegistrationInfoMap
=
(
Map
<
String
,
JSONObject
>)
JSONObject
.
parseObject
(
JSONObject
.
toJSONString
(
requestParam
),
Map
.
class
);
return
Collections
.
singletonList
(
this
.
save
(
submitType
,
jgRegistrationInfoMap
));
return
Collections
.
singletonList
(
this
.
save
(
submitType
,
jgRegistrationInfoMap
));
...
...
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/JgUseRegistrationServiceImpl.java
View file @
b3311585
...
@@ -157,6 +157,7 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
...
@@ -157,6 +157,7 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
private
static
final
Logger
logger
=
LogManager
.
getLogger
(
JgUseRegistrationServiceImpl
.
class
);
private
static
final
Logger
logger
=
LogManager
.
getLogger
(
JgUseRegistrationServiceImpl
.
class
);
private
static
final
String
DEFINITION_KEY
=
"useRegistration"
;
private
static
final
String
DEFINITION_KEY
=
"useRegistration"
;
private
static
final
String
JIAN_CHA_ROLE_ID
=
"1864242478501093377"
;
private
static
final
DateTimeFormatter
formatter
=
DateTimeFormatter
.
ofPattern
(
"yyyy-MM-dd"
);;
private
static
final
DateTimeFormatter
formatter
=
DateTimeFormatter
.
ofPattern
(
"yyyy-MM-dd"
);;
private
static
final
int
BATCH_SIZE
=
1000
;
private
static
final
int
BATCH_SIZE
=
1000
;
private
final
List
<
String
>
NOT_FLOWING_STATE
=
Arrays
.
asList
(
"使用单位待提交"
,
"一级受理已驳回"
,
"使用单位已撤回"
,
"已作废"
);
private
final
List
<
String
>
NOT_FLOWING_STATE
=
Arrays
.
asList
(
"使用单位待提交"
,
"一级受理已驳回"
,
"使用单位已撤回"
,
"已作废"
);
...
@@ -2232,6 +2233,20 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
...
@@ -2232,6 +2233,20 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
//通过
//通过
//一级通过,且是特殊登记,需要监察,approvalStatus=2
//一级通过,且是特殊登记,需要监察,approvalStatus=2
if
(
"2"
.
equals
(
jgUseRegistration
.
getRegType
())
&&
(
WorkFlowStatusEnum
.
USE_RECEIVE
.
getPass
().
equals
(
jgUseRegistration
.
getStatus
())
||
WorkFlowStatusEnum
.
USE_RECEIVE
.
getReject
().
equals
(
jgUseRegistration
.
getStatus
())))
{
if
(
"2"
.
equals
(
jgUseRegistration
.
getRegType
())
&&
(
WorkFlowStatusEnum
.
USE_RECEIVE
.
getPass
().
equals
(
jgUseRegistration
.
getStatus
())
||
WorkFlowStatusEnum
.
USE_RECEIVE
.
getReject
().
equals
(
jgUseRegistration
.
getStatus
())))
{
List
<
AgencyUserModel
>
taskExecutor
=
Privilege
.
agencyUserClient
.
queryByRoleId
(
String
.
join
(
","
,
JIAN_CHA_ROLE_ID
),
null
,
true
,
true
,
""
,
buildOrgCodePrefixes
(
orgCode
)).
getResult
();
if
(!
ValidationUtil
.
isEmpty
(
taskExecutor
))
{
String
companyCodes
=
taskExecutor
.
stream
()
.
map
(
AgencyUserModel:
:
getCompanys
)
.
filter
(
Objects:
:
nonNull
)
.
filter
(
list
->
!
list
.
isEmpty
())
.
map
(
list
->
list
.
get
(
0
).
getCompanyCode
())
.
filter
(
Objects:
:
nonNull
)
.
distinct
()
.
collect
(
Collectors
.
joining
(
","
));
dto
.
setNextExecuteUserCompanyCode
(
companyCodes
);
}
dto
.
setResultCode
(
"approvalStatus"
);
dto
.
setResultCode
(
"approvalStatus"
);
map
.
put
(
"approvalStatus"
,
"9"
);
map
.
put
(
"approvalStatus"
,
"9"
);
map
.
put
(
"nextExecuteUserOrgCode"
,
orgCode
);
map
.
put
(
"nextExecuteUserOrgCode"
,
orgCode
);
...
@@ -2266,6 +2281,15 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
...
@@ -2266,6 +2281,15 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
}
}
}
}
public
static
String
buildOrgCodePrefixes
(
String
orgCode
)
{
if
(
orgCode
==
null
||
orgCode
.
isEmpty
())
return
""
;
String
[]
parts
=
orgCode
.
split
(
"\\*"
);
List
<
String
>
prefixes
=
new
ArrayList
<>();
if
(
parts
.
length
>=
3
)
prefixes
.
add
(
String
.
join
(
"*"
,
Arrays
.
copyOfRange
(
parts
,
0
,
3
)));
if
(
parts
.
length
>=
2
)
prefixes
.
add
(
String
.
join
(
"*"
,
Arrays
.
copyOfRange
(
parts
,
0
,
2
)));
return
String
.
join
(
","
,
prefixes
);
}
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
@GlobalTransactional
(
rollbackFor
=
Exception
.
class
,
timeoutMills
=
6000000
)
@GlobalTransactional
(
rollbackFor
=
Exception
.
class
,
timeoutMills
=
6000000
)
public
void
withdraw
(
String
instanceId
,
String
nextTaskId
,
String
manageType
)
{
public
void
withdraw
(
String
instanceId
,
String
nextTaskId
,
String
manageType
)
{
...
...
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