wuyouming666
2024-05-29 75375a0f68c8b91799482dc1cd2ec7d7f211167f
springboot-vue3/src/main/java/com/example/springboot/service/SpianService.java
@@ -67,7 +67,7 @@
        // String orderid="A001";
        // 获取铝框相关度最高的笼子排序
        List<StorageCage> storageCage = spianMapper.selectAllFbarcode(FrameBarcode, widths, 400);
        List<StorageCage> storageCage = spianMapper.selectAllFbarcode(FrameBarcode, widths, 600);
        // 判断铝框指定空格是否需要间隔空间
        if (storageCage.size() == 0) {
@@ -91,7 +91,7 @@
            // 判断是否是第二片需要加间隔物
            prctier = spianMapper.selectsum(cage1, storageCage2.getCell());// 传给prc的格子内玻璃数
            if (prctier > 0) {
                cages1 = spianMapper.selectCage1(cage1, storageCage2.getCell(), widths + 400);
                cages1 = spianMapper.selectCage1(cage1, storageCage2.getCell(), widths + 600);
            } else {
                cages1 = spianMapper.selectCage1(cage1, storageCage2.getCell(), widths);
            }
@@ -413,7 +413,7 @@
        spianMapper.UpdateCageOver(glassid.toString(), 0);// 更改笼子表出片状态
        spianMapper.UpdateCageadd(glassid.toString(), 1);// 更改笼子表进片状态
        String barcode = spianMapper.SelectBarcode(glassid.toString());// 获取该玻璃的铝框id
        spianMapper.UpdateAddQueue(glassid.toString());// 把进片的玻璃更新到出片队列中
        //spianMapper.UpdateAddQueue(glassid.toString());// 把进片的玻璃更新到出片队列中
        
    }