if(count(split(period,","))=1,sql("数据连接","select * from xxx where quarter_id='"+CONCATENATE(INDEXOFARRAY(REVERSEARRAY(split(period,",")),1))+"'",1),sql("数据连接","select * from xxx where month_id='"+REPLACE(INDEXOFARRAY(REVERSEARRAY(split(period,",")),1),'-','')+"'",1))