Browse Source

feat(all): 修改mq发送消息根据租户切换的问题

dist.1.3.0
zhaoqiaobo 11 months ago
parent
commit
ae8b41164b
  1. 70
      blade-biz-common/src/main/java/org/springblade/common/model/HeaderValueHolder.java
  2. 1056
      blade-biz-common/src/main/java/org/springblade/common/model/MockHttpServletRequest.java

70
blade-biz-common/src/main/java/org/springblade/common/model/HeaderValueHolder.java

@ -1,70 +0,0 @@
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//
package org.springblade.common.model;
import org.springframework.lang.Nullable;
import org.springframework.util.CollectionUtils;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
class HeaderValueHolder {
private final List<Object> values = new LinkedList();
HeaderValueHolder() {
}
void setValue(@Nullable Object value) {
this.values.clear();
if (value != null) {
this.values.add(value);
}
}
void addValue(Object value) {
this.values.add(value);
}
void addValues(Collection<?> values) {
this.values.addAll(values);
}
void addValueArray(Object values) {
CollectionUtils.mergeArrayIntoCollection(values, this.values);
}
List<Object> getValues() {
return Collections.unmodifiableList(this.values);
}
List<String> getStringValues() {
List<String> stringList = new ArrayList(this.values.size());
Iterator var2 = this.values.iterator();
while(var2.hasNext()) {
Object value = var2.next();
stringList.add(value.toString());
}
return Collections.unmodifiableList(stringList);
}
@Nullable
Object getValue() {
return !this.values.isEmpty() ? this.values.get(0) : null;
}
@Nullable
String getStringValue() {
return !this.values.isEmpty() ? String.valueOf(this.values.get(0)) : null;
}
}

1056
blade-biz-common/src/main/java/org/springblade/common/model/MockHttpServletRequest.java

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save