fpdetail.go 1.2 KB

12345678910111213141516171819
  1. package models
  2. type Fpdetail struct {
  3. ID int64 `xorm:"'id' bigint pk autoincr comment('配方子表id')"`
  4. PastureID int64 `xorm:"'pastureid' bigint not null"`
  5. BarID int64 `xorm:"'barid' bigint not null comment('栏舍id')"`
  6. Barname string `xorm:"'barname' varchar(50) comment('栏舍名称')"`
  7. Times int8 `xorm:"'times' tinyint comment('班次')"`
  8. Tratio float64 `xorm:"'tratio' decimal(38,3) comment('班次比例')"`
  9. Weight float64 `xorm:"weight" json:"weight"`
  10. Ptsrate string `xorm:"'ptsrate' decimal(38,6) unsigned zerofill default '00000000000000000000000000000000.000000' comment('补料比例')"`
  11. Cowcount string `xorm:"'cowcount' char(20) comment('牛头数')"`
  12. Ccountradio string `xorm:"'ccountradio' char(20) comment('牛头系数')"`
  13. Ptid int64 `xorm:"'ptid' bigint default -1 comment('配方模板')"`
  14. Ptsid int64 `xorm:"'ptsid' bigint default -1 comment('补料配方')"`
  15. Ptuse float64 `xorm:"'ptuse' decimal(38,2) unsigned default 0.00 comment('0 未分配 大于0分配')"`
  16. Ptsuse float64 `xorm:"'ptsuse' decimal(38,2) unsigned default 0.00 comment('0 未分配 大于0分配')"`
  17. Supplement float64 `xorm:"'supplement' decimal(38,2) default 0.00"`
  18. }