From b31a0b4f0237cafa08a4d66786cfef822d5430fb Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期一, 21 十月 2019 23:21:45 +0800
Subject: [PATCH] 优化编辑 物品

---
 WebService/src/main/java/com/java110/web/smo/resourceStore/impl/AddResourceStoreSMOImpl.java |   11 +++++++----
 1 files changed, 7 insertions(+), 4 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..c5a9cb2 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,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;
@@ -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