Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gf_back
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tianchao
gf_back
Commits
61bf9951
Commit
61bf9951
authored
Jun 15, 2023
by
tianchao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.增加训练按钮
parent
20d42486
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
C09-base/pps-core-base/src/main/java/pps/core/base/service/BaseDataService.java
.../src/main/java/pps/core/base/service/BaseDataService.java
+12
-7
No files found.
C09-base/pps-core-base/src/main/java/pps/core/base/service/BaseDataService.java
View file @
61bf9951
...
...
@@ -269,13 +269,18 @@ public class BaseDataService {
public
XServiceResult
trainBaseData
(
XContext
context
,
GetBaseDataInput
input
){
Date
beginTime
;
Date
endTime
;
if
(
input
.
getDataDate
().
contains
(
"@"
)){
String
[]
dataDates
=
input
.
getDataDate
().
split
(
"@"
);
beginTime
=
XDateUtils
.
getDayBeginTime
(
XDateUtils
.
parse
(
dataDates
[
0
]));
endTime
=
XDateUtils
.
getDayEndTime
(
XDateUtils
.
parse
(
dataDates
[
1
]));
}
else
{
beginTime
=
XDateUtils
.
getDayBeginTime
(
XDateUtils
.
parse
(
input
.
getDataDate
()));
endTime
=
XDateUtils
.
getDayEndTime
(
XDateUtils
.
parse
(
input
.
getDataDate
()));
if
(
XStringUtils
.
isEmpty
(
input
.
getDataDate
())){
beginTime
=
XDateUtils
.
getDayBeginTime
(
new
Date
());
endTime
=
XDateUtils
.
getDayEndTime
(
new
Date
());
}
else
{
if
(
input
.
getDataDate
().
contains
(
"@"
)){
String
[]
dataDates
=
input
.
getDataDate
().
split
(
"@"
);
beginTime
=
XDateUtils
.
getDayBeginTime
(
XDateUtils
.
parse
(
dataDates
[
0
]));
endTime
=
XDateUtils
.
getDayEndTime
(
XDateUtils
.
parse
(
dataDates
[
1
]));
}
else
{
beginTime
=
XDateUtils
.
getDayBeginTime
(
XDateUtils
.
parse
(
input
.
getDataDate
()));
endTime
=
XDateUtils
.
getDayEndTime
(
XDateUtils
.
parse
(
input
.
getDataDate
()));
}
}
CalcBaseDataInput
calcBaseDataInput
=
new
CalcBaseDataInput
(
""
,
input
.
getLineId
()
,
"train_val"
,
XDateUtils
.
getString
(
beginTime
)
,
XDateUtils
.
getString
(
endTime
));
doTrainData
(
context
,
calcBaseDataInput
);
...
...
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