From 2ba50d5b31c452753022518d1a6b5448add8ed9b Mon Sep 17 00:00:00 2001 From: psh Date: Sun, 28 Apr 2024 14:35:27 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9C=8B=E6=9D=BFfix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../nl/wms/pdm/service/impl/PdmBdWorkorderServiceImpl.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/pdm/service/impl/PdmBdWorkorderServiceImpl.java b/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/pdm/service/impl/PdmBdWorkorderServiceImpl.java index b6f066f..35c36ca 100644 --- a/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/pdm/service/impl/PdmBdWorkorderServiceImpl.java +++ b/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/pdm/service/impl/PdmBdWorkorderServiceImpl.java @@ -114,8 +114,10 @@ public class PdmBdWorkorderServiceImpl extends ServiceImpl() .eq(PdmBdWorkorder::getWorkorder_code, workorder_code)); - entity.setWorkorder_status(workorder_status); - pdmBdWorkorderMapper.updateById(entity); + if(ObjectUtil.isNotEmpty(entity)) { + entity.setWorkorder_status(workorder_status); + pdmBdWorkorderMapper.updateById(entity); + } pdmBdWorkorderDetailMapper.delete(new LambdaQueryWrapper().eq(PdmBdWorkorderDetail::getWorkorder_code, workorder_code)); } }