management.go 663 B

12345678910111213141516171819202122
  1. package model
  2. import "time"
  3. //脖环管理
  4. type Management struct {
  5. Id int64 `xorm:"pk autoincr 'id'"`
  6. Pastureid string `xorm:"varchar(80) 'FARM_UUID'"` //牧场id
  7. Count int64 `xorm:"int(11) 'count'"` //出厂数量
  8. Genre int64 `xorm:"int(1) 'genre'"` //0 售卖,1 返厂 2 置换
  9. Recall int64 `xorm:"int(11) 'recall'"` //关联召回批次数
  10. ImportTime time.Time `xorm:"DATETIME 'importdate'"` //导入时间
  11. }
  12. func (s *Management) TableName() string {
  13. return "management"
  14. }
  15. type ManagementList struct {
  16. Management `xorm:"extends"`
  17. PastureName string `xorm:"FARM_NAME"`
  18. }