case when wfo.StatusSchema in ('draft','rm.approved') then 'draft' when wfo.StatusSchema in ('biz.approved','delay.approved','delay.approved.supplement','delay.submit','delay.zjlapproved','delay.zjlapproved.supplement','rm.supplement.approved','supplement.approved') then 'biz.approved' when wfo.StatusSchema in ('returning','return.confirm','delivery.confirm') then 'return.confirm' when wfo.StatusSchema in ('delivery.reject','claim.confirm','claim.reject','claim.submit','claim.approved') then 'claim.confirm' else wfo.StatusSchema end as TotalStatusSchema