Explorar o código

将返回rows换为datas

wuxw %!s(int64=7) %!d(string=hai) anos
pai
achega
c81f1b52b2

+ 1 - 1
Api/src/main/java/com/java110/api/listener/users/QueryStaffServiceListener.java

@@ -79,7 +79,7 @@ public class QueryStaffServiceListener extends AbstractServiceApiDataFlowListene
         //然后根据userId 在用户服务查询用户信息
         JSONObject staffs = JSONObject.parseObject(responseEntity.getBody().toString());
 
-        JSONArray rows = staffs.getJSONArray("rows");
+        JSONArray rows = staffs.getJSONArray("datas");
 
         appService = DataFlowFactory.getService(dataFlowContext.getAppId(), ServiceCodeConstant.SERVICE_CODE_QUERY_USER_USERINFO);
         if(appService == null){

+ 1 - 1
WebService/src/main/java/com/java110/web/smo/impl/StaffServiceSMOImpl.java

@@ -89,7 +89,7 @@ public class StaffServiceSMOImpl extends BaseComponentSMO implements IStaffServi
             return responseEntity;
         }
 
-        String result = "{'total':1,'page':1,'row':10,'data':[" +
+        String result = "{'total':1,'page':1,'row':10,'datas':[" +
                 "{'userId':'111','name':'123','email':'928255095@qq.com','address':'张安1','sex':'男','tel':'17797173944','statusCd':'0','createTime':'2019-03-19'}," +
                 "{'userId':'111','name':'123','email':'928255095@qq.com','address':'张安2','sex':'男','tel':'17797173945','statusCd':'0','createTime':'2019-03-19'}," +
                 "{'userId':'111','name':'123','email':'928255095@qq.com','address':'张安3','sex':'男','tel':'17797173946','statusCd':'0','createTime':'2019-03-19'}" +

+ 1 - 1
WebService/src/main/resources/components/staff/staff.js

@@ -27,7 +27,7 @@
                                  param,
                                  function(json){
                                     var _staffInfo = JSON.parse(json);
-                                    vc.component.staffData = _staffInfo.data;
+                                    vc.component.staffData = _staffInfo.datas;
                                     vc.component.$emit('pagination_info_event',{
                                         total:_staffInfo.total,
                                         currentPage:_staffInfo.page