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 f925c7c5
authored
Feb 28, 2022
by
levphon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
工单列表根据设备号搜索工单
1 parent
cd6988ed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
src/main/resources/mapper/WorkOrderMapper.xml
src/main/resources/mapper/WorkOrderMapper.xml
View file @
f925c7c
...
...
@@ -96,11 +96,9 @@
tw.created_date createdDate
from t_workorder tw
left join t_workorder_vehicle twv on twv.workorder_id = tw.id
left join (
select tv.id,tv.workorder_id,tv.vin,tv.owner_name,group_concat(tvd.sn) sns from t_vehicle tv,t_vehicle_device tvd
where tv.id = tvd.vehicle_id and tv.del_flag = 0 and tvd.del_flag = 0 and tvd.bind_status = 0
group by tv.id
) tv on tv.workorder_id = tw.id
left join t_workorder_vehicle_device twvd on twvd.workorder_id = tw.id and twvd.del_flag = 0
left join t_vehicle tv on tv.workorder_id = tw.id and tv.del_flag = 0
left join t_vehicle_device tvd on tvd.vehicle_id = tv.id and tv.del_flag = 0 and tvd.bind_status = 1
left join t_user tu on tu.id = tw.created_by
left join t_department td on td.id = tu.department_id
left join t_tenant tt on tt.id = tu.tenant_id
...
...
@@ -133,10 +131,12 @@
or tw.partner_order_no like '%${term}%'
or twv.lessee_name like '%${term}%'
or twv.vin like '%${term}%'
or tv.sns like '%${term}%'
or twvd.sn like '%${term}%'
or tvd.sn like '%${term}%'
)
</if>
order by tw.created_date desc
group by tw.id
order by tw.id desc
</select>
<select
id=
"export"
resultType=
"cn.com.glsx.admin.modules.model.export.WorkOrderExport"
>
...
...
@@ -158,11 +158,9 @@
tw.created_date createdDate
from t_workorder tw
left join t_workorder_vehicle twv on twv.workorder_id = tw.id
left join (
select tv.id,tv.workorder_id,tv.vin,tv.owner_name,group_concat(tvd.sn) sns from t_vehicle tv,t_vehicle_device tvd
where tv.id = tvd.vehicle_id and tv.del_flag = 0 and tvd.del_flag = 0 and tvd.bind_status = 0
group by tv.id
) tv on tv.workorder_id = tw.id
left join t_workorder_vehicle_device twvd on twvd.workorder_id = tw.id and twvd.del_flag = 0
left join t_vehicle tv on tv.workorder_id = tw.id and tv.del_flag = 0
left join t_vehicle_device tvd on tvd.vehicle_id = tv.id and tv.del_flag = 0 and tvd.bind_status = 1
left join t_user tu on tu.id = tw.created_by
left join t_tenant tt on tt.id = tu.tenant_id
where tw.del_flag = 0
...
...
@@ -194,10 +192,12 @@
or tw.partner_order_no like '%${term}%'
or twv.lessee_name like '%${term}%'
or twv.vin like '%${term}%'
or tv.sns like '%${term}%'
or twvd.sn like '%${term}%'
or tvd.sn like '%${term}%'
)
</if>
order by tw.created_date desc
group by tw.id
order by tw.id desc
</select>
<select
id=
"selectIncompleteByServiceTypeAndVin"
resultMap=
"BaseResultMap"
>
...
...
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