fuliqi
2023-11-28 8dac3a3c993ef006d4765624e046577217d1a898
src/main/resources/mapper/UserMapper.xml
@@ -273,6 +273,13 @@
    where deleted=0  and user_name=#{value} limit 1
  </select>
  <select id="getUserByRealName" resultMap="BaseResultMap">
    select
    <include refid="Base_Column_List"/>
    from t_user
    where deleted=0  and real_name = #{realName}
  </select>
  <select id="getUserByUserNamePwd" resultMap="BaseResultMap">
    select
    <include refid="Base_Column_List"/>
@@ -324,7 +331,7 @@
    <where>
        and deleted=0
      <if test="userName != null and userName != ''">
        and user_name like concat('%',#{userName},'%')
        and real_name like concat('%',#{userName},'%')
      </if>
      <if test="role != null ">
        and role= #{role}