Browse Source

设备位号模糊查询

hfxc226 2 years ago
parent
commit
9ec70e165c
1 changed files with 3 additions and 3 deletions
  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},'%')