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 4fddb635
authored
Aug 30, 2021
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优化SQL查询接口
1 parent
a1fbdc09
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
src/main/resources/mapper/ElectricInStoreDriveMapper.xml
src/main/resources/mapper/TrialDriveReportMapper.xml
src/main/resources/mapper/ElectricInStoreDriveMapper.xml
View file @
4fddb63
...
...
@@ -37,9 +37,10 @@
from t_vehicle tv
inner join t_electric_fence_sns tefs on tv.vin = tefs.vin
inner join t_electric_fence tef on tef.id = tefs.fence_id
inner join t_trial_drive_vehicle ttdv on ttdv.vehicle_id = tv.id
left join t_user tu on tu.id = tef.created_by
where tef
s.fence_id = tef.id
and t
ef.biz_fence_type = 12 and tu
.del_flag = 0
where tef
.biz_fence_type = 12 and tu.del_flag = 0
and t
tdv
.del_flag = 0
<if
test=
"keywords != null and keywords!='' "
>
and (
tu.account like '%${keywords}%'
...
...
src/main/resources/mapper/TrialDriveReportMapper.xml
View file @
4fddb63
...
...
@@ -35,10 +35,11 @@
from t_vehicle tv
inner join t_electric_fence_sns tefs on tv.vin = tefs.vin
inner join t_electric_fence tef on tef.id = tefs.fence_id
inner join t_trial_drive_vehicle ttdv on ttdv.vehicle_id = tv.id
left join t_user tu on tu.id = tef.created_by
where tefs.fence_id = tef.id
and tef.del_flag = 0
where tef.del_flag = 0
and tef.biz_fence_type = 12
and ttdv.del_flag = 0
<if
test=
"keywords != null and keywords!='' "
>
and (
tu.account like '%${keywords}%'
...
...
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