瀏覽代碼

设备位号模糊查询

hfxc226 2 年之前
父節點
當前提交
9ec70e165c
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      platform-dao/src/main/resources/mapper/sb/SbInfoMapper.xml

+ 3 - 3
platform-dao/src/main/resources/mapper/sb/SbInfoMapper.xml

@@ -222,7 +222,7 @@ sb.scrap_user_name,sb.repair_dept_id
             and sb.position_id = #{positionId}
         </if>
         <if test="positionNo != null and positionNo!=''">
-            and sb.position_no = #{positionNo}
+            and sb.position_no like concat('%',#{positionNo},'%')
         </if>
         <if test="ppNo != null and ppNo!=''">
             and sb.pp_no like concat('%',#{ppNo},'%')
@@ -433,7 +433,7 @@ sb.scrap_user_name,sb.repair_dept_id
             and sb.is_self = #{isSelf}
         </if>
         <if test="positionNo != null and positionNo!=''">
-            and sb.position_no = #{positionNo}
+            and sb.position_no like concat('%',#{positionNo},'%')
         </if>
         <if test="ppNo != null and ppNo!=''">
             and sb.pp_no like concat('%',#{ppNo},'%')
@@ -528,7 +528,7 @@ sb.scrap_user_name,sb.repair_dept_id
             and sb.is_self = #{isSelf}
         </if>
         <if test="positionNo != null and positionNo!=''">
-            and sb.position_no = #{positionNo}
+            and sb.position_no like concat('%',#{positionNo},'%')
         </if>
         <if test="ppNo != null and ppNo!=''">
             and sb.pp_no like concat('%',#{ppNo},'%')