From afe3952e5fbf565cba6a2e4da82eec89f383fd4c Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期一, 22 一月 2024 22:20:17 +0800
Subject: [PATCH] 优化代码

---
 service-job/src/main/java/com/java110/job/adapt/hcIotNew/SendCommunityDataToIotAdapt.java |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/service-job/src/main/java/com/java110/job/adapt/hcIotNew/SendCommunityDataToIotAdapt.java b/service-job/src/main/java/com/java110/job/adapt/hcIotNew/SendCommunityDataToIotAdapt.java
index 8c54944..ebba972 100644
--- a/service-job/src/main/java/com/java110/job/adapt/hcIotNew/SendCommunityDataToIotAdapt.java
+++ b/service-job/src/main/java/com/java110/job/adapt/hcIotNew/SendCommunityDataToIotAdapt.java
@@ -154,7 +154,7 @@
         paramIn.put("cityCode", communityDtos.get(0).getCityCode());
         paramIn.put("tel", communityDtos.get(0).getTel());
         paramIn.put("storeId", storeDtos.get(0).getStoreId());
-        paramIn.put("storeName", storeDtos.get(0).getStoreName());
+        paramIn.put("storeName", storeDtos.get(0).getName());
         ResultVo resultVo = sendIotImpl.post("/iot/api/community.addCommunityApi", paramIn);
 
         if (resultVo.getCode() != ResultVo.CODE_OK) {
@@ -179,6 +179,9 @@
 
         JSONObject staff = null;
         for (StoreUserDto tmpStoreUserDto : storeUserDtos) {
+            if(StoreUserDto.REL_CD_MANAGER.equals(tmpStoreUserDto.getRelCd())){
+                continue;
+            }
             try {
                 staff = new JSONObject();
                 staff.put("propertyId", storeDto.getStoreId());

--
Gitblit v1.8.0