@byted-apaas/server-sdk-node 1.1.15-beta.1 → 1.1.15-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/context/db/impl/object.js +2 -0
- package/package.json +1 -1
- package/request/openapi.js +3 -2
|
@@ -571,6 +571,7 @@ class _KQuery {
|
|
|
571
571
|
}
|
|
572
572
|
else {
|
|
573
573
|
let criterion = (0, logic_1.buildCriterion)(queryBuilder.getLogic(), apiName, maxId);
|
|
574
|
+
server_common_node_1.utils.printInfoLog(`walkRecordsByLimitOffset start, criterion: ${JSON.stringify(criterion)}, logID: ${server_common_node_1.utils.getLogID()}`);
|
|
574
575
|
rs = await Request.GetInstance().getRecordsOrCountByCriterion(apiName, await (0, logic_1.handleCriterion)(criterion), queryBuilder.fuzzySearch, orders, false, selectFields, i, newLimit, false, this.authType);
|
|
575
576
|
}
|
|
576
577
|
queryCount += rs.length;
|
|
@@ -580,6 +581,7 @@ class _KQuery {
|
|
|
580
581
|
}
|
|
581
582
|
}
|
|
582
583
|
catch (err) {
|
|
584
|
+
server_common_node_1.utils.printInfoLog(`walkRecordsByLimitOffset err, rs: ${JSON.stringify(rs)}, err: ${JSON.stringify(err)}, logID: ${server_common_node_1.utils.getLogID()}`);
|
|
583
585
|
throw err;
|
|
584
586
|
}
|
|
585
587
|
if (rs.length < queryBuilder_1.defaultLimit) {
|
package/package.json
CHANGED
package/request/openapi.js
CHANGED
|
@@ -285,7 +285,6 @@ function handleResponse(objectAPIName, data, needCount) {
|
|
|
285
285
|
}
|
|
286
286
|
}
|
|
287
287
|
async function getRecordsOrCountByCriterion(objectApiName, criterion, fuzzySearch, order, ignoreBackLookupField, fieldApiNames, offset, limit, needCount, authType) {
|
|
288
|
-
console.log(criterion);
|
|
289
288
|
// 1.check
|
|
290
289
|
if (!objectApiName) {
|
|
291
290
|
throw new exceptions.InternalError('objectApiName is empty');
|
|
@@ -319,7 +318,9 @@ async function getRecordsOrCountByCriterion(objectApiName, criterion, fuzzySearc
|
|
|
319
318
|
if (authType) {
|
|
320
319
|
options.headers[constants_3.AuthTypeHttpHeader] = authType;
|
|
321
320
|
}
|
|
321
|
+
utils.printInfoLog(`getRecordsOrCountByCriterion start, options: ${JSON.stringify(options)}, urlPath: ${urlPath}, logID: ${utils.getLogID()}`);
|
|
322
322
|
let data = await openapi.doRequest(null, urlPath, options);
|
|
323
|
+
utils.printInfoLog(`getRecordsOrCountByCriterion end, options: ${JSON.stringify(options)}, result: ${JSON.stringify(data)}, urlPath: ${urlPath}, logID: ${utils.getLogID()}`);
|
|
323
324
|
return handleResponse(objectApiName, data, needCount);
|
|
324
325
|
}
|
|
325
326
|
/**
|
|
@@ -610,7 +611,7 @@ async function getGlobalConfigByKey(key) {
|
|
|
610
611
|
'biz_type': 'GlobalVariables',
|
|
611
612
|
'used_by': 'UsedBySystem',
|
|
612
613
|
'filter': {
|
|
613
|
-
'offset':
|
|
614
|
+
'offset': pageSize * i,
|
|
614
615
|
'limit': pageSize,
|
|
615
616
|
},
|
|
616
617
|
};
|