sum(if())
sum(if(a.order_sun_type=1,price,0))
sum函数返回一个值类型的数值,如果a.order_sun_type=1,则返回price
如果a.order_sun_type不等于1就返回0。
count(if())
count(IF(a.order_sun_type=0,TRUE,NULL))
count(if(a.order_sun_type=0,true,null)) 中count函数返回一个布尔值类型的数值,如果a.order_sun_type=0,返回true,如果order_sun_type不等于0返回null