| | |
| | | updateWrapper.set(BsFormulaChildInfo::getResults, result); |
| | | updateWrapper.eq(BsFormulaChildInfo::getProcessesCode, bsFormulaChildInfo.getLocationCode()); |
| | | updateWrapper.eq(BsFormulaChildInfo::getParamCode, bsFormulaChildInfo.getParamCode()); |
| | | updateWrapper.eq(BsFormulaChildInfo::getProductCode, bsFormulaChildInfo.getProductCode()); |
| | | boolean update = bsFormulaChildInfoService.update(new BsFormulaChildInfo(), updateWrapper); |
| | | return AjaxResult.success(update); |
| | | } |
| | |
| | | @Override |
| | | public AjaxResult jrmWorkpieceRelease(BsFormulaChildInfo bsFormulaChildInfo) { |
| | | this.clearCollectDataAndResultsByProcessesCode(bsFormulaChildInfo); |
| | | daParamCollectionService.pushGeelycvMesFeedback(bsFormulaChildInfo.getProductBarcode(), bsFormulaChildInfo.getLocationCode()); |
| | | // daParamCollectionService.pushGeelycvMesFeedback(bsFormulaChildInfo.getProductBarcode(), bsFormulaChildInfo.getLocationCode()); |
| | | daParamCollectionService.jrmPushGeelycvMesFeedback(bsFormulaChildInfo.getProductBarcode(), bsFormulaChildInfo.getLocationCode(), bsFormulaChildInfo.getProductCode()); |
| | | return AjaxResult.success(); |
| | | } |
| | | |
| | |
| | | String result = "1"; |
| | | BsFormulaChildInfo getMaterTwo = new BsFormulaChildInfo(); |
| | | getMaterTwo.setProcessesCode(bsFormulaChildInfo.getLocationCode()); |
| | | getMaterTwo.setProductCode(bsFormulaChildInfo.getProductCode()); |
| | | getMaterTwo.setOperationType("2"); |
| | | List<BsFormulaChildInfo> operationType = bsFormulaChildInfoMapper.selectBsFormulaChildInfoList(getMaterTwo); |
| | | List<String> collect = operationType.stream().map(BsFormulaChildInfo::getResults).collect(Collectors.toList()); |
| | |
| | | public AjaxResult workpieceRelease(BsFormulaChildInfo bsFormulaChildInfo) { |
| | | this.clearCollectDataAndResultsByProcessesCode(bsFormulaChildInfo); |
| | | try { |
| | | daParamCollectionService.pushGeelycvMesFeedback(bsFormulaChildInfo.getProductBarcode(), bsFormulaChildInfo.getLocationCode()); |
| | | String locationCode = bsFormulaChildInfo.getLocationCode(); |
| | | if(locationCode.equals("POP301")||locationCode.equals("PPOP241")||locationCode.equals("PPOP242")){ |
| | | daParamCollectionService.jrmPushGeelycvMesFeedback(bsFormulaChildInfo.getProductBarcode(), bsFormulaChildInfo.getLocationCode(),bsFormulaChildInfo.getProductCode()); |
| | | }else { |
| | | daParamCollectionService.pushGeelycvMesFeedback(bsFormulaChildInfo.getProductBarcode(), bsFormulaChildInfo.getLocationCode()); |
| | | } |
| | | }catch (Exception e){ |
| | | } |
| | | return AjaxResult.success(); |
| | |
| | | Boolean b = true; |
| | | BsFormulaChildInfo getMaterTwo = new BsFormulaChildInfo(); |
| | | getMaterTwo.setProcessesCode(bsFormulaChildInfo.getLocationCode()); |
| | | getMaterTwo.setProductCode(bsFormulaChildInfo.getProductCode()); |
| | | getMaterTwo.setOperationType("2"); |
| | | List<BsFormulaChildInfo> operationType = bsFormulaChildInfoMapper.selectBsFormulaChildInfoList(getMaterTwo); |
| | | List<String> collect = operationType.stream().map(BsFormulaChildInfo::getResults).collect(Collectors.toList()); |