| | |
| | | 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()); |