| | |
| | | NFM702_ENDPOINT = 'https://wdp.olympus.com.cn:44302/RESTAdapter/NFM702'; |
| | | NFM703_ENDPOINT = 'https://wdp.olympus.com.cn:44302/RESTAdapter/NFM703'; |
| | | |
| | | //先款后修 |
| | | NFM112_ENDPOINT = 'http://wdp.olympus.com.cn:8089/RESTAdapter/NFM112'; |
| | | //样本管理 |
| | | NFM115_ENDPOINT = 'https://wdp.olympus.com.cn:44302/RESTAdapter/NFM115'; |
| | | |
| | |
| | | req.setEndpoint(endpoint); |
| | | req.setMethod('GET'); |
| | | HTTPResponse response = http.send(req); |
| | | String statusCode = response.getStatus(); |
| | | String statusCode = String.valueof(response.getStatusCode()); |
| | | System.debug('response:' + response); |
| | | //http:状态和code |
| | | //如果状态不通过 , 则将状态及空的的数据 , 返回 |
| | | if (String.isNotBlank(statusCode)) { |
| | | return new response(statusCode, null); |
| | | } |
| | | // if (String.isNotBlank(statusCode)) { |
| | | // return new response(statusCode, null); |
| | | // } |
| | | System.debug('=====2======' + response.getBody()); |
| | | //正常执行 |
| | | return new response(statusCode, response.getBody()); |
| | |
| | | req.setMethod('POST'); |
| | | req.setBody(jsonStr); |
| | | HTTPResponse response = http.send(req); |
| | | String statusCode = response.getStatus(); |
| | | String statusCode = String.valueof(response.getStatusCode()); |
| | | System.debug('response:' + response); |
| | | //http:状态和code |
| | | //如果状态不通过 , 则将状态及空的的数据 , 返回 |
| | | if (String.isNotBlank(statusCode)) { |
| | | return new response(statusCode, null); |
| | | } |
| | | // if (String.isNotBlank(statusCode)) { |
| | | // return new response(statusCode, null); |
| | | // } |
| | | System.debug('=====2======' + response.getBody()); |
| | | //正常执行 |
| | | return new response(statusCode, response.getBody()); |