浏览代码

场景包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}