|
|
package models
|
|
|
|
|
|
import (
|
|
|
"time"
|
|
|
)
|
|
|
|
|
|
type TBaseOrganization struct {
|
|
|
OrgId string `xorm:"not null pk default ''0'' comment('组织机构ID') unique CHAR(36)"`
|
|
|
OrgCode string `xorm:"not null comment('单位代码,当此组织机构为部门时,填写0') VARCHAR(36)"`
|
|
|
OrgName string `xorm:"not null comment('组织机构名称') VARCHAR(64)"`
|
|
|
ParentId string `xorm:"not null comment('父节点ID') index(parent_id) CHAR(36)"`
|
|
|
OrgTypeId int64 `xorm:"not null comment('单位类型,值域t_base_org_type_principalship') INT(4)"`
|
|
|
SchoolTypeId int64 `xorm:"not null comment('学校类型') index(school_type_id) index(school_type_id_2) INT(11)"`
|
|
|
SortId int64 `xorm:"not null comment('同级,排序号') INT(11)"`
|
|
|
CreateTime time.Time `xorm:"not null comment('创建时间') DATETIME"`
|
|
|
BUse int64 `xorm:"not null comment('是不是可用?1:可用,2:不可用===========') index(parent_id) index(school_type_id_2) INT(11)"`
|
|
|
OrgPkNum int64 `xorm:"not null comment('最大主键序列') index INT(11)"`
|
|
|
CityId string `xorm:"not null comment('市ID') CHAR(36)"`
|
|
|
AreaId string `xorm:"not null comment('区ID') index(school_type_id_2) CHAR(36)"`
|
|
|
MainSchoolId string `xorm:"not null comment('主校ID') CHAR(36)"`
|
|
|
BureauId string `xorm:"not null comment('单位ID') index CHAR(36)"`
|
|
|
IsBureau int64 `xorm:"not null default 0 comment('是不是一个单位,1表示是,0表示不是') index(school_type_id) index(school_type_id_2) INT(11)"`
|
|
|
UpdateTs time.Time `xorm:"not null default 'current_timestamp()' index index(update_ts_2) TIMESTAMP"`
|
|
|
IdInt int64 `xorm:"not null autoincr comment('整数主键') unique index(update_ts_2) INT(11)"`
|
|
|
Operator string `xorm:"not null comment('操作人员') CHAR(36)"`
|
|
|
IpAddress int64 `xorm:"not null default 0 comment('操作者IP') BIGINT(11)"`
|
|
|
PropertyId int64 `xorm:"not null default -1 comment('学校办别,参考t_dm_schoolproperty') INT(11)"`
|
|
|
LevelId int64 `xorm:"not null default -1 comment('隶属关系,参考t_dm_schoollevel') INT(11)"`
|
|
|
DepartmentTypeId int64 `xorm:"not null default 0 comment('0:普通部门(含单位自身),1:学院,2:系,3:专业') INT(11)"`
|
|
|
ChengxiangId int64 `xorm:"not null default 1 comment('城乡类型') INT(11)"`
|
|
|
Zdmj float32 `xorm:"not null default 0.00 comment('学校占地面积(学校专有属性)') FLOAT(6,2)"`
|
|
|
Xsmj float32 `xorm:"not null default 0.00 comment('校舍建筑面积(学校专有属性)') FLOAT(6,2)"`
|
|
|
Ydcmj float32 `xorm:"not null default 0.00 comment('运动场面积(学校专有属性)') FLOAT(6,2)"`
|
|
|
Lhydmj float32 `xorm:"not null default 0.00 comment('学校绿化用地面积(学校专有属性)') FLOAT(6,2)"`
|
|
|
}
|