wu
2024-11-14 5780c58879296cfced72012c8831c1d3cf4dafb2
springboot-vue3/src/main/java/com/example/springboot/service/SpianServiceNew.java
@@ -49,13 +49,17 @@
        } else {
            // 判断玻璃是否进入大片笼
            if (glassInfo.getThickness() > 4 &&glassInfo.getWidth()>= 1500) {
            if (glassInfo.getThickness() > 14) {
                cage = albaniaMapper.SelectNewCell(3, 5);
            } else {
                cage = albaniaMapper.SelectNewCell(0, 4);
                // System.out.println(cage + "理片笼判断");
            }
            //当小片笼子不够,则符合条件的可以进入大片笼
            if(cage==null&&glassInfo.getWidth()>= 1500&&glassInfo.getThickness() > 4){
                cage = albaniaMapper.SelectNewCell(3, 5);
            }
            // 当返回的格子号为空时,返回400笼子已满
            if (cage != null) {
                albaniaMapper.AddCage(cage.getId(), glassid, width, height, 1, glasstype, 0, thickness,