|
|
package Model
|
|
|
|
|
|
import (
|
|
|
"time"
|
|
|
)
|
|
|
|
|
|
type TBaseOrganization struct {
|
|
|
OrgId int `xorm:"not null pk autoincr comment('组织机构ID') INT(11)"`
|
|
|
OrgCode string `xorm:"default 'NULL' comment('组织机构编码') VARCHAR(100)"`
|
|
|
OrgName string `xorm:"default 'NULL' comment('组织机构名称') VARCHAR(255)"`
|
|
|
ParentId int `xorm:"default NULL comment('上级部门ID,单位填0') INT(11)"`
|
|
|
OrgType int `xorm:"default NULL comment('组织机构类型 1:教育局 2:学校 3:部门 4:院 5:系 6:专业 7:教辅单位') INT(11)"`
|
|
|
Xxbbm string `xorm:"default '''' comment('学校办别(学校专有属性)有字典') CHAR(2)"`
|
|
|
Xxjycc string `xorm:"default '''' comment('学校教育层次(学校专有属性)有字典') CHAR(1)"`
|
|
|
Xxlbm string `xorm:"default '''' comment('学校类别(学校专有属性)有字典') CHAR(2)"`
|
|
|
Xxbxlxm string `xorm:"default '''' comment('学校办学类型(学校专有属性)有字典') CHAR(3)"`
|
|
|
Szdcxlxm string `xorm:"default '''' comment('学校城乡类型(学校专有属性)有字典') CHAR(1)"`
|
|
|
Xxjbzm string `xorm:"default '''' comment('学校举办者(学校专有属性)有字典') CHAR(3)"`
|
|
|
Fzr int `xorm:"default NULL comment('机构负责人ID') INT(11)"`
|
|
|
Fddbr string `xorm:"default 'NULL' comment('机构法定代表人') VARCHAR(50)"`
|
|
|
Fddbrdh string `xorm:"default 'NULL' comment('学校法定代表人电话(学校专有属性)') VARCHAR(50)"`
|
|
|
Zdmj float32 `xorm:"default NULL comment('学校占地面积(学校专有属性)') FLOAT"`
|
|
|
Xsmj float32 `xorm:"default NULL comment('校舍建筑面积(学校专有属性)') FLOAT"`
|
|
|
Ydcmj float32 `xorm:"default NULL comment('运动场面积(学校专有属性)') FLOAT"`
|
|
|
Lhydmj float32 `xorm:"default NULL comment('学校绿化用地面积(学校专有属性)') FLOAT"`
|
|
|
Address string `xorm:"default 'NULL' comment('组织机构地址') VARCHAR(255)"`
|
|
|
Lxdh string `xorm:"default '''' comment('机构联系电话') VARCHAR(50)"`
|
|
|
OrgLng float32 `xorm:"default NULL comment('组织机构经度') FLOAT"`
|
|
|
OrgLat float32 `xorm:"default NULL comment('组织机构纬度') FLOAT"`
|
|
|
SortId int `xorm:"default NULL comment('排序号') INT(11)"`
|
|
|
BUse int `xorm:"default NULL comment('是否启用 0:未启用 1:启用') INT(11)"`
|
|
|
ProvinceId string `xorm:"default 'NULL' comment('所在省行政区划码') CHAR(6)"`
|
|
|
CityId string `xorm:"default 'NULL' comment('所在市行政区划码') CHAR(6)"`
|
|
|
DistrictId string `xorm:"default 'NULL' comment('所在区行政区划码') CHAR(6)"`
|
|
|
CreateTime time.Time `xorm:"default 'NULL' comment('创建时间') DATETIME"`
|
|
|
CreatePerson int `xorm:"default NULL comment('创建人ID') INT(11)"`
|
|
|
LastUpdatedTime time.Time `xorm:"default 'current_timestamp()' comment('最后修改时间') TIMESTAMP"`
|
|
|
LastUpdatedPerson int `xorm:"default NULL comment('最后修改人ID') INT(11)"`
|
|
|
}
|