소스 검색

场景包id模糊查询

wangzhiqiang 3 년 전
부모
커밋
11863ab003
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      simulation-resource-server/src/main/resources/mapper/scene/ScenePackageMapper.xml

+ 1 - 1
simulation-resource-server/src/main/resources/mapper/scene/ScenePackageMapper.xml

@@ -30,7 +30,7 @@
                 and a.package_id = #{packageId,jdbcType=VARCHAR}
             </if>
             <if test="packageCode != null and packageCode != ''">
-                and a.package_code = #{packageCode,jdbcType=VARCHAR}
+                and a.package_code like CONCAT('%',#{packageCode,jdbcType=VARCHAR},'%')
             </if>
             <if test="share != null and share != ''">
                 and a.share = #{share,jdbcType=VARCHAR}