package models type DbNkExpense struct { Id int `xorm:"not null pk autoincr comment('记录序号') INT(11)"` Sano string `xorm:"not null comment('单据编号') unique VARCHAR(64)"` Title string `xorm:"not null comment('单据标题') VARCHAR(255)"` Billid string `xorm:"not null default '0' comment('关联单据编号') VARCHAR(64)"` Billtags string `xorm:"not null comment('单据标识') VARCHAR(20)"` Approvalno string `xorm:"comment('事前审批单号') VARCHAR(2500)"` Contractno string `xorm:"comment('关联合同') VARCHAR(64)"` Tplid string `xorm:"comment('单据模板编号') VARCHAR(64)"` Detailid string `xorm:"default '0' comment('预算明细编号(多个,与事前审批编号对应)') VARCHAR(6400)"` Expendtag string `xorm:"not null default '0' comment('支出类型标识') VARCHAR(64)"` Amount int64 `xorm:"not null default 0 comment('申请金额') BIGINT(20)"` ActualAmount int64 `xorm:"not null default 0 comment('核报销金额') BIGINT(20)"` Status int `xorm:"not null default 0 comment('审批状态') TINYINT(2)"` State int `xorm:"not null default 0 comment('付款状态 1-已付款') TINYINT(2)"` Explain string `xorm:"comment('审批说明') VARCHAR(500)"` Weight int `xorm:"not null default 0 comment('加急权重') TINYINT(2)"` RejectTimes int `xorm:"not null default 0 comment('驳回次数') SMALLINT(4)"` Attachments string `xorm:"comment('相关附件') TEXT"` Payees string `xorm:"comment('收款人信息') VARCHAR(3200)"` BankName string `xorm:"comment('银行名称') VARCHAR(100)"` BankOwnname string `xorm:"comment('收款人') VARCHAR(64)"` BankAccount string `xorm:"comment('银行卡号') VARCHAR(64)"` Papers int `xorm:"not null default 0 comment('单据张数') INT(11)"` Details string `xorm:"comment('报销费用明细') VARCHAR(2500)"` CreateTime int `xorm:"not null default 0 comment('创建时间') INT(11)"` UpdateTime int `xorm:"not null default 0 comment('最后更新时间') INT(11)"` CompleteTime uint `xorm:"not null default 0 comment('完成报销时间') UNSIGNED INT(11)"` IsCompleted uint `xorm:"not null default 0 comment('是否已经完成') UNSIGNED TINYINT(2)"` HasPayed int `xorm:"default 0 comment('是否支付') TINYINT(2)"` CreatorId string `xorm:"not null comment('创建用户编号') VARCHAR(64)"` CreatorName string `xorm:"not null comment('创建用户姓名') VARCHAR(50)"` CreatorOrgid string `xorm:"not null comment('创建用户部门编号') VARCHAR(64)"` CreatorOrgname string `xorm:"not null comment('创建用户部门名称') VARCHAR(255)"` CreatorUnitid string `xorm:"not null comment('创建用户预算单位编号') VARCHAR(64)"` CreatorUnitname string `xorm:"not null comment('创建用户预算单位名称') VARCHAR(255)"` CreatorDeptid string `xorm:"not null comment('创建用户预算科室编号') VARCHAR(64)"` CreatorDeptname string `xorm:"comment('创建用户预算科室名称') VARCHAR(255)"` } func (m *DbNkExpense) TableName() string { return "db_nk_expense" }