guoyujia il y a 3 mois
Parent
commit
0d161b6b9c

+ 8 - 1
src/main/resources/mybatis/business/technologicalProcessDetailDrawing/BizTechnologicalProcessDetailDrawingMapper.xml

@@ -66,7 +66,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="specification != null and specification != ''">AND  product_id IN (select id from biz_product where deleted = 0 and specification  like concat('%', #{specification}, '%')) </if>
             <if test="description != null and description != ''">AND product_id IN (select id from biz_product where deleted = 0 and description like concat('%', #{description}, '%')) </if>
             <if test="processAlias !=null and processAlias !=''">AND process_code IN(select process_code from biz_process where deleted = 0 and  process_alias  like concat('%', #{processAlias}, '%')) </if>
-            <if test="pattern != null and pattern != ''">AND pattern like concat('%', #{pattern}, '%')</if>
+            <if test="pattern != null and pattern != ''">
+                <if test="pattern == '作废'">
+                    AND abandoned = 1
+                </if>
+                <if test="pattern != '作废'">
+                    AND pattern LIKE CONCAT('%', #{pattern}, '%')
+                </if>
+            </if>
         </trim>
         order by create_time desc
     </select>