Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
byit-myth-job
Overview
Overview
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
liyuan
byit-myth-job
Commits
cf9123a9
Commit
cf9123a9
authored
Dec 15, 2020
by
huangfusuper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
参数包装
parent
4f7e9481
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
ApiFlowServiceImpl.java
...c/main/java/com/byit/service/impl/ApiFlowServiceImpl.java
+15
-2
No files found.
byit-myth-admin/src/main/java/com/byit/service/impl/ApiFlowServiceImpl.java
View file @
cf9123a9
...
@@ -1421,10 +1421,23 @@ public class ApiFlowServiceImpl implements ApiFlowService {
...
@@ -1421,10 +1421,23 @@ public class ApiFlowServiceImpl implements ApiFlowService {
if
(
placeholder
==
null
){
if
(
placeholder
==
null
){
placeholder
=
new
HashMap
<>(
8
);
placeholder
=
new
HashMap
<>(
8
);
}
}
String
nowDateFormatPlaceholder
=
placeholder
.
get
(
PlaceholderEnum
.
NOW_DATE_PLACEHOLDER
.
getName
());
if
(
StringUtils
.
isBlank
(
nowDateFormatPlaceholder
))
{
nowDateFormatPlaceholder
=
"yyyyMMdd"
;
}
String
nowDateFormatParam
=
param
.
get
(
PlaceholderEnum
.
NOW_DATE_PLACEHOLDER
.
getName
());
if
(
StringUtils
.
isBlank
(
nowDateFormatPlaceholder
))
{
nowDateFormatPlaceholder
=
"yyyyMMdd"
;
}
param
.
put
(
PlaceholderEnum
.
DATE_PLACEHOLDER
.
getName
(),
repairTime
);
param
.
put
(
PlaceholderEnum
.
DATE_PLACEHOLDER
.
getName
(),
repairTime
);
param
.
put
(
PlaceholderEnum
.
NOW_DATE_PLACEHOLDER
.
getName
(),
repairTime
);
param
.
put
(
PlaceholderEnum
.
NOW_DATE_PLACEHOLDER
.
getName
(),
DateUtil
.
format
(
new
Date
(),
nowDateFormatParam
)
);
placeholder
.
put
(
PlaceholderEnum
.
DATE_PLACEHOLDER
.
getName
(),
repairTime
);
placeholder
.
put
(
PlaceholderEnum
.
DATE_PLACEHOLDER
.
getName
(),
repairTime
);
placeholder
.
put
(
PlaceholderEnum
.
NOW_DATE_PLACEHOLDER
.
getName
(),
repairTime
);
placeholder
.
put
(
PlaceholderEnum
.
NOW_DATE_PLACEHOLDER
.
getName
(),
DateUtil
.
format
(
new
Date
(),
nowDateFormatPlaceholder
)
);
scriptParamAndPlaceholderDto
.
setParam
(
param
);
scriptParamAndPlaceholderDto
.
setParam
(
param
);
scriptParamAndPlaceholderDto
.
setPlaceholder
(
placeholder
);
scriptParamAndPlaceholderDto
.
setPlaceholder
(
placeholder
);
...
...
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