create table c_org_customer
(
    ID                varchar(32)    not null
        primary key,
    ORG_ID            varchar(32)    null comment '所属部门（船公司，可空）',
    CODE              varchar(32)    null comment '客户代码',
    NAME              varchar(80)    null comment '中文名称',
    SHORT_NAME        varchar(20)    null comment '中文简称',
    E_CODE            varchar(80)    null comment '英文名称',
    E_SHORT_NAME      varchar(20)    null comment '英文简称',
    ABLETIME          datetime       null comment '有效时间',
    C_TYPE            decimal        null comment '客户类型（1集团2码头3船公司4货主）',
    AREA_CODE         varchar(20)    null comment '区域代码',
    AREA              varchar(20)    null comment '所属区域',
    ADDRESS           varchar(80)    null comment '联系地址',
    ZIP               varchar(10)    null comment '邮政编码',
    BIZ_LINKMAN       varchar(20)    null comment '业务联系人',
    TEL               varchar(18)    null comment '电话',
    TELEX             varchar(18)    null comment '电传',
    FAX               varchar(18)    null comment '传真',
    FINANCE_LINKMAN   varchar(20)    null comment '财务联系人',
    EMAIL             varchar(40)    null comment 'EMAIL地址',
    EMAIL_FILE        varchar(80)    null comment '邮箱文件',
    FILE_FORMAT       varchar(80)    null comment '文件格式',
    WEBSITE           varchar(200)   null comment '网站地址',
    EMPTY_PRICE_TYPE  decimal        null comment '空箱计费方式（1免天方式2按保有量3箱管理费）',
    MIN_CONTAINER     decimal        null comment '保有量',
    DEFAULT_PROTOCOL  varchar(80)    null comment '默认协议',
    CREDIT_LIMIT      decimal(12, 2) null comment '信用额度',
    PROTOCOL_ABLETIME datetime       null comment '协议有效期',
    PAY_TYPE          decimal        null comment '付款方式（1支票2现金3预售4转账）',
    ACCOUNT_TYPE      decimal        null comment '结算方式(1现金2月结3托收单)',
    RESERVE_PRICE     decimal(10, 2) null comment '备用金额',
    REMARK            text           null comment '备注',
    CREATEUSER        varchar(32)    null,
    CREATED_ON        datetime       null comment '录入时间',
    UPDATEUSER        varchar(32)    null,
    UPDATETIME        datetime       null,
    DELETED           decimal        null comment '是否删除（0=可用，1=删除）',
    REGEDIT_STATUS    decimal        null comment '申请状态（0=未批复1=验证通过2验证未通过）',
    GOV_CODE          varchar(50)    null comment '工商注册码',
    TENANCY_ID        varchar(32)    null comment '租户',
    PAR_ORG_ID        varchar(36)    null comment '上级节点组织机构码',
    STATE_FLAG        varchar(36)    null,
    ORG_NAME          varchar(36)    null
);

INSERT INTO ag_devmysql.c_org_customer (ID, ORG_ID, CODE, NAME, SHORT_NAME, E_CODE, E_SHORT_NAME, ABLETIME, C_TYPE, AREA_CODE, AREA, ADDRESS, ZIP, BIZ_LINKMAN, TEL, TELEX, FAX, FINANCE_LINKMAN, EMAIL, EMAIL_FILE, FILE_FORMAT, WEBSITE, EMPTY_PRICE_TYPE, MIN_CONTAINER, DEFAULT_PROTOCOL, CREDIT_LIMIT, PROTOCOL_ABLETIME, PAY_TYPE, ACCOUNT_TYPE, RESERVE_PRICE, REMARK, CREATEUSER, CREATED_ON, UPDATEUSER, UPDATETIME, DELETED, REGEDIT_STATUS, GOV_CODE, TENANCY_ID, PAR_ORG_ID, STATE_FLAG, ORG_NAME) VALUES ('0042VXLXZ5HW6', 'XLG002', 'CC1', '可可', null, null, null, null, 4, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2, null, null, null, 'xlmtjx', '2017-04-10 13:22:52', 'zsmt001', '2017-04-14 12:59:35', 0, 0, 'D5', 'XLG', null, '0', null);
INSERT INTO ag_devmysql.c_org_customer (ID, ORG_ID, CODE, NAME, SHORT_NAME, E_CODE, E_SHORT_NAME, ABLETIME, C_TYPE, AREA_CODE, AREA, ADDRESS, ZIP, BIZ_LINKMAN, TEL, TELEX, FAX, FINANCE_LINKMAN, EMAIL, EMAIL_FILE, FILE_FORMAT, WEBSITE, EMPTY_PRICE_TYPE, MIN_CONTAINER, DEFAULT_PROTOCOL, CREDIT_LIMIT, PROTOCOL_ABLETIME, PAY_TYPE, ACCOUNT_TYPE, RESERVE_PRICE, REMARK, CREATEUSER, CREATED_ON, UPDATEUSER, UPDATETIME, DELETED, REGEDIT_STATUS, GOV_CODE, TENANCY_ID, PAR_ORG_ID, STATE_FLAG, ORG_NAME) VALUES ('0042VXLXZ5I69', '0042RNWFB84UU', 'C4', '测试1', null, null, null, null, 4, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2, null, null, null, 'zsmtjx', '2017-04-12 09:57:01', 'zsmt001', '2017-04-14 14:59:52', 0, 0, 'OO', 'ZSG', null, '1', null);
INSERT INTO ag_devmysql.c_org_customer (ID, ORG_ID, CODE, NAME, SHORT_NAME, E_CODE, E_SHORT_NAME, ABLETIME, C_TYPE, AREA_CODE, AREA, ADDRESS, ZIP, BIZ_LINKMAN, TEL, TELEX, FAX, FINANCE_LINKMAN, EMAIL, EMAIL_FILE, FILE_FORMAT, WEBSITE, EMPTY_PRICE_TYPE, MIN_CONTAINER, DEFAULT_PROTOCOL, CREDIT_LIMIT, PROTOCOL_ABLETIME, PAY_TYPE, ACCOUNT_TYPE, RESERVE_PRICE, REMARK, CREATEUSER, CREATED_ON, UPDATEUSER, UPDATETIME, DELETED, REGEDIT_STATUS, GOV_CODE, TENANCY_ID, PAR_ORG_ID, STATE_FLAG, ORG_NAME) VALUES ('0042VXLXZ5JBZ', '0042RNWFB84TJ', 'CC', 'CC', null, null, null, null, 4, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2, null, null, null, 'zsmtdb', '2017-04-12 09:59:58', 'zsmt001', '2017-04-15 15:13:31', 0, 0, 'CSF', 'ZSG', null, '2', null);
INSERT INTO ag_devmysql.c_org_customer (ID, ORG_ID, CODE, NAME, SHORT_NAME, E_CODE, E_SHORT_NAME, ABLETIME, C_TYPE, AREA_CODE, AREA, ADDRESS, ZIP, BIZ_LINKMAN, TEL, TELEX, FAX, FINANCE_LINKMAN, EMAIL, EMAIL_FILE, FILE_FORMAT, WEBSITE, EMPTY_PRICE_TYPE, MIN_CONTAINER, DEFAULT_PROTOCOL, CREDIT_LIMIT, PROTOCOL_ABLETIME, PAY_TYPE, ACCOUNT_TYPE, RESERVE_PRICE, REMARK, CREATEUSER, CREATED_ON, UPDATEUSER, UPDATETIME, DELETED, REGEDIT_STATUS, GOV_CODE, TENANCY_ID, PAR_ORG_ID, STATE_FLAG, ORG_NAME) VALUES ('0042VXLXZ5JGA', '0101', 'XLDEBAO', 'A', null, null, null, null, 4, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2, null, null, null, 'xlmtdb', '2017-04-10 13:51:11', 'zsmt001', '2017-04-14 13:35:07', 0, 0, 'A', 'XLG', null, '0', null);
INSERT INTO ag_devmysql.c_org_customer (ID, ORG_ID, CODE, NAME, SHORT_NAME, E_CODE, E_SHORT_NAME, ABLETIME, C_TYPE, AREA_CODE, AREA, ADDRESS, ZIP, BIZ_LINKMAN, TEL, TELEX, FAX, FINANCE_LINKMAN, EMAIL, EMAIL_FILE, FILE_FORMAT, WEBSITE, EMPTY_PRICE_TYPE, MIN_CONTAINER, DEFAULT_PROTOCOL, CREDIT_LIMIT, PROTOCOL_ABLETIME, PAY_TYPE, ACCOUNT_TYPE, RESERVE_PRICE, REMARK, CREATEUSER, CREATED_ON, UPDATEUSER, UPDATETIME, DELETED, REGEDIT_STATUS, GOV_CODE, TENANCY_ID, PAR_ORG_ID, STATE_FLAG, ORG_NAME) VALUES ('0042WK3UBH1U1', '0042RNWFB84TJ', 'TCL', '342', null, null, null, null, 4, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2, null, null, null, 'zsmtdb', '2017-04-12 10:08:41', 'zsmt001', '2017-04-15 15:59:55', 0, 0, 'ETCL001', 'ZSG', null, '2', null);
INSERT INTO ag_devmysql.c_org_customer (ID, ORG_ID, CODE, NAME, SHORT_NAME, E_CODE, E_SHORT_NAME, ABLETIME, C_TYPE, AREA_CODE, AREA, ADDRESS, ZIP, BIZ_LINKMAN, TEL, TELEX, FAX, FINANCE_LINKMAN, EMAIL, EMAIL_FILE, FILE_FORMAT, WEBSITE, EMPTY_PRICE_TYPE, MIN_CONTAINER, DEFAULT_PROTOCOL, CREDIT_LIMIT, PROTOCOL_ABLETIME, PAY_TYPE, ACCOUNT_TYPE, RESERVE_PRICE, REMARK, CREATEUSER, CREATED_ON, UPDATEUSER, UPDATETIME, DELETED, REGEDIT_STATUS, GOV_CODE, TENANCY_ID, PAR_ORG_ID, STATE_FLAG, ORG_NAME) VALUES ('0042X8QYC41B9', '0042RNWFB84UU', 'WC', '纬创', null, null, null, null, 4, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2, null, null, null, 'zsmtjx', '2017-04-14 16:43:43', 'zsmt001', '2017-04-15 14:47:06', 0, 0, 'WC001', 'ZSG', null, '1', null);
INSERT INTO ag_devmysql.c_org_customer (ID, ORG_ID, CODE, NAME, SHORT_NAME, E_CODE, E_SHORT_NAME, ABLETIME, C_TYPE, AREA_CODE, AREA, ADDRESS, ZIP, BIZ_LINKMAN, TEL, TELEX, FAX, FINANCE_LINKMAN, EMAIL, EMAIL_FILE, FILE_FORMAT, WEBSITE, EMPTY_PRICE_TYPE, MIN_CONTAINER, DEFAULT_PROTOCOL, CREDIT_LIMIT, PROTOCOL_ABLETIME, PAY_TYPE, ACCOUNT_TYPE, RESERVE_PRICE, REMARK, CREATEUSER, CREATED_ON, UPDATEUSER, UPDATETIME, DELETED, REGEDIT_STATUS, GOV_CODE, TENANCY_ID, PAR_ORG_ID, STATE_FLAG, ORG_NAME) VALUES ('0042XI31RRHS8', 'XLG002', 'WC', '纬创', null, null, null, null, 4, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2, null, null, null, 'xlmtjx', '2017-04-15 17:02:10', 'xlmtjx', '2017-04-15 17:02:10', 0, 0, 'WC001', 'XLG', null, '0', null);
INSERT INTO ag_devmysql.c_org_customer (ID, ORG_ID, CODE, NAME, SHORT_NAME, E_CODE, E_SHORT_NAME, ABLETIME, C_TYPE, AREA_CODE, AREA, ADDRESS, ZIP, BIZ_LINKMAN, TEL, TELEX, FAX, FINANCE_LINKMAN, EMAIL, EMAIL_FILE, FILE_FORMAT, WEBSITE, EMPTY_PRICE_TYPE, MIN_CONTAINER, DEFAULT_PROTOCOL, CREDIT_LIMIT, PROTOCOL_ABLETIME, PAY_TYPE, ACCOUNT_TYPE, RESERVE_PRICE, REMARK, CREATEUSER, CREATED_ON, UPDATEUSER, UPDATETIME, DELETED, REGEDIT_STATUS, GOV_CODE, TENANCY_ID, PAR_ORG_ID, STATE_FLAG, ORG_NAME) VALUES ('0042XI31RRIOF', 'XLG002', 'CCCCCC', 'jjj', null, null, null, null, 4, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2, null, null, null, 'xlmtjx', '2017-04-15 17:20:45', 'xlmtjx', '2017-04-15 17:20:45', 0, 0, '88', 'XLG', null, '0', null);
INSERT INTO ag_devmysql.c_org_customer (ID, ORG_ID, CODE, NAME, SHORT_NAME, E_CODE, E_SHORT_NAME, ABLETIME, C_TYPE, AREA_CODE, AREA, ADDRESS, ZIP, BIZ_LINKMAN, TEL, TELEX, FAX, FINANCE_LINKMAN, EMAIL, EMAIL_FILE, FILE_FORMAT, WEBSITE, EMPTY_PRICE_TYPE, MIN_CONTAINER, DEFAULT_PROTOCOL, CREDIT_LIMIT, PROTOCOL_ABLETIME, PAY_TYPE, ACCOUNT_TYPE, RESERVE_PRICE, REMARK, CREATEUSER, CREATED_ON, UPDATEUSER, UPDATETIME, DELETED, REGEDIT_STATUS, GOV_CODE, TENANCY_ID, PAR_ORG_ID, STATE_FLAG, ORG_NAME) VALUES ('0042XI31RRJ0G', '0042RNWFB84TJ', 'W', '一', null, null, null, null, 4, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2, null, null, null, 'zsmtdb', '2017-04-15 17:27:12', 'zsmtdb', '2017-04-15 17:27:12', 0, 0, 'TT6', 'ZSG', null, '0', '中山德宝');
