-- UPDATE t0 SET F_CYG_TEXT = (CASE t0.FSEQ WHEN 1 THEN '预付' WHEN 2 THEN '发货' WHEN 3 THEN '到货' WHEN 4 THEN '验收' WHEN 5 THEN '质保' END)
--     ,FRecAdvanceRate = (CASE t0.FSEQ WHEN 1 THEN 100 ELSE 0 END)

SELECT F_CYG_TEXT
    ,FRecAdvanceRate
    ,(CASE t0.FSEQ 
        WHEN 1 THEN '预付' 
        WHEN 2 THEN '发货'
        WHEN 3 THEN '到货'
        WHEN 4 THEN '验收'
        WHEN 5 THEN '质保'
    END)
    ,(CASE t0.FSEQ WHEN 1 THEN 100 ELSE 0 END)
FROM T_CRM_CONTRACTPLAN t0
WHERE t0.F_CYG_TEXT = '' OR t0.F_CYG_TEXT IS NULL