From 4ff738f377504fe8f2296df18cf7d0123641cdd9 Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期四, 17 十月 2019 22:11:03 +0800
Subject: [PATCH] 优化调用微服务时的报错
---
WebService/src/main/java/com/java110/web/smo/org/impl/AddOrgSMOImpl.java | 6 ++++--
1 files changed, 4 insertions(+), 2 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..45e30fa 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,6 +2,7 @@
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;
@@ -33,7 +34,7 @@
Assert.hasKeyAndValue(paramIn, "orgName", "蹇呭~锛岃濉啓缁勭粐鍚嶇О");
Assert.hasKeyAndValue(paramIn, "orgLevel", "蹇呭~锛岃濉啓鎶ヤ慨浜哄悕绉�");
Assert.hasKeyAndValue(paramIn, "parentOrgId", "蹇呭~锛岃閫夋嫨涓婄骇ID");
- Assert.hasKeyAndValue(paramIn, "description", "蹇呭~锛岃濉啓鎻忚堪");
+ //Assert.hasKeyAndValue(paramIn, "description", "蹇呭~锛岃濉啓鎻忚堪");
super.checkUserHasPrivilege(pd, restTemplate, PrivilegeCodeConstant.LIST_ORG);
@@ -43,8 +44,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