semanticdb-core 1.1.35 → 1.1.37
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/dist/result/index.js +3 -3
- package/package.json +1 -1
package/dist/result/index.js
CHANGED
|
@@ -14,17 +14,17 @@ const logicformResultToMarkdown = (ret, number_only) => {
|
|
|
14
14
|
if (result.length === 0)
|
|
15
15
|
return '没有数据';
|
|
16
16
|
let markdownText = '';
|
|
17
|
-
if (logicform.groupby && total !== undefined && total !== null) {
|
|
17
|
+
if ((logicform.groupby || (0, logicform_utils_1.isSimpleQuery)(logicform)) && total !== undefined && total !== null) {
|
|
18
18
|
markdownText += `总记录数: ${total}\n`;
|
|
19
19
|
}
|
|
20
20
|
if (!logicform.groupby && !(0, logicform_utils_1.isSimpleQuery)(logicform)) {
|
|
21
|
-
markdownText
|
|
21
|
+
markdownText += columnProperties
|
|
22
22
|
.map((p) => (number_only ? '' : (p.name + ': ')) +
|
|
23
23
|
(0, property_utils_1.formatWithProperty)(p.ref ? schemas[p.ref] : schemas[logicform.schema], p, result[0][p.name], true))
|
|
24
24
|
.join(',');
|
|
25
25
|
}
|
|
26
26
|
else {
|
|
27
|
-
markdownText
|
|
27
|
+
markdownText +=
|
|
28
28
|
'\n' +
|
|
29
29
|
(0, json2md_1.default)([
|
|
30
30
|
{
|