Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
Project
Project
Details
Activity
Releases
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
youjj
cloud-platform
Commits
1b35b0f9
Commit
1b35b0f9
authored
Oct 10, 2019
by
jiaorz
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master-count-vehicle' into base-modify
parents
bff60675
3f5e85c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
VehicleCountRecordBiz.java
.../com/xxfc/platform/vehicle/biz/VehicleCountRecordBiz.java
+8
-1
No files found.
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/biz/VehicleCountRecordBiz.java
View file @
1b35b0f9
...
@@ -295,7 +295,7 @@ public class VehicleCountRecordBiz extends BaseBiz<VehicleCountRecordMapper, Veh
...
@@ -295,7 +295,7 @@ public class VehicleCountRecordBiz extends BaseBiz<VehicleCountRecordMapper, Veh
*
*
* @return
* @return
*/
*/
@Scheduled
(
cron
=
"0
*/5 *
* * *"
)
@Scheduled
(
cron
=
"0
0 */2
* * *"
)
public
void
add
()
{
public
void
add
()
{
Long
nowTime
=
getDayStart
();
Long
nowTime
=
getDayStart
();
Long
lastTime
=
nowTime
+
24
*
3600
*
1000
-
1
;
Long
lastTime
=
nowTime
+
24
*
3600
*
1000
-
1
;
...
@@ -323,6 +323,13 @@ public class VehicleCountRecordBiz extends BaseBiz<VehicleCountRecordMapper, Veh
...
@@ -323,6 +323,13 @@ public class VehicleCountRecordBiz extends BaseBiz<VehicleCountRecordMapper, Veh
vehicleCountRecord
.
setDepartureNum
(
vehicleDepartureList
.
size
());
vehicleCountRecord
.
setDepartureNum
(
vehicleDepartureList
.
size
());
}
}
Map
<
String
,
Object
>
param
=
new
HashMap
<>();
Map
<
String
,
Object
>
param
=
new
HashMap
<>();
SimpleDateFormat
simpleDateFormat1
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
try
{
startDate
=
simpleDateFormat1
.
format
(
startTime
);
endDate
=
simpleDateFormat1
.
format
(
endTime
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
param
.
put
(
"startTime"
,
DateTime
.
parse
(
startDate
,
DATE_TIME_FORMATTER
).
toDate
());
param
.
put
(
"startTime"
,
DateTime
.
parse
(
startDate
,
DATE_TIME_FORMATTER
).
toDate
());
param
.
put
(
"endTime"
,
DateTime
.
parse
(
endDate
,
DATE_TIME_FORMATTER
).
toDate
());
param
.
put
(
"endTime"
,
DateTime
.
parse
(
endDate
,
DATE_TIME_FORMATTER
).
toDate
());
//1代表出车 2代表还车
//1代表出车 2代表还车
...
...
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