Sfoglia il codice sorgente

添加员工服务端bug修复

wuxw 7 anni fa
parent
commit
28c643cc4d

+ 3 - 3
Api/src/main/java/com/java110/api/listener/users/AddStaffServiceListener.java

@@ -109,13 +109,13 @@ public class AddStaffServiceListener extends AbstractServiceApiDataFlowListener{
         business.put(CommonConstant.HTTP_BUSINESS_TYPE_CD, BusinessTypeConstant.BUSINESS_TYPE_SAVE_STORE_USER);
         business.put(CommonConstant.HTTP_SEQ,1);
         business.put(CommonConstant.HTTP_INVOKE_MODEL,CommonConstant.HTTP_INVOKE_MODEL_S);
-
+        JSONArray businessStoreUsers = new JSONArray();
         JSONObject businessStoreUser = new JSONObject();
         businessStoreUser.put("storeId",paramInJson.getString("storeId"));
         businessStoreUser.put("userId",paramInJson.getString("userId"));
         businessStoreUser.put("relCd",paramInJson.getString("relCd"));
-
-        business.getJSONObject(CommonConstant.HTTP_BUSINESS_DATAS).put("businessStoreUser",businessStoreUser);
+        businessStoreUsers.add(businessStoreUser);
+        business.getJSONObject(CommonConstant.HTTP_BUSINESS_DATAS).put("businessStoreUser",businessStoreUsers);
 
         return business;
     }

+ 2 - 2
StoreService/doc/addStaff.json

@@ -17,11 +17,11 @@
     "serviceName": "添加员工",
     "remark": "备注",
     "datas": {
-      "businessStoreUser": {
+      "businessStoreUser": [{
         "storeId": "-1",
         "userId": "用户ID",
         "relCd": "齐天超时(王府井店)"
-      }
+      }]
     },
     "attrs": [{
       "specCd": "配置的字段ID",