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
d8e1e552
Commit
d8e1e552
authored
Jul 11, 2024
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.url参数去掉无用字段
parent
c03b4661
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
2 deletions
+19
-2
TaskModelServiceImpl.java
...os/boot/module/jyjc/biz/service/TaskModelServiceImpl.java
+16
-1
JyjcInspectionApplicationServiceImpl.java
...iz/service/impl/JyjcInspectionApplicationServiceImpl.java
+3
-1
No files found.
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-biz/src/main/java/com/yeejoin/amos/boot/module/jyjc/biz/service/TaskModelServiceImpl.java
View file @
d8e1e552
...
...
@@ -235,7 +235,7 @@ public class TaskModelServiceImpl {
* @param obj 自己的实体:taskType为BusinessTypeEnum code;nextExecuteUser
*/
public
void
rollbackTask
(
String
id
,
JSONObject
obj
)
{
this
.
removeNoUsedKey
(
obj
);
List
<
TaskV2Model
>
result
=
Systemctl
.
taskV2Client
.
selectListByRelationId
(
id
).
getResult
();
List
<
TaskV2Model
>
list
=
result
.
stream
().
sorted
((
r1
,
r2
)
->
r2
.
getSequenceNbr
().
compareTo
(
r1
.
getSequenceNbr
())).
collect
(
Collectors
.
toList
());
TaskV2Model
model
=
list
.
get
(
0
);
...
...
@@ -287,6 +287,21 @@ public class TaskModelServiceImpl {
}
}
public
void
removeNoUsedKey
(
JSONObject
obj
)
{
obj
.
remove
(
"applicationRemark"
);
obj
.
remove
(
"planData"
);
obj
.
remove
(
"inspectionChargePerson"
);
obj
.
remove
(
"inspectionChargePersonName"
);
obj
.
remove
(
"inspectionChargePhone"
);
obj
.
remove
(
"recUserId"
);
obj
.
remove
(
"recDate"
);
obj
.
remove
(
"applicationDate"
);
obj
.
remove
(
"acceptDate"
);
obj
.
remove
(
"superviseOrgName"
);
obj
.
remove
(
"dockingUnitCode"
);
obj
.
remove
(
"address"
);
}
private
static
String
toQueryParams2
(
JSONObject
jsonObject
)
{
StringBuilder
sb
=
new
StringBuilder
();
Set
<
String
>
keys
=
jsonObject
.
keySet
();
...
...
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-biz/src/main/java/com/yeejoin/amos/boot/module/jyjc/biz/service/impl/JyjcInspectionApplicationServiceImpl.java
View file @
d8e1e552
...
...
@@ -1106,7 +1106,9 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
params
.
put
(
"taskStatusLabel"
,
model
.
getStatusName
());
params
.
put
(
"flowStatus"
,
model
.
getStatus
());
params
.
put
(
"flowStatusLabel"
,
model
.
getStatusName
());
params
.
put
(
"model"
,
model
);
JSONObject
jsonModel
=
(
JSONObject
)
JSONObject
.
toJSON
(
model
);
taskModelService
.
removeNoUsedKey
(
jsonModel
);
params
.
put
(
"model"
,
jsonModel
);
return
taskModelService
.
updateTaskModel
(
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