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
8e6c8380
Commit
8e6c8380
authored
Aug 01, 2019
by
libin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
车型
parent
300d89fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
VehicleJobHandler.java
...m/xxfc/platform/vehicle/jobhandler/VehicleJobHandler.java
+2
-0
No files found.
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/jobhandler/VehicleJobHandler.java
View file @
8e6c8380
...
@@ -41,6 +41,7 @@ public class VehicleJobHandler extends IJobHandler {
...
@@ -41,6 +41,7 @@ public class VehicleJobHandler extends IJobHandler {
int
month
=
nowMonth
+
VehicleBookInfoBiz
.
MONTH_INTERVAL
>
12
?
(
VehicleBookInfoBiz
.
MONTH_INTERVAL
+
nowMonth
)
-
12
:
nowMonth
+
VehicleBookInfoBiz
.
MONTH_INTERVAL
;
int
month
=
nowMonth
+
VehicleBookInfoBiz
.
MONTH_INTERVAL
>
12
?
(
VehicleBookInfoBiz
.
MONTH_INTERVAL
+
nowMonth
)
-
12
:
nowMonth
+
VehicleBookInfoBiz
.
MONTH_INTERVAL
;
year
=
month
>
nowMonth
?
year
:
year
+
1
;
year
=
month
>
nowMonth
?
year
:
year
+
1
;
String
yearAndMonth
=
String
.
format
(
"%d-%d"
,
year
,
month
);
String
yearAndMonth
=
String
.
format
(
"%d-%d"
,
year
,
month
);
XxlJobLogger
.
log
(
"----查询到的车型ids:【{}】"
,
existVehicleIds
);
if
(
CollectionUtils
.
isNotEmpty
(
existVehicleIds
))
{
if
(
CollectionUtils
.
isNotEmpty
(
existVehicleIds
))
{
List
<
VehicleBookInfo
>
bookInfos
=
existVehicleIds
.
stream
().
map
(
vehicleId
->
{
List
<
VehicleBookInfo
>
bookInfos
=
existVehicleIds
.
stream
().
map
(
vehicleId
->
{
VehicleBookInfo
vehicleBookInfo
=
new
VehicleBookInfo
();
VehicleBookInfo
vehicleBookInfo
=
new
VehicleBookInfo
();
...
@@ -49,6 +50,7 @@ public class VehicleJobHandler extends IJobHandler {
...
@@ -49,6 +50,7 @@ public class VehicleJobHandler extends IJobHandler {
return
vehicleBookInfo
;
return
vehicleBookInfo
;
}).
collect
(
Collectors
.
toList
());
}).
collect
(
Collectors
.
toList
());
vehicleBookInfoBiz
.
InsertBatch
(
bookInfos
);
vehicleBookInfoBiz
.
InsertBatch
(
bookInfos
);
XxlJobLogger
.
log
(
"----插入车型对象:【{}】"
,
bookInfos
);
}
}
ReturnT
returnT
=
new
ReturnT
();
ReturnT
returnT
=
new
ReturnT
();
returnT
.
setCode
(
100
);
returnT
.
setCode
(
100
);
...
...
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