File tree Expand file tree Collapse file tree
v2/user_manual/dataset_description Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5600,9 +5600,15 @@ <h2 id="4-sql">4 SQL 语句动态传参设置<a class="headerlink" href="#4-sql"
56005600</ code > </ pre > </ div > </ p >
56015601</ div >
56025602< div class ="admonition abstract ">
5603- < p > 时间范围传参使用两个时查询条件间,分别绑定【开始时间】和【结束时间】参数,设置展示类型为时间。</ p >
5603+ < p > < strong > 时间范围参数绑定:</ strong > 当需要按时间范围查询时,需要在 SQL 中定义两个参数,分别用于接收开始时间和结束时间;并在查询组件中分别绑定这两个参数。</ p >
5604+ < ol >
5605+ < li > 在 SQL 数据集的【参数设置】中,将开始时间和结束时间参数的参数类型设置为【时间】,并根据字段实际格式设置时间格式。</ li >
5606+ < li > 在仪表板中添加时间范围查询组件。</ li >
5607+ < li > 在查询组件配置中,将展示类型设置为【时间范围】;在【参数】页签中,分别将开始时间参数和结束时间参数关联为【开始时间】和【结束时间】。</ li >
5608+ < li > 保存后,查询组件选择的时间范围会分别传入两个 SQL 参数。</ li >
5609+ </ ol >
56045610</ div >
5605- < p > < img alt ="过滤组件设置参数设置 " src ="../../img/dataset_configuration/时间传参搭配过滤组件 .png " width ="900px " /> </ p >
5611+ < p > < img alt ="时间范围查询组件参数绑定示例 " src ="../../img/dataset_configuration/时间范围参数绑定 .png " width ="900px " /> </ p >
56065612< div class ="admonition abstract ">
56075613< p > < strong > SQL 动态参数与过滤组件的区别:</ strong > </ p >
56085614< ul >
@@ -5739,4 +5745,4 @@ <h2 id="5">5 设置数据表间关联关系<a class="headerlink" href="#5" title
57395745 </ script >
57405746
57415747 </ body >
5742- </ html >
5748+ </ html >
You can’t perform that action at this time.
0 commit comments