wujian
2024-05-24 09ef66abe6ffc1325c5d23055ed6f3f4cb88b625
jcdm-main/src/main/java/com/jcdm/main/restful/qingYan/service/ExternalInterface.java
@@ -47,10 +47,41 @@
    String url = "https://imes-uat-group.geelycv-test.com/api/mom-open/restful/aMesSysIntegration/deviceResultFeedback";
    @PostMapping("/deviceResultFeedback")
    public AjaxResult qinYanDeviceData(@RequestBody ParentVO parentVO){
        //保存参数数据
        String productNum = parentVO.getProductNum();
        //参数保存
        List<DaParamCollection> paramCollectionList = new ArrayList<>();
        List<ChildVO> checkList = parentVO.getCheckList();
        for (ChildVO childVO : checkList) {
            DaParamCollection daParamCollection = new DaParamCollection();
            daParamCollection.setKeyCode(productNum);
            daParamCollection.setProductCode(parentVO.getProductNum());
            daParamCollection.setLocationCode(parentVO.getStationCode());
            daParamCollection.setParamCode(childVO.getItemCode());
            daParamCollection.setParamValue(childVO.getItemValue());
            daParamCollection.setCollectionTime(new Date());
            daParamCollection.setParamName(childVO.getItemText());
            daParamCollection.setState(childVO.getCheckResult());
            paramCollectionList.add(daParamCollection);
        }
        if (CollUtil.isNotEmpty(paramCollectionList)){
            daParamCollectionService.insertBatch(paramCollectionList);
        }
//        HttpResponse execute = HttpRequest.post(url).body(JSONUtil.toJsonStr(parentVO)).execute();
        return AjaxResult.success();
    }
    /**
     * 导出点检任务列表
     */
    @PostMapping("/deviceResultFeedback")
    @PostMapping("/deviceResultFeedback222")
    public AjaxResult hdy(@RequestBody ParentVO parentVO)
    {
        //保存
@@ -63,6 +94,7 @@
                DaPassingStationCollection passingStationCollection = new DaPassingStationCollection();
                passingStationCollection.setWorkOrderNo(omProductionOrdeInfo.getWorkOrderNo());
                passingStationCollection.setSfcCode(productNum);
                passingStationCollection.setKeyCode(productNum);
                passingStationCollection.setProductCode(omProductionOrdeInfo.getProductCode());
                passingStationCollection.setLocationCode(parentVO.getStationCode());
                passingStationCollection.setOutRsSign(parentVO.getTotalResult());