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 a5dfb3cb
authored
Dec 28, 2021
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优化设备首页统计展示
1 parent
1dc7bdf0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 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 @
a5dfb3c
...
@@ -201,7 +201,7 @@ public interface VehicleMapper extends CommonBaseMapper<Vehicle> {
...
@@ -201,7 +201,7 @@ public interface VehicleMapper extends CommonBaseMapper<Vehicle> {
* @param appendSql 拼接SQl
* @param appendSql 拼接SQl
* @return
* @return
*/
*/
@DataPerm
(
showSql
=
true
)
@DataPerm
(
permTable
=
"temp"
,
showSql
=
true
)
List
<
DeviceBindVo
>
getBindDeviceInfoWithAuth
(
@Param
(
"appendSql"
)
String
appendSql
);
List
<
DeviceBindVo
>
getBindDeviceInfoWithAuth
(
@Param
(
"appendSql"
)
String
appendSql
);
/**
/**
...
...
src/main/resources/mapper/VehicleMapper.xml
View file @
a5dfb3c
...
@@ -805,7 +805,8 @@
...
@@ -805,7 +805,8 @@
DATE_FORMAT(temp.created_date, '%Y-%m-%d') as bindDate
DATE_FORMAT(temp.created_date, '%Y-%m-%d') as bindDate
FROM (
FROM (
SELECT distinct tv.id,
SELECT distinct tv.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
WHERE tvd.bind_status = 1
...
...
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