From 96635bb4355a84c388e980b19a333e846a19a04a Mon Sep 17 00:00:00 2001 From: x_z Date: Fri, 21 Oct 2022 14:21:15 +0800 Subject: [PATCH] =?UTF-8?q?1.=E6=89=B9=E9=87=8F=E6=9B=B4=E6=96=B0=E5=8C=BB?= =?UTF-8?q?=E9=99=A2=E5=AE=A2=E6=88=B7=E5=85=B3=E8=81=94=E5=85=B3=E7=B3=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../glxp/udi/admin/service/info/PlatformService.java | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/glxp/udi/admin/service/info/PlatformService.java b/src/main/java/com/glxp/udi/admin/service/info/PlatformService.java index 0e15fd7..1812833 100644 --- a/src/main/java/com/glxp/udi/admin/service/info/PlatformService.java +++ b/src/main/java/com/glxp/udi/admin/service/info/PlatformService.java @@ -241,11 +241,13 @@ public class PlatformService { //更新当前客户关联数据的所有key List list = unitMaintainPlatformDao.selectByCustomerId(unitMaintainPlatform.getCustomerId()); - for (UnitMaintainPlatform maintainPlatform : list) { - maintainPlatform.setAppid(unitMaintainPlatform.getAppid()); - maintainPlatform.setApiKey(unitMaintainPlatform.getApiKey()); - maintainPlatform.setSecretKey(unitMaintainPlatform.getSecretKey()); - unitMaintainPlatformDao.updateById(maintainPlatform); + if (CollUtil.isNotEmpty(list)) { + for (UnitMaintainPlatform maintainPlatform : list) { + maintainPlatform.setAppid(unitMaintainPlatform.getAppid()); + maintainPlatform.setApiKey(unitMaintainPlatform.getApiKey()); + maintainPlatform.setSecretKey(unitMaintainPlatform.getSecretKey()); + unitMaintainPlatformDao.updateById(maintainPlatform); + } } }