📦 deps(tsl): sync tsl-playbook from a71480a4

Source-Commit: a71480a4ae
This commit is contained in:
ci[bot]
2026-08-12 08:38:08 +08:00
parent 683f83d17c
commit 670ba950a6
1496 changed files with 292667 additions and 220122 deletions
@@ -0,0 +1,65 @@
# 数据仓库 / 选股与取数
## `defaultRepId()`
声明:function
返回默认报告期ID。 函数首先获得系统参数getsysparam('DefaultRepID'),如果能获取值,则返回该数据;否则,获取今天的日期,返回最近的中报或年报。判断如下: 1)1-3月:返回去年中报; 2)4-9月:返回去年年报: 3)10-12月:返回今年中报
<!-- tags: 数据仓库 选股与取数 返回 获取 ID -->
返回:int
### 示例
范例01:调用函数
```tsl
oV := BackUpSystemParameters2();
setsysparam(pn_stock(), 'SZ000002');
RDate := DefaultRepID();
V := ReportNew(46002, RDate);
return v;
```
## `evalstring(s)`
声明:function
内核使用,返回表达式s的值
<!-- tags: 数据仓库 选股与取数 -->
| 参数 | 类型 | 说明 |
| ---- | ------ | -------------- |
| `s` | string | 字符串,表达式 |
返回:int
### 示例
范例01:返回:4
```tsl
return evalstring('1+3');
// 输出:4
```
## `qwpMaxCount()`
声明:function
定义最大数据个数。对于账号'sri-sjtu','yyw','debugaccount',返回1000000,即最大数据个数是1000000,其余账号返回50000
<!-- tags: 数据仓库 选股与取数 -->
返回:int
### 示例
范例01:返回:50000
```tsl
return QWPMaxCount();
// 输出:50000
```