数据表有一时间字段,做个下拉框,有三个值,‘年','月','周'。选择年就查出去年的时间个数和今年的时间个数、选择月就查出当月的时间个数和上个月的时间个数、选择周就查出当周的时间个数和上周的时间个数。应该怎么做?
https://help.fanruan.com/finereport/doc-view-1992.html 参考