Commit bfdb3dcf authored by wdy's avatar wdy

根据检验项目查询

parent f6007016
...@@ -116,11 +116,7 @@ ...@@ -116,11 +116,7 @@
and t.product_model like concat('%',#{request.productModel},'%') and t.product_model like concat('%',#{request.productModel},'%')
</if> </if>
<if test="request.inspectionItem != null and request.inspectionItem != ''"> <if test="request.inspectionItem != null and request.inspectionItem != ''">
AND( and t.task_list like concat('%',#{request.inspectionItem},'%')
(#{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)
)
</if> </if>
</where> </where>
order by t.create_time desc order by t.create_time desc
...@@ -149,11 +145,7 @@ ...@@ -149,11 +145,7 @@
and t.product_model like concat('%',#{productModel},'%') and t.product_model like concat('%',#{productModel},'%')
</if> </if>
<if test="inspectionItem != null and inspectionItem != ''"> <if test="inspectionItem != null and inspectionItem != ''">
AND ( and t.task_list like concat('%',#{inspectionItem},'%')
(#{inspectionItem} = 'sraif' AND t.system_review_task_id IS NOT NULL)
OR
(#{inspectionItem} = 'grfis' AND t.car_review_task_id IS NOT NULL)
)
</if> </if>
</where> </where>
order by t.task_begin_time desc order by t.task_begin_time desc
...@@ -201,11 +193,7 @@ ...@@ -201,11 +193,7 @@
and t.product_model like concat('%',#{request.productModel},'%') and t.product_model like concat('%',#{request.productModel},'%')
</if> </if>
<if test="request.inspectionItem != null and request.inspectionItem != ''"> <if test="request.inspectionItem != null and request.inspectionItem != ''">
AND ( and t.task_list like concat('%',#{request.inspectionItem},'%')
(#{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)
)
</if> </if>
<if test="request.taskStatus != null and request.taskStatus != ''"> <if test="request.taskStatus != null and request.taskStatus != ''">
and t.task_status = #{request.taskStatus} and t.task_status = #{request.taskStatus}
...@@ -240,11 +228,7 @@ ...@@ -240,11 +228,7 @@
and t.product_model like concat('%',#{request.productModel},'%') and t.product_model like concat('%',#{request.productModel},'%')
</if> </if>
<if test="request.inspectionItem != null and request.inspectionItem != ''"> <if test="request.inspectionItem != null and request.inspectionItem != ''">
AND ( and t.task_list like concat('%',#{request.inspectionItem},'%')
(#{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)
)
</if> </if>
</where> </where>
order by t.task_begin_time desc 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