| | |
| | | station.setProductionLineCode((String) map.get("ProductionLineCode")); |
| | | station.setProductionLineName((String) map.get("ProductionLineName")); |
| | | station.setCreatedBy((String) map.get("CreatedBy")); |
| | | station.setValid(true); |
| | | stations.add(station); |
| | | } else if (obj instanceof Station) { |
| | | stations.add((Station) obj); |
| | |
| | | log.info("Mes POST请求: {}, 请求参数: {}", url, JSONObject.toJSONString(params)); |
| | | |
| | | HttpHeaders headers = new HttpHeaders(); |
| | | headers.add("Content-Type", "application/json;charset=utf-8"); // |
| | | headers.add("Content-Type", "application/json;charset=utf-8"); |
| | | headers.add("Authorization", "Bearer " + token); |
| | | |
| | | HttpEntity<Object> httpEntity = new HttpEntity<>(params, headers); |