GAAS 广汽安道拓GFrame金属件MOM项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

27 lines
1.2 KiB

package models
import (
"leit.com/LAPP_GAAS_GFrame/utils"
)
type Scriptitemtab struct {
Finr int `xorm:"pk comment('工厂号') Int" json:"scriptitemtab-finr"`
Script string `xorm:"pk comment('Id') VARCHAR(12)" json:"scriptitemtab-script"`
Tabmapcol string `xorm:"pk comment('序号溢出处理') VARCHAR(10)" json:"scriptitemtab-tabmapcol"`
Colno int `xorm:"comment('流水号起始值') INT" json:"scriptitemtab-colno"`
Rowno int `xorm:"comment('流水号截止值') INT" json:"scriptitemtab-rowno"`
Colfieldtype int `xorm:"comment('步幅') INT" json:"scriptitemtab-colfieldtype"`
Colname string `xorm:"comment('上个序号创建时间') VARCHAR(14)" json:"scriptitemtab-colname"`
Rowname string `xorm:"comment('序号重置规则') VARCHAR(10)" json:"scriptitemtab-rowname"`
Colformat string `xorm:"comment('流水号格式') VARCHAR(10)" json:"scriptitemtab-colformat"`
Defaultvalue string `xorm:"comment('日期变量') VARCHAR(20)" json:"scriptitemtab-defaultvalue"`
}
func (t *Scriptitemtab) TableName() string {
return "scriptitemtab"
}
// 清除string字段的右侧空格
func (t *Scriptitemtab) Clipped() {
utils.TrimStruct(t, *t)
}