|
@@ -8,7 +8,10 @@
|
|
|
info.*,
|
|
|
sysinfo.android_version, sysinfo.device_sn,
|
|
|
status.net_state, status.net_type, status.net_dbm, status.device_state,
|
|
|
- mr.name as mercName
|
|
|
+ mr.name as merc_name,
|
|
|
+ mp.place_name,
|
|
|
+ ml.line_name as place_line_name,
|
|
|
+ sr.name as district_name
|
|
|
<if test="queryPage.lon != null and queryPage.lon != ''">
|
|
|
,ROUND(
|
|
|
6378.138 * 2 * ASIN(
|
|
@@ -36,8 +39,14 @@
|
|
|
join device_sysinfo sysinfo on(info.device_id = sysinfo.device_id)
|
|
|
join device_status status on(info.device_id = status.device_id)
|
|
|
left join merc mr on(info.merc_id = mr.id)
|
|
|
+ left join merc_place mp on(info.place_id = mp.id)
|
|
|
+ left join merc_line ml on(info.place_line_id = ml.id)
|
|
|
+ left join sys_region sr on(info.district_id = sr.id)
|
|
|
where
|
|
|
- info.show_status = #{queryPage.showStatus}
|
|
|
+ 1 = 1
|
|
|
+ <if test="queryPage.showStatus != null and queryPage.showStatus != ''">
|
|
|
+ and info.show_status = #{queryPage.showStatus}
|
|
|
+ </if>
|
|
|
<if test="queryPage.no != null and queryPage.no != ''">
|
|
|
and (
|
|
|
LOCATE(#{queryPage.no}, info.device_id) > 0 or LOCATE(#{queryPage.no}, info.merc_device_code) > 0 or LOCATE(#{queryPage.no}, sysinfo.device_sn) > 0
|