with tt as (select A.GID, CASE WHEN A.IsApp='是' THEN 'APP' else '' end 'APP', CASE WHEN A.IsSmallApp='是' THEN '小程序' else '' end 'SmallApp' from Order A ) select A.SalePrice,A.SaleStatus, --销售参与渠道 --(A.IsApp+','+A.IsSmallApp), --CASE WHEN A.IsApp='是'…