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 63bd5e2e
authored
Dec 10, 2021
by
levphon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
添加车辆搜索
1 parent
21a7fdba
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
src/main/resources/mapper/ApprovalMapper.xml
src/main/resources/mapper/VehicleDocMapper.xml
src/main/resources/mapper/ApprovalMapper.xml
View file @
63bd5e2
...
@@ -38,6 +38,7 @@
...
@@ -38,6 +38,7 @@
#{userId}
#{userId}
</foreach>
</foreach>
</select>
</select>
<select
id=
"search"
resultType=
"cn.com.glsx.admin.modules.model.ApprovalDto"
>
<select
id=
"search"
resultType=
"cn.com.glsx.admin.modules.model.ApprovalDto"
>
select
select
app.id as approvalId,
app.id as approvalId,
...
@@ -105,13 +106,13 @@
...
@@ -105,13 +106,13 @@
and (t6.username like concat('%',#{search.keywords},'%')
and (t6.username like concat('%',#{search.keywords},'%')
or t6.account like concat('%',#{search.keywords},'%')
or t6.account like concat('%',#{search.keywords},'%')
or t7.fence_name like concat('%',#{search.keywords},'%')
or t7.fence_name like concat('%',#{search.keywords},'%')
or t1.vin like concat('%',#{search.keywords},'%')
)
)
</if>
</if>
GROUP BY
GROUP BY t5.biz_id
t5.biz_id
ORDER BY t5.created_date desc
ORDER BY t5.created_date desc
</select>
</select>
<select
id=
"searchFenceApp"
resultType=
"cn.com.glsx.admin.modules.model.FenceApproDto"
>
<select
id=
"searchFenceApp"
resultType=
"cn.com.glsx.admin.modules.model.FenceApproDto"
>
select
select
app.id as approvalId,
app.id as approvalId,
...
@@ -145,11 +146,10 @@
...
@@ -145,11 +146,10 @@
or tvd.fence_name like concat('%',#{search.keywords},'%')
or tvd.fence_name like concat('%',#{search.keywords},'%')
)
)
</if>
</if>
GROUP BY app.id
GROUP BY
app.id
ORDER BY app.created_date desc
ORDER BY app.created_date desc
</select>
</select>
<select
id=
"selectByTypeAndId"
resultMap=
"BaseResultMap"
<select
id=
"selectByTypeAndId"
resultMap=
"BaseResultMap"
parameterType=
"cn.com.glsx.admin.modules.entity.Approval"
>
parameterType=
"cn.com.glsx.admin.modules.entity.Approval"
>
select * from t_approval
select * from t_approval
...
...
src/main/resources/mapper/VehicleDocMapper.xml
View file @
63bd5e2
...
@@ -77,13 +77,13 @@
...
@@ -77,13 +77,13 @@
</if>
</if>
<if
test=
"search.keywords !=null and search.keywords != ''"
>
<if
test=
"search.keywords !=null and search.keywords != ''"
>
and (t6.username like concat('%',#{search.keywords},'%')
and (t6.username like concat('%',#{search.keywords},'%')
or t6.account like concat('%',#{search.keywords},'%')
or t6.account like concat('%',#{search.keywords},'%')
or t7.fence_name like concat('%',#{search.keywords},'%')
or t7.fence_name like concat('%',#{search.keywords},'%')
or t1.vin like concat('%',#{search.keywords},'%')
)
)
</if>
</if>
GROUP BY
GROUP BY t1.id
t1.id
order by t1.created_date desc
order by t1.created_date 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