fix terminal header fill logic

This commit is contained in:
Gao Wei 2022-06-15 12:51:29 +08:00
parent bc889a2c9a
commit c4a42f3285
2 changed files with 9 additions and 2 deletions

View File

@ -4,6 +4,7 @@ import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.Set; import java.util.Set;
import cn.axzo.basics.profiles.service.repairutil.ProfileIdRepair;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
@ -17,6 +18,9 @@ public class UserInfo {
private Long acntId; private Long acntId;
/**
* 原axzoId迁移过来的自然人ID
*/
private Long personId; private Long personId;
private Long identityId; private Long identityId;
@ -65,8 +69,11 @@ public class UserInfo {
private Long id; private Long id;
/** /**
* axzoId=identityId身份ID * userId=identityId身份ID
* 尽量使用上面的三个IDidentityIdpersonIdacntId * 尽量使用上面的三个IDidentityIdpersonIdacntId
*
* 这个值是这样取到的
* Long oldIdentityId = ProfileIdRepair.identityNew2OldId(userInfo.getIdentityId(), userInfo.getIdentityType());
*/ */
@Deprecated @Deprecated
private Long userId; private Long userId;

View File

@ -246,7 +246,7 @@ public class ContextInfoBuilderAspect {
log.warn("请求缺少terminal headertoken={}。暂时使用session中的补齐terminal={}。", contextInfo.getToken(), log.warn("请求缺少terminal headertoken={}。暂时使用session中的补齐terminal={}。", contextInfo.getToken(),
terminalSession); terminalSession);
terminal = terminalSession; terminal = terminalSession;
} else if (TerminalInfo.legacyEquals(terminalHeader, terminalSession)) { } else if (!TerminalInfo.legacyEquals(terminalHeader, terminalSession)) {
log.warn("请求缺少terminal header与session中不一致token={}。暂时使用request中的terminal={}session terminal={}", log.warn("请求缺少terminal header与session中不一致token={}。暂时使用request中的terminal={}session terminal={}",
contextInfo.getToken(), terminalHeader, terminalSession); contextInfo.getToken(), terminalHeader, terminalSession);
terminal = terminalSession; terminal = terminalSession;