create view lc_fund_income_temp_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_TEMP LC
WHERE ((LC.IS_FLOWING = '0') AND (LC.ROLL_BACK = '0') AND
       (CASE WHEN ((LC.PAY_TYPE = 'pay_type_out') AND (LC.PAY_STATUS IS NOT NULL)) THEN 0 ELSE 1 END))
GROUP BY LC.PAYMENT_NUMBER, LC.PAY_TYPE, LC.FEE_TYPE, LC.PLAN_LIST;

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

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

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

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

