From 9e29441646434d9f54a2c3e855a724633885d8a4 Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期二, 13 八月 2019 19:43:49 +0800
Subject: [PATCH] 缓存开发测试完成

---
 WebService/src/main/java/com/java110/web/smo/community/impl/AddCommunitySMOImpl.java |   17 ++++++++++++-----
 1 files changed, 12 insertions(+), 5 deletions(-)

diff --git a/WebService/src/main/java/com/java110/web/smo/community/impl/AddCommunitySMOImpl.java b/WebService/src/main/java/com/java110/web/smo/community/impl/AddCommunitySMOImpl.java
index 78fb31e..828825b 100644
--- a/WebService/src/main/java/com/java110/web/smo/community/impl/AddCommunitySMOImpl.java
+++ b/WebService/src/main/java/com/java110/web/smo/community/impl/AddCommunitySMOImpl.java
@@ -4,14 +4,15 @@
 import com.java110.common.constant.PrivilegeCodeConstant;
 import com.java110.common.constant.ServiceConstant;
 import com.java110.common.util.Assert;
+import com.java110.entity.component.ComponentValidateResult;
+import com.java110.web.smo.community.IAddCommunitySMO;
+import org.springframework.web.client.RestTemplate;
 import com.java110.core.context.IPageData;
 import com.java110.web.core.AbstractComponentSMO;
-import com.java110.web.smo.community.IAddCommunitySMO;
+import org.springframework.stereotype.Service;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.http.HttpMethod;
 import org.springframework.http.ResponseEntity;
-import org.springframework.stereotype.Service;
-import org.springframework.web.client.RestTemplate;
 
 /**
  * 娣诲姞灏忓尯鏈嶅姟瀹炵幇绫�
@@ -28,7 +29,11 @@
 
         //super.validatePageInfo(pd);
 
-        Assert.hasKeyAndValue(paramIn, "xxx", "xxx");
+        //Assert.hasKeyAndValue(paramIn, "xxx", "xxx");
+        Assert.hasKeyAndValue(paramIn, "name", "蹇呭~锛岃濉啓灏忓尯鍚嶇О");
+Assert.hasKeyAndValue(paramIn, "address", "蹇呭~锛岃濉啓灏忓尯鍦板潃");
+Assert.hasKeyAndValue(paramIn, "nearbyLandmarks", "蹇呭~锛岃濉啓灏忓尯闄勮繎鍦版爣");
+
 
 
         super.checkUserHasPrivilege(pd, restTemplate, PrivilegeCodeConstant.AGENT_HAS_LIST_COMMUNITY);
@@ -38,8 +43,10 @@
     @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());
+        paramIn.put("storeTypeCd", result.getStoreTypeCd());
         responseEntity = this.callCenterService(restTemplate, pd, paramIn.toJSONString(),
                 ServiceConstant.SERVICE_API_URL + "/api/community.saveCommunity",
                 HttpMethod.POST);

--
Gitblit v1.8.0