Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-trialdrive-admin
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 2ffbfde8
authored
Dec 28, 2021
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优化设备首页统计展示
1 parent
951a3e26
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
src/main/java/cn/com/glsx/admin/modules/mapper/VehicleMapper.java
src/main/resources/mapper/VehicleMapper.xml
src/main/java/cn/com/glsx/admin/modules/mapper/VehicleMapper.java
View file @
2ffbfde
...
@@ -192,7 +192,7 @@ public interface VehicleMapper extends CommonBaseMapper<Vehicle> {
...
@@ -192,7 +192,7 @@ public interface VehicleMapper extends CommonBaseMapper<Vehicle> {
* @param period 日期类型
* @param period 日期类型
* @return
* @return
*/
*/
@DataPerm
(
showSql
=
true
)
@DataPerm
(
permTable
=
"temp"
,
showSql
=
true
)
List
<
ActiveDeviceVo
>
getActiveDeviceInfoWithAuth
(
@Param
(
"appendSql"
)
String
appendSql
,
@Param
(
"period"
)
Integer
period
);
List
<
ActiveDeviceVo
>
getActiveDeviceInfoWithAuth
(
@Param
(
"appendSql"
)
String
appendSql
,
@Param
(
"period"
)
Integer
period
);
/**
/**
...
...
src/main/resources/mapper/VehicleMapper.xml
View file @
2ffbfde
...
@@ -777,7 +777,8 @@
...
@@ -777,7 +777,8 @@
DATE_FORMAT(temp.created_date,'%H') as activeDate
DATE_FORMAT(temp.created_date,'%H') as activeDate
from (
from (
select tvd.id,
select tvd.id,
tvd.created_date
tvd.created_date,
tv.created_by
FROM t_vehicle tv
FROM t_vehicle tv
left join t_vehicle_device tvd on tvd.vehicle_id = tv.id
left join t_vehicle_device tvd on tvd.vehicle_id = tv.id
WHERE tvd.bind_status = 1 and tv.del_flag = 0 and tvd.del_flag = 0
WHERE tvd.bind_status = 1 and tv.del_flag = 0 and tvd.del_flag = 0
...
@@ -789,7 +790,8 @@
...
@@ -789,7 +790,8 @@
DATE_FORMAT(temp.created_date,'%Y-%m-%d') as activeDate
DATE_FORMAT(temp.created_date,'%Y-%m-%d') as activeDate
from (
from (
select tvd.id,
select tvd.id,
tvd.created_date
tvd.created_date,
tv.created_by
FROM t_vehicle tv
FROM t_vehicle tv
left join t_vehicle_device tvd on tvd.vehicle_id = tv.id
left join t_vehicle_device tvd on tvd.vehicle_id = tv.id
WHERE tvd.bind_status = 1 and tv.del_flag = 0 and tvd.del_flag = 0
WHERE tvd.bind_status = 1 and tv.del_flag = 0 and tvd.del_flag = 0
...
...
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