Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
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
项目统一框架
amos-boot-biz
Commits
2f30e585
Commit
2f30e585
authored
May 12, 2023
by
lisong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加日志打印
parent
a5918e9b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
WlCarMileageServiceImpl.java
...oin/equipmanage/service/impl/WlCarMileageServiceImpl.java
+7
-3
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/WlCarMileageServiceImpl.java
View file @
2f30e585
...
...
@@ -16,8 +16,8 @@ import com.yeejoin.equipmanage.mapper.WlCarMileageMapper;
import
com.yeejoin.equipmanage.service.ICarService
;
import
com.yeejoin.equipmanage.service.IWlCarMileageService
;
import
org.apache.commons.lang3.ObjectUtils
;
import
org.
apache.ibatis.logging.Log
;
import
org.
apache.ibatis.logging.Log
Factory
;
import
org.
slf4j.Logger
;
import
org.
slf4j.Logger
Factory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.scheduling.annotation.Scheduled
;
...
...
@@ -36,6 +36,7 @@ import java.security.NoSuchAlgorithmException;
import
java.text.DateFormat
;
import
java.text.ParseException
;
import
java.text.SimpleDateFormat
;
import
java.time.LocalDateTime
;
import
java.util.*
;
/**
...
...
@@ -57,7 +58,7 @@ public class WlCarMileageServiceImpl extends ServiceImpl<WlCarMileageMapper, WlC
@Value
(
"${mileage.parameter}"
)
private
Double
mileageParameter
;
pr
otected
Log
log
=
LogFactory
.
getLog
(
WlCarMileageServiceImp
l
.
class
);
pr
ivate
static
final
Logger
log
=
LoggerFactory
.
getLogger
(
HttpUti
l
.
class
);
private
final
String
GUIDE_KEY
=
"813684495d9a3981dd2c7694916fe404"
;
...
...
@@ -278,7 +279,9 @@ public class WlCarMileageServiceImpl extends ServiceImpl<WlCarMileageMapper, WlC
@Override
@Scheduled
(
cron
=
"${mileage.segmentation.cron}"
)
public
void
mileageSegmentation
()
{
log
.
info
(
"轨迹切分定时任务开始执行时间.............{}"
,
new
Date
());
List
<
WlCarMileage
>
list
=
this
.
baseMapper
.
list
();
log
.
info
(
"需要切分数据, {}"
,
list
);
list
.
forEach
(
item
->
{
Calendar
calendar
=
Calendar
.
getInstance
();
calendar
.
setTime
(
item
.
getDate
());
...
...
@@ -362,6 +365,7 @@ public class WlCarMileageServiceImpl extends ServiceImpl<WlCarMileageMapper, WlC
}
});
log
.
info
(
"轨迹切分任务执行完成.............."
);
}
...
...
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