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 42a09e81
authored
Sep 03, 2021
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优化获取调频详情接口
1 parent
70a86e0e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
src/main/resources/mapper/DeviceFreqMapper.xml
src/main/resources/mapper/DeviceFreqMapper.xml
View file @
42a09e8
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
SELECT tdf.battery_level AS batteryLevel,
SELECT tdf.battery_level AS batteryLevel,
LEFT(tdf.created_date, 19) AS createTime,
LEFT(tdf.created_date, 19) AS createTime,
tdf.freq_type AS freqType,
tdf.freq_type AS freqType,
LEFT(
d
v.created_date,19) AS activeTime,
LEFT(
t
v.created_date,19) AS activeTime,
tdf.channel AS channel,
tdf.channel AS channel,
tu.username AS operation,
tu.username AS operation,
tdf.catching_timer AS catchingTimer,
tdf.catching_timer AS catchingTimer,
...
@@ -36,14 +36,14 @@
...
@@ -36,14 +36,14 @@
TIMESTAMPDIFF(MINUTE, tdf.created_date, tdf.updated_date) AS diffMinuteTime,
TIMESTAMPDIFF(MINUTE, tdf.created_date, tdf.updated_date) AS diffMinuteTime,
TIMESTAMPDIFF(DAY, tdf.created_date, tdf.updated_date) AS diffDayTime,
TIMESTAMPDIFF(DAY, tdf.created_date, tdf.updated_date) AS diffDayTime,
tdf.sn AS sn,
tdf.sn AS sn,
d
v.vin AS standno,
t
v.vin AS standno,
d
v.owner_name AS `name`,
t
v.owner_name AS `name`,
tdf.`status` AS freqStatus
tdf.`status` AS freqStatus
FROM t_device_freq tdf
FROM t_device_freq tdf
LEFT JOIN t_vehicle tv ON tdf.vehicle_id = tv.id
LEFT JOIN t_vehicle tv ON tdf.vehicle_id = tv.id
LEFT JOIN t_user tu ON
d
u.id = tv.created_by
LEFT JOIN t_user tu ON
t
u.id = tv.created_by
WHERE tdf.sn = #{sn,jdbcType=VARCHAR}
WHERE tdf.sn = #{sn,jdbcType=VARCHAR}
AND tdf.status = 2
AND tdf.status = 2
ORDER BY tdf.create
_tim
e DESC
ORDER BY tdf.create
d_dat
e DESC
</select>
</select>
</mapper>
</mapper>
\ No newline at end of file
\ No newline at end of file
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