| | |
| | | pipeInfo.setOutMod(PipeOutModType.IN.getValue()); //入模 |
| | | pipeInfo.setPipeNum(UUIDUtils.createPipeNum(proNumber,countPipeInPro)); |
| | | //pipeInfo.setRingNum(); |
| | | RingCompleteCheck completeCheck = pipeInfoMapper.queryRingCompleteByMod(mould.getMouldNum(),pipeInfo.getProId()); |
| | | if(completeCheck==null){ |
| | | List<RingCompleteCheck> completeCheckList = pipeInfoMapper.queryRingCompleteByMod(mould.getMouldNum(),pipeInfo.getProId()); |
| | | if(completeCheckList.isEmpty()){ |
| | | int maxRingNum = pipeInfoMapper.queryMaxRingNum(userInfo.getCompanyId()); |
| | | pipeInfo.setRingNum(UUIDUtils.createRingNum(maxRingNum)); |
| | | }else { |
| | | pipeInfo.setRingNum(completeCheck.getRingnum()); |
| | | pipeInfo.setRingNum(completeCheckList.get(0).getRingnum()); |
| | | } |
| | | pipeInfoMapper.insert(pipeInfo); |
| | | pipeInfoMapper.updateSysMouldFree(new MouldFree(pipeInfo.getModId(), MouldFreeType.AL_USE.getValue())); |