create view vi_lc_ebank as SELECT LCE.ID                                                                                                         AS ID,
       LCE.EBANK_NUMBER                                                                                               AS EBANK_NUMBER,
       LCE.EBANK_SN                                                                                                   AS EBANK_SN,
       LCE.CUSTOMER_ID                                                                                                AS CUSTOMER_ID,
       CI.CUSTOMERNAME                                                                                                AS CUSTOMERNAME,
       LCE.CLIENT_NAME                                                                                                AS CLIENT_NAME,
       LCE.FACT_DATE                                                                                                  AS FACT_DATE,
       LCE.FACT_MONEY                                                                                                 AS FACT_MONEY,
       LCE.INVALID                                                                                                    AS INVALID,
       LCE.NOWITH_MONEY                                                                                               AS NOWITH_MONEY,
       (((ifnull(LCR.RENT, 0) + ifnull(LCR.PENALTY, 0)) + ifnull(LCF.FUNDMONEY, 0)) + ifnull(LCEP.PROCESSMONEY, 0))   AS HAD_MONEY,
       ((LCE.FACT_MONEY - ifnull(LCE.NOWITH_MONEY, 0)) -
        (((ifnull(LCR.RENT, 0) + ifnull(LCR.PENALTY, 0)) + ifnull(LCF.FUNDMONEY, 0)) + ifnull(LCEP.PROCESSMONEY, 0))) AS MAYOPE_MONEY,
       LCE.OWN_BANK                                                                                                   AS OWN_BANK,
       LCE.OWN_ACCOUNT                                                                                                AS OWN_ACCOUNT,
       LCE.OWNACC_NUMBER                                                                                              AS OWNACC_NUMBER,
       LCE.CLIENT_ACCOUNT                                                                                             AS CLIENT_ACCOUNT,
       LCE.CLIENT_BANK                                                                                                AS CLIENT_BANK,
       LCE.CLIENT_ACC_NUMBER                                                                                          AS CLIENT_ACC_NUMBER
FROM ((((APZL.LC_EBANK LCE LEFT JOIN APZL.CUSTOMER_INFO CI ON ((LCE.CUSTOMER_ID = CI.CUSTOMERID))) LEFT JOIN APZL.LC_RENT_INCOME_EB_TRANSFER LCR ON ((LCE.ID = LCR.EBANK_NUMBER))) LEFT JOIN APZL.LC_FUND_INCOME_EB_TRANSFER LCF ON ((LCE.ID = LCF.EBANK_NUMBER)))
LEFT JOIN APZL.LC_EBANK_PROCESS_TRANSFER LCEP ON ((LCEP.EBANK_NUMBER = LCE.ID)));

-- comment on column vi_lc_ebank.id not supported: 标识

-- comment on column vi_lc_ebank.ebank_number not supported: 网银编号

-- comment on column vi_lc_ebank.ebank_sn not supported: 流水号

-- comment on column vi_lc_ebank.customer_id not supported: 客户名称

-- comment on column vi_lc_ebank.customername not supported: 客户名称

-- comment on column vi_lc_ebank.CLIENT_NAME not supported: 付款人

-- comment on column vi_lc_ebank.FACT_DATE not supported: 到账日期

-- comment on column vi_lc_ebank.FACT_MONEY not supported: 到账金额

-- comment on column vi_lc_ebank.INVALID not supported: 是否作废(伪删除)[是/否][s]

-- comment on column vi_lc_ebank.NOWITH_MONEY not supported: 非业务金额[与系统无关金额]

-- comment on column vi_lc_ebank.own_BANK not supported: 本方银行

-- comment on column vi_lc_ebank.own_ACCOUNT not supported: 本方账户

-- comment on column vi_lc_ebank.ownACC_NUMBER not supported: 本方账号

-- comment on column vi_lc_ebank.CLIENT_ACCOUNT not supported: 收/付方名称

-- comment on column vi_lc_ebank.CLIENT_BANK not supported: 收/付方开户行名

-- comment on column vi_lc_ebank.CLIENT_ACC_NUMBER not supported: 收/付方帐号

