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 6dd3225a
authored
Jan 01, 2022
by
levphon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
工单详情-查看/编辑
1 parent
86b6d46c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
64 additions
and
0 deletions
src/main/resources/mapper/WorkOrderMapper.xml
src/main/resources/mapper/WorkOrderMapper.xml
View file @
6dd3225
...
@@ -95,9 +95,42 @@
...
@@ -95,9 +95,42 @@
tw.created_date createdDate
tw.created_date createdDate
from t_workorder tw
from t_workorder tw
left join t_workorder_vehicle twv on twv.workorder_id = tw.id
left join t_workorder_vehicle twv on twv.workorder_id = tw.id
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 tvd.del_flag = 0
left join t_user tu on tu.id = tw.created_by
left join t_user tu on tu.id = tw.created_by
left join t_tenant tt on tt.id = tu.tenant_id
left join t_tenant tt on tt.id = tu.tenant_id
where tw.del_flag = 0
where tw.del_flag = 0
<if
test=
"checkedUserIdsStr != null and checkedUserIdsStr !=''"
>
and find_in_set(tw.created_by,#{checkedUserIdsStr})
</if>
<if
test=
"sDate != null and sDate != '' and eDate != null and eDate != ''"
>
<choose>
<when
test=
"timeType == 1"
>
and DATE_FORMAT(tw.created_date,'%Y-%m-%d') between #{sDate} and #{eDate}
</when>
<when
test=
"timeType == 2"
>
and DATE_FORMAT(tw.service_time,'%Y-%m-%d') between #{sDate} and #{eDate}
</when>
</choose>
</if>
<if
test=
"needInstall != null and needInstall !=''"
>
and tw.need_install = #{needInstall}
</if>
<if
test=
"serviceType != null and serviceType !=''"
>
and tw.service_type = #{serviceType}
</if>
<if
test=
"orderStatus != null and orderStatus !=''"
>
and tw.status = #{orderStatus}
</if>
<if
test=
"term != null and term !=''"
>
and (
tw.order_no like '%${term}%'
or tw.partner_order_no like '%${term}%'
or tv.owner_name like '%${term}%'
or tv.vin like '%${term}%'
or tvd.sn like '%${term}%'
)
</if>
order by tw.created_date desc
order by tw.created_date desc
</select>
</select>
...
@@ -122,6 +155,37 @@
...
@@ -122,6 +155,37 @@
left join t_user tu on tu.id = tw.created_by
left join t_user tu on tu.id = tw.created_by
left join t_tenant tt on tt.id = tu.tenant_id
left join t_tenant tt on tt.id = tu.tenant_id
where tw.del_flag = 0
where tw.del_flag = 0
<if
test=
"checkedUserIdsStr != null and checkedUserIdsStr !=''"
>
and find_in_set(tw.created_by,#{checkedUserIdsStr})
</if>
<if
test=
"sDate != null and sDate != '' and eDate != null and eDate != ''"
>
<choose>
<when
test=
"timeType == 1"
>
and DATE_FORMAT(tw.created_date,'%Y-%m-%d') between #{sDate} and #{eDate}
</when>
<when
test=
"timeType == 2"
>
and DATE_FORMAT(tw.service_time,'%Y-%m-%d') between #{sDate} and #{eDate}
</when>
</choose>
</if>
<if
test=
"needInstall != null and needInstall !=''"
>
and tw.need_install = #{needInstall}
</if>
<if
test=
"serviceType != null and serviceType !=''"
>
and tw.service_type = #{serviceType}
</if>
<if
test=
"orderStatus != null and orderStatus !=''"
>
and tw.status = #{orderStatus}
</if>
<if
test=
"term != null and term !=''"
>
and (
tw.order_no like '%${term}%'
or tw.partner_order_no like '%${term}%'
or tv.owner_name like '%${term}%'
or tv.vin like '%${term}%'
or tvd.sn like '%${term}%'
)
</if>
order by tw.created_date desc
order by tw.created_date desc
</select>
</select>
...
...
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