From 972304a4018bad35d9496c2a3312c741308dbb4d Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期五, 28 二月 2020 11:19:06 +0800
Subject: [PATCH] 优化图片显示问题

---
 WebService/src/main/java/com/java110/web/smo/resourceStore/impl/AddResourceStoreSMOImpl.java |   13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/WebService/src/main/java/com/java110/web/smo/resourceStore/impl/AddResourceStoreSMOImpl.java b/WebService/src/main/java/com/java110/web/smo/resourceStore/impl/AddResourceStoreSMOImpl.java
index e5edbe4..1cb95fd 100644
--- a/WebService/src/main/java/com/java110/web/smo/resourceStore/impl/AddResourceStoreSMOImpl.java
+++ b/WebService/src/main/java/com/java110/web/smo/resourceStore/impl/AddResourceStoreSMOImpl.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.resourceStore.IAddResourceStoreSMO;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.http.HttpMethod;
@@ -31,10 +32,10 @@
 
         //Assert.hasKeyAndValue(paramIn, "xxx", "xxx");
         Assert.hasKeyAndValue(paramIn, "resName", "蹇呭~锛岃濉啓鐗╁搧鍚嶇О");
-        Assert.hasKeyAndValue(paramIn, "resCode", "蹇呭~锛岃濉啓鐗╁搧缂栫爜");
+        //Assert.hasKeyAndValue(paramIn, "resCode", "蹇呭~锛岃濉啓鐗╁搧缂栫爜");
         Assert.hasKeyAndValue(paramIn, "price", "蹇呭~锛岃濉啓鐗╁搧浠锋牸");
-        Assert.hasKeyAndValue(paramIn, "stock", "蹇呭~锛岃濉啓鐗╁搧搴撳瓨");
-        Assert.hasKeyAndValue(paramIn, "description", "蹇呭~锛岃濉啓鎻忚堪");
+        //Assert.hasKeyAndValue(paramIn, "stock", "蹇呭~锛岃濉啓鐗╁搧搴撳瓨");
+        //Assert.hasKeyAndValue(paramIn, "description", "蹇呭~锛岃濉啓鎻忚堪");
 
 
         super.checkUserHasPrivilege(pd, restTemplate, PrivilegeCodeConstant.AGENT_HAS_LIST_RESOURCESTORE);
@@ -44,7 +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/resourceStore.saveResourceStore",

--
Gitblit v1.8.0