create view lc_fund_income_transfer as SELECT LC.PAYMENT_NUMBER  AS PAYMENT_NUMBER,
       LC.PAY_TYPE        AS PAY_TYPE,
       LC.FEE_TYPE        AS FEE_TYPE,
       LC.PLAN_LIST       AS PLAN_LIST,
       sum(LC.FACT_MONEY) AS FACT_MONEY,
       sum(LC.FEE_ADJUST) AS FEE_ADJUST
FROM APZL.LC_FUND_INCOME LC
WHERE ((LC.PAY_STATUS = 'have_paid') OR
       ((CASE WHEN (LC.PAY_TYPE = 'pay_type_in') THEN ((LC.PAY_STATUS = 'apply_pass') OR isnull(LC.PAY_STATUS)) ELSE 0 END) AND (LC.ROLL_BACK = '0')))
GROUP BY LC.PAYMENT_NUMBER, LC.PAY_TYPE, LC.FEE_TYPE, LC.PLAN_LIST;

-- comment on column lc_fund_income_transfer.payment_number not supported: 投放编号

-- comment on column lc_fund_income_transfer.pay_type not supported: 收付类型

-- comment on column lc_fund_income_transfer.fee_type not supported: 费用类型

-- comment on column lc_fund_income_transfer.plan_list not supported: 计划期次

