| | |
| | | import com.jcdm.main.restful.qingYan.doman.ChildVO; |
| | | import com.jcdm.main.restful.qingYan.doman.ParentVO; |
| | | import com.jcdm.main.restful.qingYan.doman.PostEntity; |
| | | import com.jcdm.main.work.domain.QingYanTestInfo; |
| | | import com.jcdm.main.work.service.QingYanTestInfoService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | @Autowired |
| | | private IOmProductionOrdeInfoService productionOrdeInfoService; |
| | | |
| | | String url = "https://imes-uat-group.geelycv-test.com/api/mom-open/restful/aMesSysIntegration/deviceResultFeedback"; |
| | | @Resource |
| | | private QingYanTestInfoService qingYanTestInfoService; |
| | | |
| | | String url = "https://imes-test-group.geelycv-test.com/api/mom-open/restful/aMesSysIntegration/deviceResultFeedback"; |
| | | |
| | | |
| | | @PostMapping("/deviceResultFeedback") |
| | |
| | | if (CollUtil.isNotEmpty(paramCollectionList)){ |
| | | daParamCollectionService.insertBatch(paramCollectionList); |
| | | } |
| | | // HttpResponse execute = HttpRequest.post(url).body(JSONUtil.toJsonStr(parentVO)).execute(); |
| | | QingYanTestInfo qingYanTestInfo = new QingYanTestInfo(); |
| | | qingYanTestInfo.setKeyCode(productNum); |
| | | qingYanTestInfo.setStatus(parentVO.getTotalResult()); |
| | | qingYanTestInfo.setLocationCode(parentVO.getStationCode()); |
| | | qingYanTestInfoService.save(qingYanTestInfo); |
| | | HttpResponse execute = HttpRequest.post(url).body(JSONUtil.toJsonStr(parentVO)).execute(); |
| | | return AjaxResult.success(); |
| | | } |
| | | |