From 27195ad1226f53664d080738da91f12f30f522ad Mon Sep 17 00:00:00 2001 From: du <1725534722@qq.com> Date: Wed, 11 Dec 2024 15:39:33 +0800 Subject: [PATCH] bugfix --- .../ruoyi/tc/service/impl/AssetAppServiceImpl.java | 12 ++++++++---- .../tc/service/impl/AssetEmailServiceImpl.java | 12 ++++++++---- .../service/impl/AssetMiniProgramsServiceImpl.java | 12 ++++++++---- .../impl/AssetOfficialAccountServiceImpl.java | 13 +++++++++---- 4 files changed, 33 insertions(+), 16 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tc/service/impl/AssetAppServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/tc/service/impl/AssetAppServiceImpl.java index 59e4579..71b5b43 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tc/service/impl/AssetAppServiceImpl.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tc/service/impl/AssetAppServiceImpl.java @@ -104,10 +104,14 @@ public class AssetAppServiceImpl extends ServiceImpl i public Boolean edit(AssetApp assetApp) { updateById(assetApp); AssetAppCpPo one = assetAppCpService.lambdaQuery().eq(AssetAppCpPo::getAssetId, assetApp.getId()).one(); - BeanUtil.copyProperties(assetApp, one); - one.setTaskId(unitService.selectTaskId(assetApp.getSsdw(), "4")); - one.setAssetId(assetApp.getId()); - return assetAppCpService.updateById(one); + if (one != null) { + BeanUtil.copyProperties(assetApp, one); + one.setTaskId(unitService.selectTaskId(assetApp.getSsdw(), "4")); + one.setAssetId(assetApp.getId()); + return assetAppCpService.updateById(one); + }else { + return true; + } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tc/service/impl/AssetEmailServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/tc/service/impl/AssetEmailServiceImpl.java index 33fffad..948ddf6 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tc/service/impl/AssetEmailServiceImpl.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tc/service/impl/AssetEmailServiceImpl.java @@ -104,9 +104,13 @@ public class AssetEmailServiceImpl extends ServiceImpl