liyong
2026-05-20 b0bbbf71d1e6ecdbe4abbcc39127f5aac6502f1e
src/main/java/com/ruoyi/production/service/impl/ProductionPrintOrderServiceImpl.java
@@ -104,10 +104,11 @@
        productOrderMapper.updateById(productOrder);
        LambdaQueryWrapper<ProductionPrintOrder> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(ProductionPrintOrder::getProductOrderId,dto.getProductModelId());
        queryWrapper.eq(ProductionPrintOrder::getProductOrderId,dto.getProductOrderId());
        queryWrapper.last("limit 1");
        ProductionPrintOrder ifExitPrint = productionPrintOrderMapper.selectOne(queryWrapper);
        if (ifExitPrint == null) {
            productionPrintOrder.setId(null);
            productionPrintOrderMapper.insert(productionPrintOrder);
        }else {
            productionPrintOrder.setId(ifExitPrint.getId());