From b8d92d652c34fe0c65e11dfdb9cad1f026116cf4 Mon Sep 17 00:00:00 2001
From: 吴学文 <wuxuewen@wuxuewendeMacBook-Pro.local>
Date: 星期六, 20 七月 2019 23:39:30 +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