create view vi_autodistribute as SELECT O.ID AS ID, VO.OVER_DAYS AS OVER_DAYS, O.PROJECT_MANAGE AS PROJECT_MANAGE
FROM ((((APZL.LB_CONTRACT_INFO O LEFT JOIN APZL.LB_UNION_LESSEE LUL ON ((LUL.CONTRACT_ID = O.ID))) LEFT JOIN APZL.OVERDUE_DUNNING_INFO ODI ON ((ODI.CONTRACT_ID = O.ID))) LEFT JOIN APZL.USER_INFO UI ON ((UI.USERID = ODI.PART_DEPT)))
LEFT JOIN APZL.VI_OVERDUE_RENT_PLAN_SUM VO ON ((VO.CONTRACT_ID = O.ID)))
WHERE ((LUL.IS_MAIN = 'Y') AND (O.CONTRACT_STATUS = '31') AND (O.BUSINESSTYPE = '1') AND (VO.OVER_MONEY > 0));

-- comment on column vi_autodistribute.id not supported: 编号

-- comment on column vi_autodistribute.PROJECT_MANAGE not supported: 项目经理

