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
93c08079
Commit
93c08079
authored
May 15, 2023
by
lisong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改车辆地图车牌号显示问题
parent
d3be9e28
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
6 deletions
+13
-6
EquipTypeImgAmountVO.java
...in/equipmanage/common/entity/vo/EquipTypeImgAmountVO.java
+3
-1
WlCarMileageMapper.java
...va/com/yeejoin/equipmanage/mapper/WlCarMileageMapper.java
+1
-1
WlCarMileageServiceImpl.java
...oin/equipmanage/service/impl/WlCarMileageServiceImpl.java
+7
-2
FireFightingSystemMapper.xml
...ip/src/main/resources/mapper/FireFightingSystemMapper.xml
+1
-1
WlCarMileageMapper.xml
...em-equip/src/main/resources/mapper/WlCarMileageMapper.xml
+1
-1
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-equip-api/src/main/java/com/yeejoin/equipmanage/common/entity/vo/EquipTypeImgAmountVO.java
View file @
93c08079
...
@@ -66,5 +66,7 @@ public class EquipTypeImgAmountVO {
...
@@ -66,5 +66,7 @@ public class EquipTypeImgAmountVO {
@ApiModelProperty
(
value
=
"物联设备实时状态"
)
@ApiModelProperty
(
value
=
"物联设备实时状态"
)
private
Double
equipStatus
;
private
Double
equipStatus
;
@ApiModelProperty
(
value
=
"车牌号"
)
private
String
carNum
;
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/mapper/WlCarMileageMapper.java
View file @
93c08079
...
@@ -19,6 +19,6 @@ public interface WlCarMileageMapper extends BaseMapper<WlCarMileage> {
...
@@ -19,6 +19,6 @@ public interface WlCarMileageMapper extends BaseMapper<WlCarMileage> {
Double
totalMileage
(
String
iotCode
);
Double
totalMileage
(
String
iotCode
);
List
<
WlCarMileage
>
list
();
List
<
WlCarMileage
>
list
(
@Param
(
"date"
)
String
date
);
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/WlCarMileageServiceImpl.java
View file @
93c08079
...
@@ -279,8 +279,13 @@ public class WlCarMileageServiceImpl extends ServiceImpl<WlCarMileageMapper, WlC
...
@@ -279,8 +279,13 @@ public class WlCarMileageServiceImpl extends ServiceImpl<WlCarMileageMapper, WlC
@Override
@Override
@Scheduled
(
cron
=
"${mileage.segmentation.cron}"
)
@Scheduled
(
cron
=
"${mileage.segmentation.cron}"
)
public
void
mileageSegmentation
()
{
public
void
mileageSegmentation
()
{
log
.
info
(
"轨迹切分定时任务开始执行时间.............{}"
,
new
Date
());
log
.
info
(
"轨迹切分定时任务开始执行时间.............{}"
,
LocalDateTime
.
now
());
List
<
WlCarMileage
>
list
=
this
.
baseMapper
.
list
();
Calendar
cal
=
Calendar
.
getInstance
();
cal
.
setTime
(
new
Date
());
cal
.
add
(
Calendar
.
DATE
,
-
1
);
String
nowDate
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
).
format
(
cal
.
getTime
());
log
.
info
(
"轨迹切分定时任务数据过滤时间.............{}"
,
nowDate
);
List
<
WlCarMileage
>
list
=
this
.
baseMapper
.
list
(
nowDate
);
log
.
info
(
"需要切分数据, {}"
,
list
);
log
.
info
(
"需要切分数据, {}"
,
list
);
list
.
forEach
(
item
->
{
list
.
forEach
(
item
->
{
Calendar
calendar
=
Calendar
.
getInstance
();
Calendar
calendar
=
Calendar
.
getInstance
();
...
...
amos-boot-system-equip/src/main/resources/mapper/FireFightingSystemMapper.xml
View file @
93c08079
...
@@ -1870,7 +1870,7 @@
...
@@ -1870,7 +1870,7 @@
wlai.`name` manufacturerName,
wlai.`name` manufacturerName,
wlc.car_num as code,
wlc.car_num as code,
wlc.iot_code as iotCode,
wlc.iot_code as iotCode,
wlc.car_num,
wlc.car_num
as carNum
,
CASE
CASE
wlc.car_state
wlc.car_state
WHEN '1' THEN
WHEN '1' THEN
...
...
amos-boot-system-equip/src/main/resources/mapper/WlCarMileageMapper.xml
View file @
93c08079
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
FROM
FROM
`wl_car_mileage` wcm
`wl_car_mileage` wcm
WHERE
WHERE
wcm.date =
DATE_SUB(CURDATE(), INTERVAL 1 DAY)
wcm.date =
#{date}
AND wcm.start_time IS NOT NULL
AND wcm.start_time IS NOT NULL
AND wcm.end_time IS NULL
AND wcm.end_time IS NULL
</select>
</select>
...
...
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