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
1a03cf46
Commit
1a03cf46
authored
Oct 09, 2019
by
jiaorz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
车辆统计导出bug
parent
592209a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
VehicleCountRecordBiz.java
.../com/xxfc/platform/vehicle/biz/VehicleCountRecordBiz.java
+2
-3
No files found.
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/biz/VehicleCountRecordBiz.java
View file @
1a03cf46
...
@@ -225,7 +225,7 @@ public class VehicleCountRecordBiz extends BaseBiz<VehicleCountRecordMapper, Veh
...
@@ -225,7 +225,7 @@ public class VehicleCountRecordBiz extends BaseBiz<VehicleCountRecordMapper, Veh
*
*
* @return
* @return
*/
*/
@Scheduled
(
cron
=
"0 0 2 * *
?
"
)
@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
;
...
@@ -351,8 +351,7 @@ public class VehicleCountRecordBiz extends BaseBiz<VehicleCountRecordMapper, Veh
...
@@ -351,8 +351,7 @@ public class VehicleCountRecordBiz extends BaseBiz<VehicleCountRecordMapper, Veh
if
(
vehicleCountRecord
!=
null
)
{
if
(
vehicleCountRecord
!=
null
)
{
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"type"
,
vehicleCountRecord
.
getType
());
map
.
put
(
"type"
,
vehicleCountRecord
.
getType
());
map
.
put
(
"startTime"
,
getDayStart
(
vehicleCountRecord
.
getCountDate
().
getTime
()));
map
.
put
(
"startTime"
,
vehicleCountRecord
.
getCountDate
());
map
.
put
(
"endTime"
,
getDayStart
(
vehicleCountRecord
.
getCountDate
().
getTime
())
+
24
*
3600
*
1000
);
List
<
VehicleCountRecord
>
list
=
mapper
.
selectByTypeAndTime
(
map
);
List
<
VehicleCountRecord
>
list
=
mapper
.
selectByTypeAndTime
(
map
);
if
(
list
!=
null
&&
list
.
size
()
>
0
)
{
if
(
list
!=
null
&&
list
.
size
()
>
0
)
{
BeanUtil
.
copyProperties
(
vehicleCountRecord
,
list
.
get
(
0
),
CopyOptions
.
create
().
setIgnoreNullValue
(
true
).
setIgnoreError
(
true
));
BeanUtil
.
copyProperties
(
vehicleCountRecord
,
list
.
get
(
0
),
CopyOptions
.
create
().
setIgnoreNullValue
(
true
).
setIgnoreError
(
true
));
...
...
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