|
|
|
@ -187,7 +187,7 @@ public class UserInfoServiceImpl implements UserInfoService { |
|
|
|
|
if (ConfigureConstant.STRING_0.equals(userCenterType)) { |
|
|
|
|
try { |
|
|
|
|
headMap.put("Cookie", "dxhy_sso_sessionid=" + userToken); |
|
|
|
|
String result = HttpUtils.doGetWithHeader(userCenterConfig.configQueryBigBUserInfo(), headMap); |
|
|
|
|
String result = HttpUtils.doGetWithHeader(userCenterConfig.configQueryBigBUserInfo(), headMap); |
|
|
|
|
|
|
|
|
|
if (StringUtils.isBlank(result)) { |
|
|
|
|
return R.error().put(OrderManagementConstant.CODE, ConfigureConstant.INT_401) |
|
|
|
@ -198,7 +198,7 @@ public class UserInfoServiceImpl implements UserInfoService { |
|
|
|
|
if (r.get(OrderManagementConstant.CODE) == null || ConfigureConstant.INT_200 != Integer.parseInt(r.get(OrderManagementConstant.CODE).toString())) { |
|
|
|
|
if (ObjectUtil.isNull(r.get(OrderManagementConstant.ALL_MESSAGE)) && ObjectUtil.isNotNull(r.get(OrderManagementConstant.MESSAGE))) { |
|
|
|
|
r.put(OrderManagementConstant.ALL_MESSAGE, r.get(OrderManagementConstant.MESSAGE)); |
|
|
|
|
return r; |
|
|
|
|
return r; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
SsoUser ssoUser = JsonUtils.getInstance().parseObject(r.get(OrderManagementConstant.DATA).toString(), SsoUser.class); |
|
|
|
@ -212,7 +212,7 @@ public class UserInfoServiceImpl implements UserInfoService { |
|
|
|
|
return R.error(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} else { |
|
|
|
|
} else { |
|
|
|
|
try { |
|
|
|
|
headMap.put(ConfigureConstant.AUTHORIZATION, ConfigureConstant.BEARER + "" + userToken); |
|
|
|
|
String result = HttpUtils.doGetWithHeader(userCenterConfig.configQuerySaaSUserInfo(), headMap); |
|
|
|
@ -238,19 +238,19 @@ public class UserInfoServiceImpl implements UserInfoService { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (Objects.nonNull(userEntity)) { |
|
|
|
|
if (userEntity.getTaxplayercodeDeptList() == null) { |
|
|
|
|
if (userEntity.getTaxplayercodeDeptList() == null) { |
|
|
|
|
R r = new R(); |
|
|
|
|
r.put(OrderManagementConstant.CODE, "9999"); |
|
|
|
|
r.put(OrderManagementConstant.ALL_MESSAGE, "用户未设置企业信息"); |
|
|
|
|
return r; |
|
|
|
|
} |
|
|
|
|
if (userEntity.getTaxplayercodeDeptList().size() < 1) { |
|
|
|
|
r.put(OrderManagementConstant.CODE, "9999"); |
|
|
|
|
r.put(OrderManagementConstant.ALL_MESSAGE, "用户未设置企业信息"); |
|
|
|
|
return r; |
|
|
|
|
} |
|
|
|
|
if (userEntity.getTaxplayercodeDeptList().size() < 1) { |
|
|
|
|
R r = new R(); |
|
|
|
|
r.put(OrderManagementConstant.CODE, "9999"); |
|
|
|
|
r.put(OrderManagementConstant.ALL_MESSAGE, "用户未设置企业信息"); |
|
|
|
|
return r; |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
r.put(OrderManagementConstant.CODE, "9999"); |
|
|
|
|
r.put(OrderManagementConstant.ALL_MESSAGE, "用户未设置企业信息"); |
|
|
|
|
return r; |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
log.error("{}查询用户信息数据为空", LOGGER_MSG); |
|
|
|
|
return R.error(); |
|
|
|
|
} |
|
|
|
@ -271,7 +271,7 @@ public class UserInfoServiceImpl implements UserInfoService { |
|
|
|
|
List<TaxPlayerCodeDept> taxplayercodeDeptList = userEntity.getTaxplayercodeDeptList(); |
|
|
|
|
//补全税号为空的数据
|
|
|
|
|
completeTaxPlayerCodeDept(taxplayercodeDeptList); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//是否过滤调空税号的数据
|
|
|
|
|
if (OrderInfoEnum.ORDER_USER_INFO_IS_FILTER_1.getKey().equals(userInfoQuery.getIsFilter())) { |
|
|
|
@ -292,9 +292,8 @@ public class UserInfoServiceImpl implements UserInfoService { |
|
|
|
|
userEntity.setTaxplayercodeDeptList(taxPlayerCodeDeptListFilter); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
R r = R.ok(userEntity); |
|
|
|
|
return r; |
|
|
|
|
} |
|
|
|
|
return R.ok(userEntity); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public DeptEntity getDepartment() { |
|
|
|
|