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 59c8c9b1
authored
Sep 02, 2022
by
levphon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复解绑设备时同步删除工单相关设备数据、工单解绑设备搜索问题
1 parent
e9c27990
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
11 deletions
src/main/resources/mapper/WorkOrderMapper.xml
src/main/resources/mapper/WorkOrderMapper.xml
View file @
59c8c9b
...
...
@@ -102,7 +102,7 @@
left join t_workorder_vehicle twv on twv.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_vehicle_device tvd on tvd.vehicle_id = tv.id and tv
d
.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
...
...
@@ -167,7 +167,7 @@
left join t_workorder_vehicle twv on twv.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_vehicle_device tvd on tvd.vehicle_id = tv.id and tv
d
.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
...
...
@@ -245,17 +245,16 @@
</select>
<select
id=
"getLinkVehicleListByVin"
resultType=
"cn.com.glsx.admin.modules.model.vo.LinkVehicleVO"
>
select
tv.id vehicleId,
tv.owner_name ownerName,
tw.shop_name shopName,
tw.partner_order_no bizOrderNo,
tv.vin vin,
tv.created_date createdDate
select tv.id vehicleId,
tv.owner_name ownerName,
tw.shop_name shopName,
tw.partner_order_no bizOrderNo,
tv.vin vin,
tv.created_date createdDate
from t_vehicle tv
left join t_workorder tw on tw.id = tv.workorder_id and tw.del_flag = 0
left join t_workorder tw on tw.id = tv.workorder_id and tw.del_flag = 0
where tv.del_flag = 0
and tv.vin = #{vin}
and tv.vin = #{vin}
order by createdDate desc
</select>
</mapper>
\ 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