update 联联平台其他运营商推送站点时先用举视的组织结构代码

This commit is contained in:
Lemon
2024-02-27 13:56:55 +08:00
parent 7adfc909e6
commit 5524ede69d

View File

@@ -321,12 +321,19 @@ public class LianLianServiceImpl implements LianLianService {
String subAreaCode = split[split.length - 1]; String subAreaCode = split[split.length - 1];
info.setAreaCode(subAreaCode); info.setAreaCode(subAreaCode);
// 截取运营商组织机构代码(去除最后一位后的最后九位) // 截取运营商组织机构代码(去除最后一位后的最后九位)
String organizationCode = "";
if (StringUtils.equals(ThirdPlatformTypeEnum.LIAN_LIAN_PLATFORM.getCode(), dto.getThirdPartyType())) {
// 联联平台先使用自己运营商的组织机构代码
organizationCode = Constants.OPERATORID_LIANLIAN;
info.setEquipmentOwnerID(organizationCode);
}else {
MerchantInfoVO merchantInfo = pileMerchantInfoService.getMerchantInfoVO(String.valueOf(pileStationInfo.getMerchantId())); MerchantInfoVO merchantInfo = pileMerchantInfoService.getMerchantInfoVO(String.valueOf(pileStationInfo.getMerchantId()));
String organizationCode = merchantInfo.getOrganizationCode(); organizationCode = merchantInfo.getOrganizationCode();
if (StringUtils.isNotBlank(organizationCode) && organizationCode.length() == 18) { if (StringUtils.isNotBlank(organizationCode) && organizationCode.length() == 18) {
String equipmentOwnerId = StringUtils.substring(organizationCode, organizationCode.length() - 10, organizationCode.length() - 1); String equipmentOwnerId = StringUtils.substring(organizationCode, organizationCode.length() - 10, organizationCode.length() - 1);
info.setEquipmentOwnerID(equipmentOwnerId); info.setEquipmentOwnerID(equipmentOwnerId);
} }
}
if (StringUtils.equals("36", String.valueOf(pileStationInfo.getMerchantId()))) { if (StringUtils.equals("36", String.valueOf(pileStationInfo.getMerchantId()))) {
// 远大 // 远大
info.setEquipmentOwnerID(Constants.OPERATORID_YUAN_DA); info.setEquipmentOwnerID(Constants.OPERATORID_YUAN_DA);