12345678910111213141516171819202122232425262728 |
- package model
- import "time"
- type NeckRingListing struct {
- Id int64 `xorm:"pk autoincr 'id'"`
- Pastureid string `xorm:"varchar(30) 'FARM_UUID'"` //牧场uuid
- Code int64 `xorm:"varchar(20) notnull 'REGIST_NUM_2'"` //脖环编码
- //Status int64 `xorm:"int(1) 'status'"` //脖环状态
- PurchaseDate time.Time `xorm:"DATETIME 'BUY_DATE'"` //购入日期
- EndDate time.Time `xorm:"DATETIME 'STOP_DATE'"` //停用日期
- FactoryId int64 `xorm:"bigint(11) 'factoryid'"` //出厂登记id
- CreateDate time.Time `xorm:"DATETIME 'CREATETIME'"` //购入日期
- Recall int64 `xorm:"recall"`
- }
- func (s *NeckRingListing) TableName() string {
- return "t_nz_jbqid"
- }
- type NeckRingListingList struct {
- NeckRingListing `xorm:"extends"`
- Cattle string `xorm:"COW_NUM"`
- BarName string `xorm:"HOUSE_NAME"`
- ManufactureDate time.Time `xorm:"createtime"`
- Status int64 `xorm:"status"`
- Batch string `xorm:"batch"` //出厂批次
- }
|