Commit 8da03c0e authored by wdy's avatar wdy

模糊查询

parent 6db5389f
...@@ -102,13 +102,13 @@ ...@@ -102,13 +102,13 @@
and t.standard_id = #{standardId} and t.standard_id = #{standardId}
</if> </if>
<if test="taskNo != null and taskNo != ''"> <if test="taskNo != null and taskNo != ''">
and t.task_no = #{taskNo} and t.task_no like concat('%',#{taskNo},'%')
</if> </if>
<if test="taskName != null and taskName != ''"> <if test="taskName != null and taskName != ''">
and t.task_name like concat('%',#{taskName},'%') and t.task_name like concat('%',#{taskName},'%')
</if> </if>
<if test="productModel != null and productModel != ''"> <if test="productModel != null and productModel != ''">
and t.product_model = #{productModel} and t.product_model like concat('%',#{productModel},'%')
</if> </if>
<if test="inspectionItem != null and inspectionItem != ''"> <if test="inspectionItem != null and inspectionItem != ''">
AND( AND(
...@@ -133,13 +133,13 @@ ...@@ -133,13 +133,13 @@
and t.standard_id = #{standardId} and t.standard_id = #{standardId}
</if> </if>
<if test="taskNo != null and taskNo != ''"> <if test="taskNo != null and taskNo != ''">
and t.task_no = #{taskNo} and t.task_no like concat('%',#{taskNo},'%')
</if> </if>
<if test="taskName != null and taskName != ''"> <if test="taskName != null and taskName != ''">
and t.task_name like concat('%',#{taskName},'%') and t.task_name like concat('%',#{taskName},'%')
</if> </if>
<if test="productModel != null and productModel != ''"> <if test="productModel != null and productModel != ''">
and t.product_model = #{productModel} and t.product_model like concat('%',#{productModel},'%')
</if> </if>
<if test="inspectionItem != null and inspectionItem != ''"> <if test="inspectionItem != null and inspectionItem != ''">
AND ( AND (
...@@ -183,13 +183,13 @@ ...@@ -183,13 +183,13 @@
and t.standard_id = #{request.standardId} and t.standard_id = #{request.standardId}
</if> </if>
<if test="request.taskNo != null and request.taskNo != ''"> <if test="request.taskNo != null and request.taskNo != ''">
and t.task_no = #{request.taskNo} and t.task_no like concat('%',#{request.taskNo},'%')
</if> </if>
<if test="request.taskName != null and request.taskName != ''"> <if test="request.taskName != null and request.taskName != ''">
and t.task_name like concat('%',#{request.taskName},'%') and t.task_name like concat('%',#{request.taskName},'%')
</if> </if>
<if test="request.productModel != null and request.productModel != ''"> <if test="request.productModel != null and request.productModel != ''">
and t.product_model = #{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 (
...@@ -220,13 +220,13 @@ ...@@ -220,13 +220,13 @@
and t.standard_id = #{standardId} and t.standard_id = #{standardId}
</if> </if>
<if test="request.taskNo != null and request.taskNo != ''"> <if test="request.taskNo != null and request.taskNo != ''">
and t.task_no = #{taskNo} and t.task_no like concat('%',#{request.taskNo},'%')
</if> </if>
<if test="request.taskName != null and request.taskName != ''"> <if test="request.taskName != null and request.taskName != ''">
and t.task_name like concat('%',#{taskName},'%') and t.task_name like concat('%',#{request.taskName},'%')
</if> </if>
<if test="request.productModel != null and request.productModel != ''"> <if test="request.productModel != null and request.productModel != ''">
and t.product_model = #{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 (
......
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