组合输入

组合输入用于将多个表单项组合到一起,实现深层结构的数据编辑。

(视频)

以下是在组合输入中加入时间范围控件的操作案例用到的代码:

{% set combo_list = combo|str_split(";") %}
select * from  `演示数据`
where 1=1 
{% if combo %} and `销售日期`>='{{combo_list[0]|str_split(",")|first}}' and `销售日期`<= '{{combo_list[0]|str_split(",")|last}}' {% endif %}

问题没有解决?请留言提问

results matching ""

    No results matching ""