| | |
| | | SupplierDTO currentSupplier = supplierMapper.getCurrentSupplier(userId); |
| | | //切换主账号 |
| | | String supplier = globalSupplierVariables.getSupplier(String.valueOf(currentSupplier.getId())); |
| | | if (StringUtils.isEmpty(supplier)) { |
| | | if (!StringUtils.isEmpty(supplier)) { |
| | | globalSupplierVariables.removeSupplier(String.valueOf(currentSupplier.getId())); |
| | | } |
| | | } else { |
| | |
| | | userId = supplierSub.getUserId(); |
| | | //切换子账号 |
| | | String supplier = globalSupplierVariables.getSupplier(String.valueOf(supplierSub.getSupplierId())); |
| | | if (StringUtils.isEmpty(supplier)) { |
| | | if (!StringUtils.isEmpty(supplier)) { |
| | | globalSupplierVariables.removeSupplier(String.valueOf(supplierSub.getSupplierId())); |
| | | } |
| | | globalSupplierVariables.setSupplier(String.valueOf(supplierSub.getSupplierId()), userId); |