qirong
2023-06-26 77be36cc9077b09186e69440f3204f9e623c335a
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>