Commit bfdb3dcf authored by wdy's avatar wdy

根据检验项目查询

parent f6007016
......@@ -116,11 +116,7 @@
and t.product_model like concat('%',#{request.productModel},'%')
</if>
<if test="request.inspectionItem != null and request.inspectionItem != ''">
AND(
(#{request.inspectionItem} = 'sraif' AND t.system_review_task_id IS NOT NULL)
OR
(#{request.inspectionItem} = 'grfis' AND t.car_review_task_id IS NOT NULL)
)
and t.task_list like concat('%',#{request.inspectionItem},'%')
</if>
</where>
order by t.create_time desc
......@@ -149,11 +145,7 @@
and t.product_model like concat('%',#{productModel},'%')
</if>
<if test="inspectionItem != null and inspectionItem != ''">
AND (
(#{inspectionItem} = 'sraif' AND t.system_review_task_id IS NOT NULL)
OR
(#{inspectionItem} = 'grfis' AND t.car_review_task_id IS NOT NULL)
)
and t.task_list like concat('%',#{inspectionItem},'%')
</if>
</where>
order by t.task_begin_time desc
......@@ -201,11 +193,7 @@
and t.product_model like concat('%',#{request.productModel},'%')
</if>
<if test="request.inspectionItem != null and request.inspectionItem != ''">
AND (
(#{request.inspectionItem} = 'sraif' AND t.system_review_task_id IS NOT NULL)
OR
(#{request.inspectionItem} = 'grfis' AND t.car_review_task_id IS NOT NULL)
)
and t.task_list like concat('%',#{request.inspectionItem},'%')
</if>
<if test="request.taskStatus != null and request.taskStatus != ''">
and t.task_status = #{request.taskStatus}
......@@ -240,11 +228,7 @@
and t.product_model like concat('%',#{request.productModel},'%')
</if>
<if test="request.inspectionItem != null and request.inspectionItem != ''">
AND (
(#{request.inspectionItem} = 'sraif' AND t.system_review_task_id IS NOT NULL)
OR
(#{request.inspectionItem} = 'grfis' AND t.car_review_task_id IS NOT NULL)
)
and t.task_list like concat('%',#{request.inspectionItem},'%')
</if>
</where>
order by t.task_begin_time desc
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment