select attribute3,sum(amount) from dwd_yuntu_kcjkfx where 1=1 ${if(p_received_date_begin = "","","and received_date >= '" + p_received_date_begin + "'")} ${if(p_received_date_end = "","","and received_date <= '" + p_received_date_end + "'")} ${if(p_received_year="","","and received_year in('"+replace(p_received_year,",","','")+"')")} ${if(p_received_month="","","and received_month in('"+replace(p_received_month,",","','")+"')")} ${if(p_received_quarter="","","and received_quarter in('"+replace(p_received_quarter,",","','")+"')")} ${if(p_description="","","and description in('"+replace(p_description,",","','")+"')")} ${if(p_responsible_department="","","and responsible_department in('"+replace(p_responsible_department,",","','")+"')")} ${if(p_product_name="","","and product_name in('"+replace(p_product_name",","','")+"')")} ${if(p_attribute3="","","and attribute3 in('"+replace(p_attribute3,",","','")+"')")} ${if(p_product_xl="","","and product_xl in('"+replace(p_product_xl,",","','")+"')")}
${if(p_last_name="","","and last_name in('"+replace(p_last_name,",","','")+"')")} group by attribute3 这段sql 刷新不出来参数。我把sql拿出去 这个条件一个个复制进来 一个个刷新 参数就出来了,这是什么情况??? |