修改按名称查询报错的问题

This commit is contained in:
sh
2025-11-21 12:32:36 +08:00
parent e1c15b1610
commit 48ce78f331
13 changed files with 13 additions and 13 deletions

View File

@@ -42,7 +42,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<include refid="selectConfigVo"/>
<where>
<if test="configName != null and configName != ''">
AND config_name like concat('%', #{configName}, '%')
AND config_name like concat('%', cast(#{configName, jdbcType=VARCHAR} as varchar), '%')
</if>
<if test="configType != null and configType != ''">
AND config_type = #{configType}

View File

@@ -37,7 +37,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
AND parent_id = #{parentId}
</if>
<if test="deptName != null and deptName != ''">
AND dept_name like concat('%', #{deptName}, '%')
AND dept_name like concat('%', cast(#{deptName, jdbcType=VARCHAR} as varchar), '%')
</if>
<if test="status != null and status != ''">
AND status = #{status}

View File

@@ -32,7 +32,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
AND dict_type = #{dictType}
</if>
<if test="dictLabel != null and dictLabel != ''">
AND dict_label like concat('%', #{dictLabel}, '%')
AND dict_label like concat('%', cast(#{dictLabel, jdbcType=VARCHAR} as varchar), '%')
</if>
<if test="status != null and status != ''">
AND status = #{status}

View File

@@ -24,7 +24,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<include refid="selectDictTypeVo"/>
<where>
<if test="dictName != null and dictName != ''">
AND dict_name like concat('%', #{dictName}, '%')
AND dict_name like concat('%', cast(#{dictName, jdbcType=VARCHAR} as varchar), '%')
</if>
<if test="status != null and status != ''">
AND status = #{status}

View File

@@ -37,7 +37,7 @@
<include refid="selectMenuVo"/>
<where>
<if test="menuName != null and menuName != ''">
AND menu_name like concat('%', #{menuName}, '%')
AND menu_name like concat('%', cast(#{menuName, jdbcType=VARCHAR} as varchar), '%')
</if>
<if test="visible != null and visible != ''">
AND visible = #{visible}

View File

@@ -37,7 +37,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
AND r.role_id = #{roleId}
</if>
<if test="roleName != null and roleName != ''">
AND r.role_name like concat('%', #{roleName}, '%')
AND r.role_name like concat('%', cast(#{roleName, jdbcType=VARCHAR} as varchar), '%')
</if>
<if test="status != null and status != ''">
AND r.status = #{status}