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 399f516c
authored
Apr 26, 2022
by
levphon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
围栏设备使用vdid关联修改
1 parent
129963bc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
8 deletions
src/main/resources/mapper/ElectricFenceMapper.xml
src/main/resources/mapper/ElectricFenceMapper.xml
View file @
399f516
...
@@ -68,10 +68,12 @@
...
@@ -68,10 +68,12 @@
tef.created_by createdBy,
tef.created_by createdBy,
tu.username creator
tu.username creator
from t_electric_fence tef
from t_electric_fence tef
left join t_electric_fence_sns tefs on tefs.fence_id = tef.id and tefs.del_flag = 0
left join t_electric_fence_sns tefs on tefs.fence_id = tef.id
left join t_vehicle_device tvd on tvd.id = tefs.vd_id
left join t_vehicle tv on tv.id = tvd.vehicle_id
left join t_user tu on tu.id = tef.created_by
left join t_user tu on tu.id = tef.created_by
where tef.del_flag = 0
where tef.del_flag = 0
and tefs.del_flag = 0 and tvd.del_flag = 0
and tef.biz_fence_type
not in (12, 13
)
and tef.biz_fence_type
in (14
)
<if
test=
"beginDate != null and beginDate != '' and endDate != null and endDate != ''"
>
<if
test=
"beginDate != null and beginDate != '' and endDate != null and endDate != ''"
>
<choose>
<choose>
<when
test=
"timeType == 1"
>
<when
test=
"timeType == 1"
>
...
@@ -92,7 +94,9 @@
...
@@ -92,7 +94,9 @@
and (
and (
tef.fence_name like CONCAT('%',#{term},'%')
tef.fence_name like CONCAT('%',#{term},'%')
or
or
tefs.vin like CONCAT('%',#{term},'%')
tv.vin like CONCAT('%',#{term},'%')
or
tv.owner_name like CONCAT('%',#{term},'%')
or
or
tefs.sn like CONCAT('%',#{term},'%')
tefs.sn like CONCAT('%',#{term},'%')
)
)
...
@@ -118,10 +122,12 @@
...
@@ -118,10 +122,12 @@
tef.created_by createdBy,
tef.created_by createdBy,
tu.username creator
tu.username creator
from t_electric_fence tef
from t_electric_fence tef
left join t_electric_fence_sns tefs on tefs.fence_id = tef.id and tefs.del_flag = 0
left join t_electric_fence_sns tefs on tefs.fence_id = tef.id
left join t_vehicle_device tvd on tvd.id = tefs.vd_id
left join t_vehicle tv on tv.id = tvd.vehicle_id
left join t_user tu on tu.id = tef.created_by
left join t_user tu on tu.id = tef.created_by
where tef.del_flag = 0
where tef.del_flag = 0
and tefs.del_flag = 0 and tvd.del_flag = 0
and tef.biz_fence_type
not in (12, 13
)
and tef.biz_fence_type
in (14
)
<if
test=
"beginDate != null and beginDate != '' and endDate != null and endDate != ''"
>
<if
test=
"beginDate != null and beginDate != '' and endDate != null and endDate != ''"
>
<choose>
<choose>
<when
test=
"timeType == 1"
>
<when
test=
"timeType == 1"
>
...
@@ -142,7 +148,9 @@
...
@@ -142,7 +148,9 @@
and (
and (
tef.fence_name like CONCAT('%',#{term},'%')
tef.fence_name like CONCAT('%',#{term},'%')
or
or
tefs.vin like CONCAT('%',#{term},'%')
tv.vin like CONCAT('%',#{term},'%')
or
tv.owner_name like CONCAT('%',#{term},'%')
or
or
tefs.sn like CONCAT('%',#{term},'%')
tefs.sn like CONCAT('%',#{term},'%')
)
)
...
...
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