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
39ae1e3f
Commit
39ae1e3f
authored
Mar 16, 2020
by
guominglei@byitgroup.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改引用的注解
parent
c585aa1f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
ApiFlowServiceImpl.java
...c/main/java/com/byit/service/impl/ApiFlowServiceImpl.java
+1
-1
DateUtil.java
...ore-common/src/main/java/com/byit/job/utils/DateUtil.java
+5
-5
ScriptAddFlow.java
...demo-client/src/main/java/com/byit/job/ScriptAddFlow.java
+1
-1
No files found.
byit-myth-admin/src/main/java/com/byit/service/impl/ApiFlowServiceImpl.java
View file @
39ae1e3f
...
@@ -682,7 +682,7 @@ public class ApiFlowServiceImpl implements ApiFlowService {
...
@@ -682,7 +682,7 @@ public class ApiFlowServiceImpl implements ApiFlowService {
public
RunRecordingVo
loadScheduleLog
(
String
param
)
{
public
RunRecordingVo
loadScheduleLog
(
String
param
)
{
ValidationUtil
.
dataNotBank
(
param
,
"请求参数不允许为空!"
);
ValidationUtil
.
dataNotBank
(
param
,
"请求参数不允许为空!"
);
JSONObject
jsonObject
=
JSON
.
parseObject
(
param
);
JSONObject
jsonObject
=
JSON
.
parseObject
(
param
);
String
runId
=
jsonObject
.
getString
(
"runId
0
"
);
String
runId
=
jsonObject
.
getString
(
"runId"
);
ValidationUtil
.
dataNotBank
(
runId
,
"运行实例不允许为空!"
);
ValidationUtil
.
dataNotBank
(
runId
,
"运行实例不允许为空!"
);
String
flowName
=
jsonObject
.
getString
(
"flowName"
);
String
flowName
=
jsonObject
.
getString
(
"flowName"
);
ValidationUtil
.
dataNotBank
(
flowName
,
"工作流名称不允许为空!"
);
ValidationUtil
.
dataNotBank
(
flowName
,
"工作流名称不允许为空!"
);
...
...
byit-myth-core/myth-core-common/src/main/java/com/byit/job/utils/DateUtil.java
View file @
39ae1e3f
package
com
.
byit
.
job
.
utils
;
package
com
.
byit
.
job
.
utils
;
import
com.
sun.istack.internal.Nullable
;
import
com.
byit.annotation.annotationselector.NotNull
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
java.time.*
;
import
java.time.*
;
...
@@ -21,7 +21,7 @@ public class DateUtil {
...
@@ -21,7 +21,7 @@ public class DateUtil {
* @param formatStr 转换格式
* @param formatStr 转换格式
* @return 标准的时间格式
* @return 标准的时间格式
*/
*/
public
static
String
dateFormat
(
Date
date
,
@N
ullable
String
formatStr
){
public
static
String
dateFormat
(
Date
date
,
@N
otNull
String
formatStr
){
LocalDateTime
localDateTime
=
dateToLocalDateTime
(
date
);
LocalDateTime
localDateTime
=
dateToLocalDateTime
(
date
);
String
dateFormat
;
String
dateFormat
;
if
(
StringUtils
.
isNotBlank
(
formatStr
)){
if
(
StringUtils
.
isNotBlank
(
formatStr
)){
...
@@ -193,7 +193,7 @@ public class DateUtil {
...
@@ -193,7 +193,7 @@ public class DateUtil {
}
}
public
static
void
main
(
String
[]
args
)
{
//
public static void main(String[] args) {
System
.
out
.
println
(
DateUtil
.
dateLessDayStr
(
new
Date
(),
"yyyyMMddHHmmss"
,
1
));
//
System.out.println(DateUtil.dateLessDayStr(new Date(), "yyyyMMddHHmmss", 1));
}
//
}
}
}
demo-client/byit-demo-client/src/main/java/com/byit/job/ScriptAddFlow.java
View file @
39ae1e3f
...
@@ -77,7 +77,7 @@ public class ScriptAddFlow {
...
@@ -77,7 +77,7 @@ public class ScriptAddFlow {
scriptParamAndPlaceholderDto
.
setPlaceholder
(
map
);
scriptParamAndPlaceholderDto
.
setPlaceholder
(
map
);
pluginNode2
.
setScriptParam
(
scriptParamAndPlaceholderDto
);
pluginNode2
.
setScriptParam
(
scriptParamAndPlaceholderDto
);
pluginNode2
.
setRunCommand
(
"python"
);
pluginNode2
.
setRunCommand
(
"python
${biz_file}
"
);
pluginNodeConfig2
.
setFailedRetryCount
(
2
);
pluginNodeConfig2
.
setFailedRetryCount
(
2
);
pluginNodeConfig2
.
setFailedRetryInterval
(
TimeUnit
.
MINUTES
.
toSeconds
(
2
));
pluginNodeConfig2
.
setFailedRetryInterval
(
TimeUnit
.
MINUTES
.
toSeconds
(
2
));
pluginNodeConfig2
.
setNodeCron
(
"0 0/7 * * * ? *"
);
pluginNodeConfig2
.
setNodeCron
(
"0 0/7 * * * ? *"
);
...
...
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