bingbo
2023-11-26 5b0fccf7c888215763e812fdfdee98ce7322fcd0
hd/pipe/mobile/src/main/java/com/thhy/mobile/modules/biz/mouldcheck/service/impl/ModCheckServiceImpl.java
@@ -17,6 +17,7 @@
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;
@@ -141,6 +142,10 @@
                        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));
                            //更新模具循环次数
@@ -199,7 +204,7 @@
        String proId = modCheckDto.getProId();
        try {
            if(ringNum.length()>5){
            if(ringNum.length()>4){
                throw new BasicException(BasicStatus.RING_NOT_DIS);
            }
            Integer.parseInt(ringNum);
@@ -207,7 +212,7 @@
            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){