SELECT
*
,CASE WHEN bu_code ='0202/0223'
      THEN (CASE WHEN pl_name = '小郎酒' THEN '小郎酒事业部'
                 WHEN pl_name IN ('郎牌特曲', '郎牌原浆', '新郎酒') THEN '郎牌特曲事业部'
                 WHEN pl_name in ('青花郎', '老郎酒', '藏品') THEN '青花郎事业部'END)
      ELSE bu_name END report_bu_name -- 报表事业部
,CASE WHEN office_name LIKE '%成都%'
      THEN '成都市场'
      ELSE region_name
      END AS report_region_name -- 报表大区
FROM dm.v_ag_sal_cust_flow
