From 5f0f21ec4d684d6e1a40596889ad92a1f4f1042a Mon Sep 17 00:00:00 2001
From: admin <15939171744@163.com>
Date: 星期五, 19 七月 2024 13:27:07 +0800
Subject: [PATCH] 修改30工位获取ocv数据,根据时间倒叙获取第一条

---
 jcdm-main/src/main/java/com/jcdm/main/da/paramCollection/service/impl/DaParamCollectionServiceImpl.java |   18 +++++++-----------
 1 files changed, 7 insertions(+), 11 deletions(-)

diff --git a/jcdm-main/src/main/java/com/jcdm/main/da/paramCollection/service/impl/DaParamCollectionServiceImpl.java b/jcdm-main/src/main/java/com/jcdm/main/da/paramCollection/service/impl/DaParamCollectionServiceImpl.java
index db13317..09d7e0b 100644
--- a/jcdm-main/src/main/java/com/jcdm/main/da/paramCollection/service/impl/DaParamCollectionServiceImpl.java
+++ b/jcdm-main/src/main/java/com/jcdm/main/da/paramCollection/service/impl/DaParamCollectionServiceImpl.java
@@ -313,7 +313,8 @@
                     try{
                         CompletableFuture<Void> cp1 = CompletableFuture.runAsync(() -> {
                             logger.info("OP100鎶ュ伐寮�濮�-宸ュ巶MES寮傛鏂规硶");
-                            String reportResult = RestfulService.getWorkReportResultFeedback(daParamCollection.getProductBarcode(), daParamCollection.getLocationCode(), format.format(new Date()));
+                            String stationCode = "M1P100";//鍥犱负涓婂眰绯荤粺鍙敮鎸�6涓猴紝鎵�鏈夋姤宸ュ伐浣嶄负M1P100
+                            String reportResult = RestfulService.getWorkReportResultFeedback(daParamCollection.getProductBarcode(), stationCode, format.format(new Date()));
                             JSONObject jsonObject = new JSONObject(reportResult);
                             String code = jsonObject.getStr("code");
                             if("success".equals(code)){
@@ -536,8 +537,6 @@
     public void pushGeelycvMesFeedback(String packID, String stationCode) {
         logger.info("杩涘叆浜哄伐宸ヤ綅鎺ㄩ�佸伐鍘侻ES鏁版嵁鏂规硶-pushGeelycvMesFeedback-宸ヤ綅{}-pack鐮亄}",stationCode,packID);
         SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
-        String url = "https://imes-uat-group.geelycv-test.com/api/mom-open/restful/aMesSysIntegration/deviceResultFeedback";
-//        String url = "https://imes-group.geelycv.com/api/mom-open/restful/aMesSysIntegration/deviceResultFeedback";
         String totalResult = "0";
         List<DaParamCollectionTemp> paramList = daParamCollectionTempService.list(new LambdaQueryWrapper<DaParamCollectionTemp>().eq(DaParamCollectionTemp::getSfcCode, packID).eq(DaParamCollectionTemp::getLocationCode, stationCode));
         if(paramList.size() > 0){
@@ -567,7 +566,7 @@
 //                    childVO.setItemType("3");
 //                }
                 if(paramConfOne!=null){
-                    childVO.setItemType(paramConfOne.getSpareField1());
+                    childVO.setItemType(paramConfOne.getItemType());
                     childVO.setItemText(paramConfOne.getCollectParameterName());
                 }else {
                     childVO.setItemType("3");
@@ -591,10 +590,9 @@
             parentVO.setCheckList(listChildVo);
             try{
                 CompletableFuture<Void> cp1 = CompletableFuture.runAsync(() -> {
-                    logger.info("寮�濮嬫墽琛屽紓姝ユ柟娉�");
-                    HttpResponse execute = HttpRequest.post(Constants.FACTORY_EMS_UAT_RUL+"deviceResultFeedback").body(JSONUtil.toJsonStr(parentVO)).execute();
-                    logger.info("寮傛鏂规硶鎵ц缁撴潫");
-                    logger.info("鎵嬪姩宸ヤ綅浼犲伐鍘侻ES寮傛鏂规硶{}"+execute.body());
+                    logger.info("鎵嬪姩宸ヤ綅浼犲伐鍘侻ES寮傛鏂规硶start,宸ヤ綅鍙穥}锛屽叆鍙倇}",stationCode,parentVO.toString());
+                    HttpResponse execute = HttpRequest.post(Constants.FACTORY_EMS_UAT_GET_RUL+"deviceResultFeedback").body(JSONUtil.toJsonStr(parentVO)).execute();
+                    logger.info("鎵嬪姩宸ヤ綅浼犲伐鍘侻ES寮傛鏂规硶end宸ヤ綅鍙穥}锛屽嚭鍙倇}",stationCode,execute.body());
 
                     DaParamCollectionTemp daParamCollectionTemp = new DaParamCollectionTemp();
                     daParamCollectionTemp.setSfcCode(packID);
@@ -622,8 +620,6 @@
     public void automaticWorkstationPushGeelycvMesFeedback(String packID, String stationCode,List<DaParamCollection> paramList) {
         logger.info("杩涘叆宸ヤ綅{}-宸ュ巶MES鎺ㄩ�佹暟鎹柟娉昦utomaticWorkstationPushGeelycvMesFeedback",stationCode);
         SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
-        String url = "https://imes-uat-group.geelycv-test.com/api/mom-open/restful/aMesSysIntegration/deviceResultFeedback";
-//        String url = "https://imes-group.geelycv.com/api/mom-open/restful/aMesSysIntegration/deviceResultFeedback";
         String totalResult = "0";
         if(paramList.size() > 0){
             logger.info("杩涘叆宸ヤ綅{}-鎷兼暟鎹�",stationCode);
@@ -679,7 +675,7 @@
             try{
                 CompletableFuture<Void> cp1 = CompletableFuture.runAsync(() -> {
                     logger.info("寮�濮嬫墽琛屽紓姝ユ柟娉�");
-                    HttpResponse execute = HttpRequest.post(Constants.FACTORY_EMS_UAT_RUL+"deviceResultFeedback").body(JSONUtil.toJsonStr(parentVO)).execute();
+                    HttpResponse execute = HttpRequest.post(Constants.FACTORY_EMS_UAT_GET_RUL+"deviceResultFeedback").body(JSONUtil.toJsonStr(parentVO)).execute();
                     System.out.println(execute.body());
                     logger.info("寮傛鏂规硶鎵ц缁撴潫");
                     logger.info("鑷姩宸ヤ綅浼犲伐鍘侻ES寮傛鏂规硶{}"+execute.body());

--
Gitblit v1.9.3