| | |
| | | @Autowired |
| | | private PurchaseService purchaseService; |
| | | @Autowired |
| | | private RemotesInfoProperties.ApiInfo apiInfo; |
| | | @Autowired |
| | | private RestTemplate restTemplate; |
| | | @Autowired |
| | | private RemotesInfoProperties remotesInfoProperties; |
| | |
| | | if (!remotesInfoProperties.getHost().equals("http://127.0.0.1")){ |
| | | MultiValueMap<String, Object> params = new LinkedMultiValueMap<>(); |
| | | //获取上报质检接口 |
| | | String url = remotesInfoProperties.getBaseUrl() + apiInfo.getNotifyInspect(); |
| | | String url = remotesInfoProperties.getBaseUrl() + remotesInfoProperties.getApi().getNotifyInspect(); |
| | | // 设置请求参数 |
| | | params.add("params", JSONObject.toJSONString(inspectParams)); |
| | | log.info("请求地址:{},请求参数:{}", url, JSONObject.toJSONString(inspectParams)); |