回答:${if((type='date'), if(len(source)!=0,"SELECT COUNT(1) AS countNumber, from_unixtime(createTime,'%Y-%m-%d')FROM account_info where from_unixtime(createTime,'%Y%m%d') >= '" + 开始日期 + "' and from_unixtime(createTime,'%Y%m%d')<='" + 结束日期 + "' and source= '" + source + "' GROUP BY from_unixtime(createTime,'%Y-%m-%d')","SELECT COUNT(1) AS countNumber, from_unixtime(createTime,'%Y-%m-%d')FROM account_info where from_unixtime(createTime,'%Y%m%d') >= '" + 开始日期 + "' and from_unixtime(createTime,'%Y%m%d')<='" + 结束日期 + "' GROUP BY from_unixtime(createTime,'%Y-%m-%d')"),"")}--已解决,可以嵌套