From 5a89e575ed8f6a2629cd002f0ba1452b8c8e39fe Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期六, 25 一月 2020 12:36:43 +0800
Subject: [PATCH] 优化停车位信息

---
 WebService/src/main/java/com/java110/web/smo/org/impl/AddOrgSMOImpl.java |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/WebService/src/main/java/com/java110/web/smo/org/impl/AddOrgSMOImpl.java b/WebService/src/main/java/com/java110/web/smo/org/impl/AddOrgSMOImpl.java
index d3d3d5f..d65a547 100644
--- a/WebService/src/main/java/com/java110/web/smo/org/impl/AddOrgSMOImpl.java
+++ b/WebService/src/main/java/com/java110/web/smo/org/impl/AddOrgSMOImpl.java
@@ -2,10 +2,11 @@
 
 import com.alibaba.fastjson.JSONObject;
 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;
-import com.java110.web.core.AbstractComponentSMO;
+import com.java110.core.component.AbstractComponentSMO;
 import com.java110.web.smo.org.IAddOrgSMO;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.http.HttpMethod;
@@ -33,7 +34,8 @@
         Assert.hasKeyAndValue(paramIn, "orgName", "蹇呭~锛岃濉啓缁勭粐鍚嶇О");
         Assert.hasKeyAndValue(paramIn, "orgLevel", "蹇呭~锛岃濉啓鎶ヤ慨浜哄悕绉�");
         Assert.hasKeyAndValue(paramIn, "parentOrgId", "蹇呭~锛岃閫夋嫨涓婄骇ID");
-        Assert.hasKeyAndValue(paramIn, "description", "蹇呭~锛岃濉啓鎻忚堪");
+        Assert.hasKeyAndValue(paramIn, "belongCommunityId", "蹇呭~锛岃閫夋嫨闅跺睘灏忓尯");
+        //Assert.hasKeyAndValue(paramIn, "description", "蹇呭~锛岃濉啓鎻忚堪");
 
 
         super.checkUserHasPrivilege(pd, restTemplate, PrivilegeCodeConstant.LIST_ORG);
@@ -43,8 +45,9 @@
     @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/org.saveOrg",
                 HttpMethod.POST);

--
Gitblit v1.8.0