{
  "virtualflag" : 0,
  "psdataentityname" : "LEGAL",
  "decat" : "DEFAULT",
  "validflag" : 1,
  "logicvalid" : 0,
  "detype" : 1,
  "codename" : "Legal",
  "noviewmode" : 1,
  "createdate" : "2020-08-07 09:43:50",
  "storagemode" : 1,
  "logicname" : "法人",
  "existingmodel" : 0,
  "enatempdata" : 0,
  "systemflag" : 0,
  "tablename" : "LEGAL",
  "psdedbcfgs" : [ {
    "validflag" : 1,
    "createdate" : "2020-08-07 09:43:50",
    "psdedbcfgname" : "MYSQL5"
  } ],
  "psdedrgroups" : [ {
    "codename" : "Auto140",
    "createdate" : "2020-08-07 09:43:50",
    "psdedrgroupname" : "详细信息",
    "ordervalue" : 10000
  } ],
  "psdefields" : [ {
    "enableuserinput" : 3,
    "psdefieldname" : "CREATEDATE",
    "psdatatypename" : "日期时间型",
    "pssysdbcolumnid" : "DEFAULT/LEGAL/CREATEDATE",
    "validflag" : 1,
    "physicalfield" : 1,
    "codename" : "CreateDate",
    "psdatatypeid" : "DATETIME",
    "createdate" : "2020-08-07 09:43:50",
    "psdetableid" : "<PSDATAENTITY>/LEGAL",
    "predefinetype" : "CREATEDATE",
    "pkey" : 0,
    "length" : 8,
    "logicname" : "建立时间",
    "majorfield" : 0,
    "deftype" : 1,
    "allowempty" : 0,
    "fkey" : 0,
    "tablename" : "LEGAL",
    "psdefformitems" : [ {
      "codename" : "Default",
      "createdate" : "2020-08-07 09:43:50",
      "ftmode" : "DEFAULT",
      "psdefformitemname" : "[CREATEDATE][建立时间]"
    }, {
      "codename" : "MobileDefault",
      "createdate" : "2020-08-07 09:43:50",
      "ftmode" : "MOBILEDEFAULT",
      "psdefformitemname" : "[CREATEDATE][建立时间]移动端默认"
    } ],
    "psdefdtcols" : [ {
      "psdefdtcolname" : "CREATEDATE",
      "customdatatype" : 0,
      "dbtype" : "MYSQL5",
      "createdate" : "2020-08-07 09:43:50"
    } ]
  }, {
    "enableuserinput" : 3,
    "psdefieldname" : "CREATEMAN",
    "psdatatypename" : "文本，可指定长度",
    "pssysdbcolumnid" : "DEFAULT/LEGAL/CREATEMAN",
    "validflag" : 1,
    "physicalfield" : 1,
    "codename" : "CreateMan",
    "psdatatypeid" : "TEXT",
    "createdate" : "2020-08-07 09:43:50",
    "psdetableid" : "<PSDATAENTITY>/LEGAL",
    "predefinetype" : "CREATEMAN",
    "pkey" : 0,
    "length" : 60,
    "logicname" : "建立人",
    "majorfield" : 0,
    "deftype" : 1,
    "allowempty" : 0,
    "fkey" : 0,
    "tablename" : "LEGAL",
    "psdefformitems" : [ {
      "codename" : "Default",
      "createdate" : "2020-08-07 09:43:50",
      "ftmode" : "DEFAULT",
      "psdefformitemname" : "[CREATEMAN][建立人]"
    }, {
      "codename" : "MobileDefault",
      "createdate" : "2020-08-07 09:43:50",
      "ftmode" : "MOBILEDEFAULT",
      "psdefformitemname" : "[CREATEMAN][建立人]移动端默认"
    } ],
    "psdefdtcols" : [ {
      "psdefdtcolname" : "CREATEMAN",
      "customdatatype" : 0,
      "dbtype" : "MYSQL5",
      "createdate" : "2020-08-07 09:43:50"
    } ]
  }, {
    "enableuserinput" : 3,
    "psdefieldname" : "LEGALID",
    "psdatatypename" : "全局唯一标识，文本类型，用户不可见",
    "pssysdbcolumnid" : "DEFAULT/LEGAL/LEGALID",
    "validflag" : 1,
    "physicalfield" : 1,
    "codename" : "LegalId",
    "psdatatypeid" : "GUID",
    "createdate" : "2020-08-07 09:43:50",
    "psdetableid" : "<PSDATAENTITY>/LEGAL",
    "pkey" : 1,
    "length" : 100,
    "logicname" : "法人标识",
    "majorfield" : 0,
    "deftype" : 1,
    "allowempty" : 0,
    "fkey" : 0,
    "tablename" : "LEGAL",
    "psdefformitems" : [ {
      "codename" : "Default",
      "createdate" : "2020-08-07 09:43:50",
      "ftmode" : "DEFAULT",
      "psdefformitemname" : "[LEGALID][法人标识]"
    }, {
      "codename" : "MobileDefault",
      "createdate" : "2020-08-07 09:43:50",
      "ftmode" : "MOBILEDEFAULT",
      "psdefformitemname" : "[LEGALID][法人标识]移动端默认"
    } ],
    "psdefdtcols" : [ {
      "psdefdtcolname" : "LEGALID",
      "customdatatype" : 0,
      "dbtype" : "MYSQL5",
      "createdate" : "2020-08-07 09:43:50"
    } ]
  }, {
    "enableuserinput" : 3,
    "psdefieldname" : "LEGALNAME",
    "psdatatypename" : "文本，可指定长度",
    "pssysdbcolumnid" : "DEFAULT/LEGAL/LEGALNAME",
    "validflag" : 1,
    "physicalfield" : 1,
    "codename" : "LegalName",
    "psdatatypeid" : "TEXT",
    "createdate" : "2020-08-07 09:43:50",
    "psdetableid" : "<PSDATAENTITY>/LEGAL",
    "pkey" : 0,
    "length" : 200,
    "logicname" : "法人名称",
    "majorfield" : 1,
    "deftype" : 1,
    "allowempty" : 1,
    "fkey" : 0,
    "tablename" : "LEGAL",
    "psdefformitems" : [ {
      "codename" : "Default",
      "createdate" : "2020-08-07 09:43:50",
      "ftmode" : "DEFAULT",
      "psdefformitemname" : "[LEGALNAME][法人名称]"
    }, {
      "codename" : "MobileDefault",
      "createdate" : "2020-08-07 09:43:50",
      "ftmode" : "MOBILEDEFAULT",
      "psdefformitemname" : "[LEGALNAME][法人名称]移动端默认"
    } ],
    "psdefsfitems" : [ {
      "psdeid" : "<PSDATAENTITY>",
      "psdbvalueopid" : "LIKE",
      "psdbvalueopname" : "文本包含(%)",
      "psdefsfitemname" : "N_LEGALNAME_LIKE",
      "createdate" : "2020-08-07 09:43:50"
    } ],
    "psdefdtcols" : [ {
      "psdefdtcolname" : "LEGALNAME",
      "customdatatype" : 0,
      "dbtype" : "MYSQL5",
      "createdate" : "2020-08-07 09:43:50"
    } ]
  }, {
    "enableuserinput" : 3,
    "psdefieldname" : "ORGANIZATIONTYPE",
    "psdatatypename" : "继承属性",
    "validflag" : 1,
    "derpsdefid" : "<PSMODULE>/ORGANIZATION/ORGANIZATIONTYPE",
    "physicalfield" : 1,
    "codename" : "OrganizationType",
    "psdatatypeid" : "INHERIT",
    "derpsdefname" : "ORGANIZATIONTYPE",
    "createdate" : "2020-08-07 09:43:50",
    "pscodelistname" : "组织类型",
    "pkey" : 0,
    "length" : 60,
    "logicname" : "组织类型",
    "majorfield" : 0,
    "deftype" : 1,
    "allowempty" : 1,
    "fkey" : 0,
    "psdername" : "DERINHERIT_LEGAL_ORGANIZATION",
    "pscodelistid" : "<PSMODULE>/OrganizationType",
    "tablename" : "LEGAL",
    "psderid" : "<PSDATAENTITY>/DERINHERIT_LEGAL_ORGANIZATION",
    "psdefformitems" : [ {
      "codename" : "Default",
      "createdate" : "2020-08-07 09:43:50",
      "ftmode" : "DEFAULT",
      "psdefformitemname" : "[ORGANIZATIONTYPE][组织类型]"
    }, {
      "codename" : "MobileDefault",
      "createdate" : "2020-08-07 09:43:50",
      "ftmode" : "MOBILEDEFAULT",
      "psdefformitemname" : "[ORGANIZATIONTYPE][组织类型]移动端默认"
    } ],
    "psdefdtcols" : [ {
      "psdefdtcolname" : "ORGANIZATIONTYPE",
      "customdatatype" : 0,
      "dbtype" : "MYSQL5",
      "createdate" : "2020-08-07 09:43:50"
    } ]
  }, {
    "enableuserinput" : 3,
    "psdefieldname" : "ORGCODE",
    "psdatatypename" : "继承属性",
    "validflag" : 1,
    "derpsdefid" : "<PSMODULE>/ORGANIZATION/ORGCODE",
    "physicalfield" : 1,
    "codename" : "OrgCode",
    "psdatatypeid" : "INHERIT",
    "derpsdefname" : "ORGCODE",
    "createdate" : "2020-08-27 15:48:42",
    "pkey" : 0,
    "length" : 100,
    "logicname" : "组织编码",
    "majorfield" : 0,
    "deftype" : 1,
    "allowempty" : 1,
    "fkey" : 0,
    "psdername" : "DERINHERIT_LEGAL_ORGANIZATION",
    "tablename" : "LEGAL",
    "psderid" : "<PSDATAENTITY>/DERINHERIT_LEGAL_ORGANIZATION",
    "psdefformitems" : [ {
      "codename" : "Default",
      "createdate" : "2020-08-27 15:48:43",
      "ftmode" : "DEFAULT",
      "psdefformitemname" : "[ORGCODE][组织编码]"
    }, {
      "codename" : "MobileDefault",
      "createdate" : "2020-08-27 15:48:43",
      "ftmode" : "MOBILEDEFAULT",
      "psdefformitemname" : "[ORGCODE][组织编码]移动端默认"
    } ],
    "psdefdtcols" : [ {
      "psdefdtcolname" : "ORGCODE",
      "customdatatype" : 0,
      "dbtype" : "MYSQL5",
      "createdate" : "2020-08-27 15:48:42"
    } ]
  }, {
    "enableuserinput" : 3,
    "psdefieldname" : "ORGLEVEL",
    "psdatatypename" : "继承属性",
    "validflag" : 1,
    "derpsdefid" : "<PSMODULE>/ORGANIZATION/ORGLEVEL",
    "physicalfield" : 1,
    "codename" : "OrgLevel",
    "psdatatypeid" : "INHERIT",
    "derpsdefname" : "ORGLEVEL",
    "createdate" : "2020-08-27 15:48:42",
    "pkey" : 0,
    "length" : 4,
    "logicname" : "组织层级",
    "majorfield" : 0,
    "deftype" : 1,
    "allowempty" : 1,
    "fkey" : 0,
    "psdername" : "DERINHERIT_LEGAL_ORGANIZATION",
    "tablename" : "LEGAL",
    "psderid" : "<PSDATAENTITY>/DERINHERIT_LEGAL_ORGANIZATION",
    "psdefformitems" : [ {
      "codename" : "Default",
      "createdate" : "2020-08-27 15:48:42",
      "ftmode" : "DEFAULT",
      "psdefformitemname" : "[ORGLEVEL][组织层级]"
    }, {
      "codename" : "MobileDefault",
      "createdate" : "2020-08-27 15:48:42",
      "ftmode" : "MOBILEDEFAULT",
      "psdefformitemname" : "[ORGLEVEL][组织层级]移动端默认"
    } ],
    "psdefdtcols" : [ {
      "psdefdtcolname" : "ORGLEVEL",
      "customdatatype" : 0,
      "dbtype" : "MYSQL5",
      "createdate" : "2020-08-27 15:48:42"
    } ]
  }, {
    "enableuserinput" : 3,
    "psdefieldname" : "SHORTNAME",
    "psdatatypename" : "继承属性",
    "validflag" : 1,
    "derpsdefid" : "<PSMODULE>/ORGANIZATION/SHORTNAME",
    "physicalfield" : 1,
    "codename" : "ShortName",
    "psdatatypeid" : "INHERIT",
    "derpsdefname" : "SHORTNAME",
    "createdate" : "2020-08-27 15:48:43",
    "pkey" : 0,
    "length" : 100,
    "logicname" : "组织简称",
    "majorfield" : 0,
    "deftype" : 1,
    "allowempty" : 1,
    "fkey" : 0,
    "psdername" : "DERINHERIT_LEGAL_ORGANIZATION",
    "tablename" : "LEGAL",
    "psderid" : "<PSDATAENTITY>/DERINHERIT_LEGAL_ORGANIZATION",
    "psdefformitems" : [ {
      "codename" : "Default",
      "createdate" : "2020-08-27 15:48:43",
      "ftmode" : "DEFAULT",
      "psdefformitemname" : "[SHORTNAME][组织简称]"
    }, {
      "codename" : "MobileDefault",
      "createdate" : "2020-08-27 15:48:43",
      "ftmode" : "MOBILEDEFAULT",
      "psdefformitemname" : "[SHORTNAME][组织简称]移动端默认"
    } ],
    "psdefsfitems" : [ {
      "psdeid" : "<PSDATAENTITY>",
      "psdbvalueopid" : "LIKE",
      "psdbvalueopname" : "文本包含(%)",
      "psdefsfitemname" : "N_SHORTNAME_LIKE",
      "createdate" : "2021-02-03 15:33:28"
    } ],
    "psdefdtcols" : [ {
      "psdefdtcolname" : "SHORTNAME",
      "customdatatype" : 0,
      "dbtype" : "MYSQL5",
      "createdate" : "2020-08-27 15:48:43"
    } ]
  }, {
    "enableuserinput" : 3,
    "psdefieldname" : "SHOWORDER",
    "psdatatypename" : "继承属性",
    "validflag" : 1,
    "derpsdefid" : "<PSMODULE>/ORGANIZATION/SHOWORDER",
    "physicalfield" : 1,
    "codename" : "ShowOrder",
    "psdatatypeid" : "INHERIT",
    "derpsdefname" : "SHOWORDER",
    "createdate" : "2020-08-27 15:48:42",
    "pkey" : 0,
    "length" : 7,
    "logicname" : "排序号",
    "majorfield" : 0,
    "deftype" : 1,
    "allowempty" : 1,
    "fkey" : 0,
    "psdername" : "DERINHERIT_LEGAL_ORGANIZATION",
    "tablename" : "LEGAL",
    "psderid" : "<PSDATAENTITY>/DERINHERIT_LEGAL_ORGANIZATION",
    "psdefformitems" : [ {
      "codename" : "Default",
      "createdate" : "2020-08-27 15:48:42",
      "ftmode" : "DEFAULT",
      "psdefformitemname" : "[SHOWORDER][排序号]"
    }, {
      "codename" : "MobileDefault",
      "createdate" : "2020-08-27 15:48:42",
      "ftmode" : "MOBILEDEFAULT",
      "psdefformitemname" : "[SHOWORDER][排序号]移动端默认"
    } ],
    "psdefdtcols" : [ {
      "psdefdtcolname" : "SHOWORDER",
      "customdatatype" : 0,
      "dbtype" : "MYSQL5",
      "createdate" : "2020-08-27 15:48:42"
    } ]
  }, {
    "enableuserinput" : 3,
    "psdefieldname" : "UPDATEDATE",
    "psdatatypename" : "日期时间型",
    "pssysdbcolumnid" : "DEFAULT/LEGAL/UPDATEDATE",
    "validflag" : 1,
    "physicalfield" : 1,
    "codename" : "UpdateDate",
    "psdatatypeid" : "DATETIME",
    "createdate" : "2020-08-07 09:43:50",
    "psdetableid" : "<PSDATAENTITY>/LEGAL",
    "predefinetype" : "UPDATEDATE",
    "pkey" : 0,
    "length" : 8,
    "logicname" : "更新时间",
    "majorfield" : 0,
    "deftype" : 1,
    "allowempty" : 0,
    "fkey" : 0,
    "tablename" : "LEGAL",
    "psdefformitems" : [ {
      "codename" : "Default",
      "createdate" : "2020-08-07 09:43:50",
      "ftmode" : "DEFAULT",
      "psdefformitemname" : "[UPDATEDATE][更新时间]"
    }, {
      "codename" : "MobileDefault",
      "createdate" : "2020-08-07 09:43:50",
      "ftmode" : "MOBILEDEFAULT",
      "psdefformitemname" : "[UPDATEDATE][更新时间]移动端默认"
    } ],
    "psdefdtcols" : [ {
      "psdefdtcolname" : "UPDATEDATE",
      "customdatatype" : 0,
      "dbtype" : "MYSQL5",
      "createdate" : "2020-08-07 09:43:50"
    } ]
  }, {
    "enableuserinput" : 3,
    "psdefieldname" : "UPDATEMAN",
    "psdatatypename" : "文本，可指定长度",
    "pssysdbcolumnid" : "DEFAULT/LEGAL/UPDATEMAN",
    "validflag" : 1,
    "physicalfield" : 1,
    "codename" : "UpdateMan",
    "psdatatypeid" : "TEXT",
    "createdate" : "2020-08-07 09:43:50",
    "psdetableid" : "<PSDATAENTITY>/LEGAL",
    "predefinetype" : "UPDATEMAN",
    "pkey" : 0,
    "length" : 60,
    "logicname" : "更新人",
    "majorfield" : 0,
    "deftype" : 1,
    "allowempty" : 0,
    "fkey" : 0,
    "tablename" : "LEGAL",
    "psdefformitems" : [ {
      "codename" : "Default",
      "createdate" : "2020-08-07 09:43:50",
      "ftmode" : "DEFAULT",
      "psdefformitemname" : "[UPDATEMAN][更新人]"
    }, {
      "codename" : "MobileDefault",
      "createdate" : "2020-08-07 09:43:50",
      "ftmode" : "MOBILEDEFAULT",
      "psdefformitemname" : "[UPDATEMAN][更新人]移动端默认"
    } ],
    "psdefdtcols" : [ {
      "psdefdtcolname" : "UPDATEMAN",
      "customdatatype" : 0,
      "dbtype" : "MYSQL5",
      "createdate" : "2020-08-07 09:43:50"
    } ]
  } ],
  "psdeopprivs" : [ {
    "logicname" : "建立",
    "createdate" : "2020-08-07 09:43:50",
    "psdeopprivname" : "CREATE"
  }, {
    "logicname" : "删除",
    "createdate" : "2020-08-07 09:43:50",
    "psdeopprivname" : "DELETE"
  }, {
    "logicname" : "读取",
    "createdate" : "2020-08-07 09:43:50",
    "psdeopprivname" : "READ"
  }, {
    "logicname" : "更新",
    "createdate" : "2020-08-07 09:43:50",
    "psdeopprivname" : "UPDATE"
  } ],
  "psdetables" : [ {
    "pssysdbtableid" : "DEFAULT/LEGAL",
    "psdetablename" : "LEGAL",
    "tabletype" : "MAIN",
    "createdate" : "2020-09-02 15:22:35"
  } ],
  "pssysdmitems" : [ {
    "dbobjtype" : "TABLE",
    "pssystemdbcfgname" : "MYSQL5",
    "pssysdmitemname" : "LEGAL",
    "userflag" : 0,
    "createsql4" : "CREATE TABLE `LEGAL`(\n`LEGALNAME`  VARCHAR(200) COMMENT '法人名称' \n,`CREATEMAN`  VARCHAR(60) COMMENT '建立人' \n,`UPDATEMAN`  VARCHAR(60) COMMENT '更新人' \n,`LEGALID`  VARCHAR(100)  NOT NULL PRIMARY KEY COMMENT '法人标识' \n,`CREATEDATE`  DATETIME COMMENT '建立时间' \n,`UPDATEDATE`  DATETIME COMMENT '更新时间' \n)COMMENT='法人';",
    "testsql" : "SELECT 1 FROM `LEGAL` WHERE 1<>1",
    "psobjid" : "68881b2afaedcf21575794551cb17ac5",
    "pssystemdbcfgid" : "MYSQL5",
    "psobjname" : "LEGAL",
    "createdate" : "2020-08-07 09:49:58"
  }, {
    "dbobjtype" : "COLUMN",
    "pssystemdbcfgname" : "MYSQL5",
    "pssysdmitemname" : "LEGAL.CREATEDATE",
    "userflag" : 0,
    "createsql4" : "ALTER TABLE `LEGAL`\nADD COLUMN `CREATEDATE`  DATETIME  COMMENT '建立时间' \n",
    "testsql" : "SELECT `CREATEDATE` FROM `LEGAL` WHERE 1<>1",
    "psobjid" : "dc9458533d40607fa92e7d33cabe6c84",
    "pssystemdbcfgid" : "MYSQL5",
    "psobjname" : "CREATEDATE",
    "createdate" : "2020-08-07 09:49:59"
  }, {
    "dbobjtype" : "COLUMN",
    "pssystemdbcfgname" : "MYSQL5",
    "pssysdmitemname" : "LEGAL.CREATEMAN",
    "userflag" : 0,
    "createsql4" : "ALTER TABLE `LEGAL`\nADD COLUMN `CREATEMAN`  VARCHAR(60)  COMMENT '建立人' \n",
    "testsql" : "SELECT `CREATEMAN` FROM `LEGAL` WHERE 1<>1",
    "psobjid" : "3e97260c2167480e5a6a8c835d7ff747",
    "pssystemdbcfgid" : "MYSQL5",
    "psobjname" : "CREATEMAN",
    "createdate" : "2020-08-07 09:49:59"
  }, {
    "dbobjtype" : "COLUMN",
    "pssystemdbcfgname" : "MYSQL5",
    "pssysdmitemname" : "LEGAL.LEGALID",
    "userflag" : 0,
    "createsql4" : "ALTER TABLE `LEGAL`\nADD COLUMN `LEGALID`  VARCHAR(100)  COMMENT '法人标识' \n",
    "testsql" : "SELECT `LEGALID` FROM `LEGAL` WHERE 1<>1",
    "psobjid" : "c4b0ad5aadd92c7cd859014b4f6013dd",
    "pssystemdbcfgid" : "MYSQL5",
    "psobjname" : "LEGALID",
    "createdate" : "2020-08-07 09:49:59"
  }, {
    "dbobjtype" : "COLUMN",
    "pssystemdbcfgname" : "MYSQL5",
    "pssysdmitemname" : "LEGAL.LEGALNAME",
    "userflag" : 0,
    "createsql4" : "ALTER TABLE `LEGAL`\nADD COLUMN `LEGALNAME`  VARCHAR(200)  COMMENT '法人名称' \n",
    "testsql" : "SELECT `LEGALNAME` FROM `LEGAL` WHERE 1<>1",
    "psobjid" : "185df4ef5b477f18ba8e635de44c21c0",
    "pssystemdbcfgid" : "MYSQL5",
    "psobjname" : "LEGALNAME",
    "createdate" : "2020-08-07 09:49:59"
  }, {
    "dbobjtype" : "COLUMN",
    "pssystemdbcfgname" : "MYSQL5",
    "pssysdmitemname" : "LEGAL.UPDATEDATE",
    "userflag" : 0,
    "createsql4" : "ALTER TABLE `LEGAL`\nADD COLUMN `UPDATEDATE`  DATETIME  COMMENT '更新时间' \n",
    "testsql" : "SELECT `UPDATEDATE` FROM `LEGAL` WHERE 1<>1",
    "psobjid" : "e7587c03fd50a9412ce33ea0922cd02d",
    "pssystemdbcfgid" : "MYSQL5",
    "psobjname" : "UPDATEDATE",
    "createdate" : "2020-08-07 09:49:59"
  }, {
    "dbobjtype" : "COLUMN",
    "pssystemdbcfgname" : "MYSQL5",
    "pssysdmitemname" : "LEGAL.UPDATEMAN",
    "userflag" : 0,
    "createsql4" : "ALTER TABLE `LEGAL`\nADD COLUMN `UPDATEMAN`  VARCHAR(60)  COMMENT '更新人' \n",
    "testsql" : "SELECT `UPDATEMAN` FROM `LEGAL` WHERE 1<>1",
    "psobjid" : "6a84b217b0b72553df3ee6d41b89e9c4",
    "pssystemdbcfgid" : "MYSQL5",
    "psobjname" : "UPDATEMAN",
    "createdate" : "2020-08-07 09:49:59"
  } ]
}