这个设计复杂了,只要day week month即可
SELECT * FROM ${CONCATENATE("MODULE_ACCESS_LOG_","控件名")}
SELECT * FROM ${CONCATENATE("MODULE_ACCESS_LOG_",""+控件名+"")}
直接在SQL里判断
你都写好sql了
那就数据集直接
${控件名}
select * from module_access_log_${if(type="年月","day",if(type="年周","week","month"))}