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
b9106f96
Commit
b9106f96
authored
Jan 12, 2024
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.修改更名
parent
ebbb2937
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
16 deletions
+9
-16
JgChangeRegistrationNameMapper.xml
.../main/resources/mapper/JgChangeRegistrationNameMapper.xml
+2
-1
CommonServiceImpl.java
...os/boot/module/jg/biz/service/impl/CommonServiceImpl.java
+6
-15
JgChangeRegistrationNameServiceImpl.java
...biz/service/impl/JgChangeRegistrationNameServiceImpl.java
+1
-0
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgChangeRegistrationNameMapper.xml
View file @
b9106f96
...
...
@@ -33,7 +33,8 @@
ur.use_unit_name as useUnitName,
ur.new_use_unit_name AS newUseUnitName,
ur.promoter,
ur.next_executor_ids as nextExecutorIds
ur.next_executor_ids as nextExecutorIds,
ur.next_execute_user_ids as nextExecuteUserIds
from tzs_jg_change_registration_name ur
<where>
and ur.is_delete = 0
...
...
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/CommonServiceImpl.java
View file @
b9106f96
...
...
@@ -693,22 +693,21 @@ public class CommonServiceImpl implements ICommonService {
if
(
collect
.
get
(
0
).
getFlowStatusLabel
().
equals
(
FlowStatusEnum
.
TO_BE_FINISHED
.
getName
())){
JSONObject
jsonObject
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
params
.
get
(
"model"
)));
String
urlParams
=
""
;
try
{
urlParams
=
"&"
+
toQueryParams
(
jsonObject
);
urlParams
=
"&"
+
toQueryParams
(
params
.
get
(
"model"
)
);
}
catch
(
UnsupportedEncodingException
e
)
{
e
.
printStackTrace
();
}
List
<
Map
>
urlList
=
JsonUtils
.
getResourceList
(
urlInfo
);
for
(
Map
map
:
urlList
)
{
if
(
map
.
get
(
"type"
).
equals
(
collect
.
get
(
0
).
getTaskType
())
&&
map
.
get
(
"pageType"
).
equals
(
"look"
))
{
urlParams
=
map
.
get
(
"url"
).
toString
().
replace
(
"{roleIds}"
,
jsonObject
.
getString
(
"nextExecuteUser"
))
+
urlParams
+
"&nextExecuteUserIds="
+
jsonObject
.
getString
(
"executeUserIds"
)
;
urlParams
=
map
.
get
(
"url"
).
toString
().
replace
(
"{roleIds}"
,
""
)
+
urlParams
+
"&nextExecuteUserIds="
;
break
;
}
}
collect
.
get
(
0
).
setRoutePath
(
urlParams
);
for
(
TaskV2Model
taskV2Model
:
resul
t
)
{
for
(
TaskV2Model
taskV2Model
:
collec
t
)
{
taskV2Model
.
setTaskStatusLabel
((
FlowStatusEnum
.
TO_BE_FINISHED
.
getName
()));
taskV2Model
.
setTaskStatus
(
FlowStatusEnum
.
TO_BE_FINISHED
.
getCode
());
taskV2Model
.
setFlowStatusLabel
((
FlowStatusEnum
.
TO_BE_FINISHED
.
getName
()));
...
...
@@ -762,31 +761,23 @@ public class CommonServiceImpl implements ICommonService {
collect
.
get
(
0
).
setTaskStatusLabel
(
params
.
get
(
"taskStatusLabel"
).
toString
());
collect
.
get
(
0
).
setEndUserId
(
exeUserId
);
collect
.
get
(
0
).
setEndDate
(
new
Date
());
// String[] roleIds = model.getRoutePath().split("roleIds=");
// String[] userIds = roleIds[1].split("&userId");
// String url = roleIds[0]+"roleIds="+"55555"+"&userId"+ userIds[1];
// String tarUrl = url.replaceFirst("&executeUserIds=", "");
// tarUrl+"&executeUserIds="
// model.setRoutePath( roleIds[0]+"roleIds="+"55555"+"&userId"+userIds[1]);
//当流程完成时将所有待办状态统一修改为已完成
if
(
collect
.
get
(
0
).
getFlowStatusLabel
().
equals
(
FlowStatusEnum
.
TO_BE_FINISHED
.
getName
())){
JSONObject
jsonObject
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
params
.
get
(
"model"
)));
String
urlParams
=
""
;
try
{
urlParams
=
"&"
+
toQueryParams
(
jsonObject
);
urlParams
=
"&"
+
toQueryParams
(
params
.
get
(
"model"
)
);
}
catch
(
UnsupportedEncodingException
e
)
{
e
.
printStackTrace
();
}
List
<
Map
>
urlList
=
JsonUtils
.
getResourceList
(
urlInfo
);
for
(
Map
map
:
urlList
)
{
if
(
map
.
get
(
"type"
).
equals
(
collect
.
get
(
0
).
getTaskType
())
&&
map
.
get
(
"pageType"
).
equals
(
"look"
))
{
urlParams
=
map
.
get
(
"url"
).
toString
().
replace
(
"{roleIds}"
,
jsonObject
.
getString
(
"nextExecuteUser"
))
+
urlParams
+
"&nextExecuteUserIds="
+
jsonObject
.
getString
(
"executeUserIds"
)
;
urlParams
=
map
.
get
(
"url"
).
toString
().
replace
(
"{roleIds}"
,
""
)
+
urlParams
+
"&nextExecuteUserIds="
;
break
;
}
}
collect
.
get
(
0
).
setRoutePath
(
urlParams
);
for
(
TaskV2Model
taskV2Model
:
resul
t
)
{
for
(
TaskV2Model
taskV2Model
:
collec
t
)
{
taskV2Model
.
setTaskStatusLabel
((
FlowStatusEnum
.
TO_BE_FINISHED
.
getName
()));
taskV2Model
.
setTaskStatus
(
FlowStatusEnum
.
TO_BE_FINISHED
.
getCode
());
taskV2Model
.
setFlowStatusLabel
((
FlowStatusEnum
.
TO_BE_FINISHED
.
getName
()));
...
...
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 @
b9106f96
...
...
@@ -499,6 +499,7 @@ public class JgChangeRegistrationNameServiceImpl extends BaseService<JgChangeReg
params
.
put
(
"taskStatusLabel"
,
flowStatusEnum
.
getName
());
params
.
put
(
"flowStatus"
,
this
.
getTaskStatusByName
(
jgChangeRegistrationName
.
getAuditStatus
()));
params
.
put
(
"flowStatusLabel"
,
jgChangeRegistrationName
.
getAuditStatus
());
params
.
put
(
"model"
,
jgChangeRegistrationName
);
return
commonService
.
updateTaskModelNew
(
params
);
}
...
...
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