neckringlisting.go 1.0 KB

12345678910111213141516171819202122232425262728
  1. package model
  2. import "time"
  3. type NeckRingListing struct {
  4. Id int64 `xorm:"pk autoincr 'id'"`
  5. Pastureid string `xorm:"varchar(30) 'FARM_UUID'"` //牧场uuid
  6. Code int64 `xorm:"varchar(20) notnull 'REGIST_NUM_2'"` //脖环编码
  7. //Status int64 `xorm:"int(1) 'status'"` //脖环状态
  8. PurchaseDate time.Time `xorm:"DATETIME 'BUY_DATE'"` //购入日期
  9. EndDate time.Time `xorm:"DATETIME 'STOP_DATE'"` //停用日期
  10. FactoryId int64 `xorm:"bigint(11) 'factoryid'"` //出厂登记id
  11. CreateDate time.Time `xorm:"DATETIME 'CREATETIME'"` //购入日期
  12. Recall int64 `xorm:"recall"`
  13. }
  14. func (s *NeckRingListing) TableName() string {
  15. return "t_nz_jbqid"
  16. }
  17. type NeckRingListingList struct {
  18. NeckRingListing `xorm:"extends"`
  19. Cattle string `xorm:"COW_NUM"`
  20. BarName string `xorm:"HOUSE_NAME"`
  21. ManufactureDate time.Time `xorm:"createtime"`
  22. Status int64 `xorm:"status"`
  23. Batch string `xorm:"batch"` //出厂批次
  24. }