| | |
| | | private BsFormulaChildInfoMapper bsFormulaChildInfoMapper; |
| | | |
| | | @Autowired |
| | | private IBsFormulaChildInfoService bsFormulaChildInfoService; |
| | | |
| | | @Autowired |
| | | private DaParamCollectionMapper daParamCollectionMapper; |
| | | |
| | | @Autowired |
| | |
| | | BsFormulaChildInfo checkInfo = new BsFormulaChildInfo(); |
| | | checkInfo.setProcessesCode(bsFormulaChildInfo.getLocationCode()); |
| | | checkInfo.setProductCode(bsFormulaChildInfo.getProductCode()); |
| | | checkInfo.setMaterialCode(bsFormulaChildInfo.getScanBarcode().substring(1,2)); |
| | | // bsFormulaChildInfo.setMaterialCode(bsFormulaChildInfo.getScanBarcode().substring(1,2)); |
| | | // checkInfo.setMaterialCode(bsFormulaChildInfo.getScanBarcode()); |
| | | bsFormulaChildInfo.setMaterialCode(bsFormulaChildInfo.getScanBarcode().substring(1,2)); |
| | | List<BsFormulaChildInfo> bsFormulaChildInfos = bsFormulaChildInfoMapper.selectBsFormulaChildInfoList(checkInfo); |
| | | if(bsFormulaChildInfos.size()>0){ |
| | | String spareField4 = bsFormulaChildInfos.get(0).getSpareField4(); |
| | |
| | | |
| | | @Override |
| | | public AjaxResult workpieceRelease(BsFormulaChildInfo bsFormulaChildInfo) { |
| | | bsFormulaChildInfoMapper.workpieceRelease(bsFormulaChildInfo); |
| | | List<BsFormulaChildInfo> list = bsFormulaChildInfoService.list(new LambdaQueryWrapper<BsFormulaChildInfo>() |
| | | .eq(BsFormulaChildInfo::getProcessesCode, bsFormulaChildInfo.getLocationCode()) |
| | | .eq(BsFormulaChildInfo::getProductCode, bsFormulaChildInfo.getProductCode())); |
| | | for (BsFormulaChildInfo info : list) { |
| | | info.setSpareField4(""); |
| | | info.setResults(""); |
| | | bsFormulaChildInfoService.saveOrUpdate(info); |
| | | } |
| | | return AjaxResult.success(); |
| | | } |
| | | |