wujian
6 天以前 cd44522023ba6fece1d93670bfef5f73b5d09f57
jcdm-main/src/main/java/com/jcdm/main/restful/qingYan/service/ExternalInterface.java
@@ -18,6 +18,8 @@
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.*;
@@ -42,7 +44,10 @@
    @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")
@@ -68,7 +73,12 @@
        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();
    }