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 2a1195f9
authored
May 30, 2021
by
zhouhaibao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]试驾服务
1 parent
ffc321f3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
src/main/resources/mapper/ApprovalMapper.xml
src/main/resources/mapper/VehicleDocMapper.xml
src/main/resources/mapper/ApprovalMapper.xml
View file @
2a1195f
...
@@ -93,6 +93,7 @@
...
@@ -93,6 +93,7 @@
t1.del_flag = 0
t1.del_flag = 0
and t5.status in (1,2,3)
and t5.status in (1,2,3)
and t5.biz_type=2
and t5.biz_type=2
and t5.id in(select max(id) from t_approval group by biz_id)
<if
test=
"search.approvalStatus !=null and search.approvalStatus != ''"
>
<if
test=
"search.approvalStatus !=null and search.approvalStatus != ''"
>
and t5.status=#{search.approvalStatus}
and t5.status=#{search.approvalStatus}
</if>
</if>
...
...
src/main/resources/mapper/VehicleDocMapper.xml
View file @
2a1195f
...
@@ -53,7 +53,8 @@
...
@@ -53,7 +53,8 @@
t5.status as status,
t5.status as status,
(select dict_label from t_dict_data where dict_value=t5.status and dict_type = 'approval_status') AS approvalStatus,
(select dict_label from t_dict_data where dict_value=t5.status and dict_type = 'approval_status') AS approvalStatus,
max(t5.created_date) as created_date,
max(t5.created_date) as created_date,
t5.id
t5.id,
t5.remark as remark
FROM
FROM
t_vehicle t1
t_vehicle t1
LEFT JOIN (select * from (select * from t_approval ORDER BY id desc)t group by t.biz_id,t.biz_type) t5 ON (t1.ID = t5.biz_id AND t5.biz_type=2)
LEFT JOIN (select * from (select * from t_approval ORDER BY id desc)t group by t.biz_id,t.biz_type) t5 ON (t1.ID = t5.biz_id AND t5.biz_type=2)
...
...
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