fix(user): 修复九公司标识设置逻辑

- 移除九公司配置ID验证逻辑
- 直接将九公司标识设置为true
komen
zhaokai 2026-07-21 13:33:59 +08:00
parent 1eb129d61d
commit 2467f7327e
1 changed files with 8 additions and 8 deletions

View File

@ -241,14 +241,14 @@ public class UserQueryExe {
UserCO userCO = new UserCO(); UserCO userCO = new UserCO();
BeanUtils.copyProperties(userDO, userCO); BeanUtils.copyProperties(userDO, userCO);
try{ try{
String companyId = nineCompanyConfig.getCompanyId(); // String companyId = nineCompanyConfig.getCompanyId();
boolean nineCompanyFlag = companyId != null // boolean nineCompanyFlag = companyId != null
&& userCO.getCorpinfoId() != null // && userCO.getCorpinfoId() != null
&& Arrays.stream(companyId.split(",")) // && Arrays.stream(companyId.split(","))
.map(String::trim) // .map(String::trim)
.filter(item -> !item.isEmpty()) // .filter(item -> !item.isEmpty())
.anyMatch(item -> item.equals(String.valueOf(userCO.getCorpinfoId()))); // .anyMatch(item -> item.equals(String.valueOf(userCO.getCorpinfoId())));
userCO.setNineCompanyFlag(nineCompanyFlag); userCO.setNineCompanyFlag(true);
}catch (Exception e){ }catch (Exception e){
log.error("获取九公司ID异常", e); log.error("获取九公司ID异常", e);
e.printStackTrace(); e.printStackTrace();