| | |
| | | package com.jcdm.main.restful.qingYan.service; |
| | | |
| | | import cn.hutool.core.collection.CollUtil; |
| | | import cn.hutool.core.util.ObjectUtil; |
| | | import cn.hutool.core.util.StrUtil; |
| | | import cn.hutool.http.HttpRequest; |
| | | import cn.hutool.http.HttpResponse; |
| | |
| | | import com.fasterxml.jackson.core.JsonProcessingException; |
| | | import com.fasterxml.jackson.databind.ObjectMapper; |
| | | import com.jcdm.common.core.domain.AjaxResult; |
| | | import com.jcdm.common.utils.StringUtils; |
| | | import com.jcdm.main.bs.formulaChild.domain.BsFormulaChildInfo; |
| | | import com.jcdm.main.bs.formulaChild.service.IBsFormulaChildInfoService; |
| | | import com.jcdm.main.constant.Constants; |
| | |
| | | @RestController |
| | | @RequestMapping("/jcdmMes") |
| | | public class ExternalInterface { |
| | | public SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
| | | |
| | | @Autowired |
| | | private IDaTestDeviceInterfaceService daTestDeviceInterfaceService; |
| | | @Autowired |
| | |
| | | |
| | | private IDaPassingStationCollectionService passingStationCollectionService; |
| | | |
| | | // String url = "https://imes-uat-group.geelycv-test.com/api/mom-open/restful/aMesSysIntegration/deviceResultFeedback"; |
| | | |
| | | 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"; |
| | | |
| | | /** |
| | | * 导出点检任务列表 |
| | |
| | | daTestDeviceInterface.setProductNum(parentVO.getProductNum()); |
| | | daTestDeviceInterface.setTotalResult(parentVO.getTotalResult()); |
| | | daTestDeviceInterface.setCheckList(s); |
| | | daTestDeviceInterface.setCreateTime(new Date()); |
| | | daTestDeviceInterfaceService.save(daTestDeviceInterface); |
| | | if(parentVO.getStationCode().contains("OP480")){ |
| | | if(StringUtils.isNotBlank(parentVO.getProductNum())){ |
| | | OmProductionOrdeInfo one = omProductionOrdeInfoService.getOne(new LambdaQueryWrapper<OmProductionOrdeInfo>().eq(OmProductionOrdeInfo::getProductNum, parentVO.getProductNum())); |
| | | if(ObjectUtil.isNotNull(one)){ |
| | | one.setTrolleyYard(""); |
| | | omProductionOrdeInfoService.saveOrUpdate(one); |
| | | } |
| | | } |
| | | } |
| | | HttpResponse execute = HttpRequest.post(url).body(JSONUtil.toJsonStr(parentVO)).execute(); |
| | | return AjaxResult.success(execute.body()); |
| | | } |
| | |
| | | order.setProductNum(omProductionOrdeInfo.getProductNum()); |
| | | order.setMaterialCode(omProductionOrdeInfo.getMaterialCode()); |
| | | order.setStationCode(omProductionOrdeInfo.getStationCode()); |
| | | // order.setPlanQty(omProductionOrdeInfo.getPlanQty()); |
| | | order.setPlanQty(omProductionOrdeInfo.getPlanQty()); |
| | | order.setCreateTime(format.format(omProductionOrdeInfo.getCreateTime())); |
| | | restFulOrders.add(order); |
| | | } |
| | | return AjaxResult.success(restFulOrders); |