| | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.jcdm.common.utils.DateUtils; |
| | | import com.jcdm.common.utils.StringUtils; |
| | | import com.jcdm.main.bs.formula.service.IBsFormulaInfoService; |
| | | import com.jcdm.main.bs.formula.service.impl.BsFormulaInfoServiceImpl; |
| | | import com.jcdm.main.bs.formulaChild.domain.BsFormulaChildInfo; |
| | |
| | | |
| | | @Override |
| | | public void addTighteningParameters(DaParamCollection daParamCollection) { |
| | | String tightenData = daParamCollection.getTightenTheArray(); |
| | | tightenData = tightenData.replace("[", "").replace("]", "").replace(" ", ""); |
| | | String[] tightenDataParts = tightenData.split(","); |
| | | String paramCode = daParamCollection.getParamCode(); |
| | | String[] paramCodeParts = paramCode.split(","); |
| | | for (int i = 0; i < paramCodeParts.length; i++) { |
| | | daParamCollection.setParamValue(tightenDataParts[i]); |
| | | daParamCollection.setParamCode(paramCodeParts[i]); |
| | | daParamCollection.setCollectionTime(new Date()); |
| | | daParamCollection.setSfcCode(daParamCollection.getProductBarcode()); |
| | | daParamCollectionMapper.insertDaParamCollection(daParamCollection); |
| | | String tightenData = daParamCollection.getTightenTheArray(); |
| | | if(StringUtils.isNotBlank(paramCode)&&StringUtils.isNotBlank(tightenData)){ |
| | | tightenData = tightenData.replace("[", "").replace("]", "").replace(" ", ""); |
| | | String[] tightenDataParts = tightenData.split(","); |
| | | String[] paramCodeParts = paramCode.split(","); |
| | | for (int i = 0; i < paramCodeParts.length; i++) { |
| | | daParamCollection.setParamValue(tightenDataParts[i]); |
| | | daParamCollection.setParamCode(paramCodeParts[i]); |
| | | daParamCollection.setCollectionTime(new Date()); |
| | | daParamCollection.setSfcCode(daParamCollection.getProductBarcode()); |
| | | daParamCollectionMapper.insertDaParamCollection(daParamCollection); |
| | | } |
| | | } |
| | | } |
| | | |
| | |
| | | |
| | | public void sendToFactoryMes(String stationCode,String productNum ){ |
| | | 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"; |
| | | ParentVO vo =new ParentVO(); |
| | | List<ChildVO> checkList = new ArrayList<>(); |
| | | List<DaParamCollection> list = this.list(new LambdaQueryWrapper<DaParamCollection>() |
| | |
| | | public void pushGeelycvMesFeedback(String packID, String 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"; |
| | | List<DaParamCollection> paramList = daParamCollectionService.list(new LambdaQueryWrapper<DaParamCollection>().eq(DaParamCollection::getSfcCode, packID).eq(DaParamCollection::getLocationCode, stationCode)); |
| | | if(paramList.size() > 0){ |