Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-miniappserver
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 0e45da87
authored
Aug 09, 2022
by
levphon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
V1.9.0 bug修复
1 parent
fdda79f0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
src/main/java/cn/com/glsx/app/modules/service/VehicleMonitorService.java
src/main/java/cn/com/glsx/app/modules/service/VehicleService.java
src/main/resources/mapper/VehicleMapper.xml
src/main/java/cn/com/glsx/app/modules/service/VehicleMonitorService.java
View file @
0e45da8
...
@@ -47,7 +47,7 @@ import java.util.Optional;
...
@@ -47,7 +47,7 @@ import java.util.Optional;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
@Service
@Service
public
class
VehicleMonitorService
{
public
class
VehicleMonitorService
extends
AbstractCommonService
{
@Resource
@Resource
private
VehicleMapper
vehicleMapper
;
private
VehicleMapper
vehicleMapper
;
...
@@ -81,7 +81,7 @@ public class VehicleMonitorService {
...
@@ -81,7 +81,7 @@ public class VehicleMonitorService {
List
<
DeviceLocationDTO
>
dataList
=
listR
.
getDataList
(
new
TypeToken
<
List
<
DeviceLocationDTO
>>()
{
List
<
DeviceLocationDTO
>
dataList
=
listR
.
getDataList
(
new
TypeToken
<
List
<
DeviceLocationDTO
>>()
{
}.
getType
());
}.
getType
());
if
(
CollectionUtils
.
isEmpty
(
dataList
))
{
if
(
CollectionUtils
.
isEmpty
(
dataList
))
{
return
Lists
.
newArrayList
();
return
Lists
.
newArrayList
();
}
}
...
...
src/main/java/cn/com/glsx/app/modules/service/VehicleService.java
View file @
0e45da8
...
@@ -28,7 +28,7 @@ import java.util.Map;
...
@@ -28,7 +28,7 @@ import java.util.Map;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
@Service
@Service
public
class
VehicleService
{
public
class
VehicleService
extends
AbstractCommonService
{
@Resource
@Resource
private
VehicleMapper
vehicleMapper
;
private
VehicleMapper
vehicleMapper
;
...
...
src/main/resources/mapper/VehicleMapper.xml
View file @
0e45da8
...
@@ -64,8 +64,8 @@
...
@@ -64,8 +64,8 @@
tv.owner_name ownerName,
tv.owner_name ownerName,
tv.license_plate licensePlate,
tv.license_plate licensePlate,
tw.partner_order_no workOrderNo,
tw.partner_order_no workOrderNo,
group_concat(t
vd.sn
) as sns,
group_concat(t
d.sn order by td.source desc
) as sns,
group_concat(td.source) as sources
group_concat(td.source
order by td.source desc
) as sources
from t_vehicle tv
from t_vehicle tv
left join t_vehicle_device tvd on tv.id = tvd.vehicle_id
left join t_vehicle_device tvd on tv.id = tvd.vehicle_id
left join t_device td on td.sn = tvd.sn
left join t_device td on td.sn = tvd.sn
...
@@ -164,8 +164,8 @@
...
@@ -164,8 +164,8 @@
</select>
</select>
<select
id=
"getAllTrackAlarmDataByAuth"
resultType=
"cn.com.glsx.app.modules.model.view.TrackAlarmVO"
>
<select
id=
"getAllTrackAlarmDataByAuth"
resultType=
"cn.com.glsx.app.modules.model.view.TrackAlarmVO"
>
select tv.id as vehicleId,
select tv.id
as vehicleId,
tv.owner_name as ownerName,
tv.owner_name
as ownerName,
tv.vin,
tv.vin,
tvd.sn,
tvd.sn,
tv.license_plate as licensePlate
tv.license_plate as licensePlate
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment