From 8694090b2e1a9d40110a81878052c9576ebfb108 Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期日, 22 十二月 2019 12:31:43 +0800
Subject: [PATCH] 优化地区查询功能

---
 WebService/src/main/java/com/java110/web/smo/applicationKey/impl/AddApplicationKeySMOImpl.java |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/WebService/src/main/java/com/java110/web/smo/applicationKey/impl/AddApplicationKeySMOImpl.java b/WebService/src/main/java/com/java110/web/smo/applicationKey/impl/AddApplicationKeySMOImpl.java
index f85b32a..ef06c5e 100644
--- a/WebService/src/main/java/com/java110/web/smo/applicationKey/impl/AddApplicationKeySMOImpl.java
+++ b/WebService/src/main/java/com/java110/web/smo/applicationKey/impl/AddApplicationKeySMOImpl.java
@@ -3,6 +3,7 @@
 import com.alibaba.fastjson.JSONObject;
 import com.java110.core.component.AbstractComponentSMO;
 import com.java110.core.context.IPageData;
+import com.java110.entity.component.ComponentValidateResult;
 import com.java110.utils.constant.PrivilegeCodeConstant;
 import com.java110.utils.constant.ServiceConstant;
 import com.java110.utils.util.Assert;
@@ -12,7 +13,6 @@
 import org.springframework.http.ResponseEntity;
 import org.springframework.stereotype.Service;
 import org.springframework.web.client.RestTemplate;
-
 
 
 /**
@@ -32,6 +32,7 @@
 
         //Assert.hasKeyAndValue(paramIn, "xxx", "xxx");
         Assert.hasKeyAndValue(paramIn, "name", "蹇呭~锛岃濉啓濮撳悕");
+        Assert.hasKeyAndValue(paramIn, "communityId", "蹇呭~锛岃濉啓灏忓尯ID");
         Assert.hasKeyAndValue(paramIn, "tel", "蹇呭~锛岃濉啓鎵嬫満鍙�");
         Assert.hasKeyAndValue(paramIn, "typeCd", "蹇呭~锛岃閫夋嫨鐢ㄦ埛绫诲瀷");
         Assert.hasKeyAndValue(paramIn, "sex", "蹇呭~锛岃閫夋嫨鎬у埆");
@@ -50,8 +51,8 @@
     @Override
     protected ResponseEntity<String> doBusinessProcess(IPageData pd, JSONObject paramIn) {
         ResponseEntity<String> responseEntity = null;
-        super.validateStoreStaffCommunityRelationship(pd, restTemplate);
-
+        ComponentValidateResult result = super.validateStoreStaffCommunityRelationship(pd, restTemplate);
+        paramIn.put("storeId", result.getStoreId());
         responseEntity = this.callCenterService(restTemplate, pd, paramIn.toJSONString(),
                 ServiceConstant.SERVICE_API_URL + "/api/applicationKey.saveApplicationKey",
                 HttpMethod.POST);

--
Gitblit v1.8.0