From aadb08cd106dc21e50fa7a42f55d993f9a8380b8 Mon Sep 17 00:00:00 2001 From: lau572 <1010031226@qq.com> Date: Fri, 20 Sep 2024 15:56:38 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E5=A4=87=20=E4=B8=8D=E9=80=9A?= =?UTF-8?q?=E8=BF=87=E6=A1=A9=E5=8F=B7=E8=8E=B7=E5=8F=96=E7=BB=8F=E7=BA=AC?= =?UTF-8?q?=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/zc/business/service/impl/DcDeviceServiceImpl.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/zc-business/src/main/java/com/zc/business/service/impl/DcDeviceServiceImpl.java b/zc-business/src/main/java/com/zc/business/service/impl/DcDeviceServiceImpl.java index fa16041f..a9fc7693 100644 --- a/zc-business/src/main/java/com/zc/business/service/impl/DcDeviceServiceImpl.java +++ b/zc-business/src/main/java/com/zc/business/service/impl/DcDeviceServiceImpl.java @@ -238,13 +238,13 @@ public class DcDeviceServiceImpl extends ServiceImpl i dcDevice.setCreateTime(new Date()); dcDevice.setUseState(DcDevice.UNUSEDSTATE); - if (Objects.nonNull(dcDevice.getStakeMark())){ + /*if (Objects.nonNull(dcDevice.getStakeMark())){ DcStakeMark dcStakeMark = dcStakeMarkService.getStakeMark(dcDevice.getStakeMark()); if (Objects.nonNull(dcStakeMark)){ dcDevice.setLongitude(dcStakeMark.getLongitude()); dcDevice.setLatitude(dcStakeMark.getLatitude()); } - } + }*/ if (save(dcDevice)) { // 更新缓存 @@ -290,13 +290,13 @@ public class DcDeviceServiceImpl extends ServiceImpl i } dcDevice.setUpdateTime(new Date()); - if (Objects.nonNull(dcDevice.getStakeMark())){ + /*if (Objects.nonNull(dcDevice.getStakeMark())){ DcStakeMark dcStakeMark = dcStakeMarkService.getStakeMark(dcDevice.getStakeMark()); if (Objects.nonNull(dcStakeMark)){ dcDevice.setLongitude(dcStakeMark.getLongitude()); dcDevice.setLatitude(dcStakeMark.getLatitude()); } - } + }*/ if (updateById(dcDevice)) { // 更新缓存