qirong
2023-06-19 239c97e6701bc5ee5a1b9b890003dd6cd2132f48
src/main/resources/mapper/UserMapper.xml
@@ -410,5 +410,15 @@
    limit 1
  </select>
  <select id="selectByIdName" resultMap="BaseResultMap">
    select
    <include refid="Base_Column_List" />
    from t_user
    <where>
      and deleted=0  and  id = #{id}
      <if test="userName != null and userName != ''">
        and user_name like concat('%',#{userName},"%")
      </if>
    </where>
  </select>
</mapper>