| | |
| | | import com.thhy.mobile.modules.biz.pipeinfo.entity.MaterialInfo; |
| | | import com.thhy.mobile.modules.biz.pipeinfo.entity.PipeInfo; |
| | | import com.thhy.mobile.modules.biz.pipeinfo.mapper.PipeInfoMapper; |
| | | import com.thhy.mobile.modules.biz.steelcheck.entity.SteelStockRecord; |
| | | import com.thhy.mobile.modules.biz.steelproduce.entity.ProduceDto; |
| | | import com.thhy.mobile.modules.biz.steelproduce.entity.SteelProduce; |
| | | import com.thhy.mobile.modules.biz.steelproduce.mapper.SteelProduceMapper; |
| | |
| | | if(compareResult){//匹配成功 |
| | | //更改钢筋笼产品入模状态 |
| | | steelProduceMapper.updateisModel(new ProduceDto(1,modCheckDto.getProduceNumber())); |
| | | //钢筋笼库存记录 |
| | | SteelStockRecord steelStockRecord = new SteelStockRecord(steelProduce,true); |
| | | steelStockRecord.setModCheckId(mouldCheck.getModCheckId()); |
| | | steelStockMapper.insertSteelStockRecord(steelStockRecord); |
| | | //减掉钢筋笼库存 |
| | | steelStockMapper.updateMinusStock(new SteelStock(steelProduce)); |
| | | //更新模具循环次数 |
| | |
| | | String proId = modCheckDto.getProId(); |
| | | |
| | | try { |
| | | if(ringNum.length()>6){ |
| | | if(ringNum.length()>4){ |
| | | throw new BasicException(BasicStatus.RING_NOT_DIS); |
| | | } |
| | | Integer.parseInt(ringNum); |
| | |
| | | throw new BasicException(BasicStatus.RING_NOT_DIS); |
| | | } |
| | | |
| | | String newRingNum = UUIDUtils.addZeroNoPlus(Integer.parseInt(ringNum),5); |
| | | String newRingNum = UUIDUtils.addZeroNoPlus(Integer.parseInt(ringNum),4); |
| | | |
| | | int count = pipeInfoMapper.countByRingNum(newRingNum); |
| | | if(count>0){ |