修改name 查询错误问题

This commit is contained in:
sh
2025-11-10 17:30:35 +08:00
parent 4d1db06282
commit 0e636c03da
2 changed files with 2 additions and 2 deletions

View File

@@ -10,7 +10,7 @@
<select id="getList" resultType="com.ruoyi.common.core.domain.entity.SysArea" parameterType="com.ruoyi.common.core.domain.entity.SysArea"> <select id="getList" resultType="com.ruoyi.common.core.domain.entity.SysArea" parameterType="com.ruoyi.common.core.domain.entity.SysArea">
<include refid="selectAreaVo"/> <include refid="selectAreaVo"/>
<where> del_flag = '0' <where> del_flag = '0'
<if test="name != null and name != ''"> and company_name like concat('%', #{name}, '%')</if> <if test="name != null and name != ''"> and name like concat('%', cast(#{name, jdbcType=VARCHAR} as varchar), '%')</if>
<if test="code != null and code != ''"> and code =#{code}</if> <if test="code != null and code != ''"> and code =#{code}</if>
<choose> <choose>
<when test="parentCode != null and parentCode != ''"> <when test="parentCode != null and parentCode != ''">

View File

@@ -28,7 +28,7 @@
<select id="getWorkExperiencesList" resultMap="userWorkExperiencesResult" parameterType="userWorkExperiences"> <select id="getWorkExperiencesList" resultMap="userWorkExperiencesResult" parameterType="userWorkExperiences">
<include refid="selectWorkExperiencesVo"/> <include refid="selectWorkExperiencesVo"/>
<where> del_flag = '0' <where> del_flag = '0'
<if test="companyName != null and companyName != ''"> and company_name like concat('%', #{companyName}, '%')</if> <if test="companyName != null and companyName != ''"> and company_name like concat('%', cast(#{companyName, jdbcType=VARCHAR} as varchar), '%')</if>
<if test="position != null and position != ''"> and position = #{position}</if> <if test="position != null and position != ''"> and position = #{position}</if>
<if test="description != null and description != ''"> and description = #{description}</if> <if test="description != null and description != ''"> and description = #{description}</if>
<if test="userId != null and userId != ''"> and user_id = #{userId}</if> <if test="userId != null and userId != ''"> and user_id = #{userId}</if>