fill_check.go 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. package model
  2. import model2 "gas-cylinder-api/common/model"
  3. type ProvFillCheck struct {
  4. OperationLogId string `json:"operationLogId" gorm:"size:36"` // 操作记录Id,要求唯一 气瓶充装前后检查操作记录id,要求唯一性
  5. StoreId string `json:"storeId" gorm:"size:36" swaggerignore:"true"` // 所属单位(门市) 需要现在平台录入/接口平台上传后返回的对应id
  6. InnerCode string `json:"innerCode" gorm:"size:36" swaggerignore:"true"` // 气瓶唯一性编码,单位内编号
  7. DeadWeight float64 `json:"deadWeight" gorm:"size:9"` // 气瓶自重(kg)
  8. Color string `json:"color" gorm:"size:10"` // 颜色
  9. Corrosion int `json:"corrosion" gorm:"size:4"` // 是否腐蚀 0-无 1-有
  10. Crackle int `json:"crackle" gorm:"size:4"` // 是否有裂纹 0-无 1-有
  11. Deform int `json:"deform" gorm:"size:4"` // 是否变形 0-无 1-有
  12. Damage int `json:"damage" gorm:"size:4"` // 是否有损伤 0-无 1-有
  13. SafeAnnex int `json:"safeAnnex" gorm:"size:4"` // 安全附件完好 0-完好 1-缺失
  14. GasPressure int `json:"gasPressure" gorm:"size:4"` // 余压正常(或抽真空) 0-正常 1-不正常
  15. PipePressure float64 `json:"pipePressure" gorm:"size:9"` // 充装管道压力(MPa)
  16. BodyDeform int `json:"bodyDeform" gorm:"size:4"` // 瓶体有无变形 0-无 1-有
  17. FillingLeak int `json:"fillingLeak" gorm:"size:4"` // 充装过程有无泄漏 0-无 1-有
  18. BodyTemperature int `json:"bodyTemperature" gorm:"size:4"` // 瓶体温度正常 0-正常 1-不正常
  19. FillWeight float64 `json:"fillWeight" gorm:"size:9"` // 充装重量(kg)
  20. RepeatWeight float64 `json:"repeatWeight" gorm:"size:9"` // 复秤重量(kg)
  21. FilledLeak int `json:"filledLeak" gorm:"size:4"` // 充装后有无泄漏 0-无 1-有
  22. WarnSign int `json:"warnSign" gorm:"size:4"` // 警示标志完好 0-完好 1-缺失
  23. FillLabel int `json:"fillLabel" gorm:"size:4"` // 充装标签完好 0-完好 1-缺失
  24. Seal int `json:"seal" gorm:"size:4"` // 封口完好 0-完好 1-缺失
  25. CreatorId string `json:"creatorId" gorm:"size:36" swaggerignore:"true"` // 创建人员id 需要现在平台录入/接口平台上传后返回的对应id
  26. }
  27. type FillCheck struct {
  28. model2.Model
  29. ProvFillCheck
  30. UserId int `json:"userId" gorm:"size:36" swaggerignore:"true"` // 创建人员id
  31. User SysUserOmit `json:"user" gorm:"->;"`
  32. model2.ControlBy
  33. model2.ModelTime
  34. model2.DeptBy
  35. }
  36. func (FillCheck) TableName() string {
  37. return "fill_check"
  38. }
  39. func (f FillCheck) GenProvFillCheck() (p ProvFillCheck) {
  40. p.OperationLogId = f.OperationLogId
  41. p.StoreId = f.StoreId
  42. p.InnerCode = f.InnerCode
  43. p.DeadWeight = f.DeadWeight
  44. p.Color = f.Color
  45. p.Corrosion = f.Corrosion
  46. p.Crackle = f.Crackle
  47. p.Deform = f.Deform
  48. p.Damage = f.Damage
  49. p.SafeAnnex = f.SafeAnnex
  50. p.GasPressure = f.GasPressure
  51. p.PipePressure = f.PipePressure
  52. p.BodyDeform = f.BodyDeform
  53. p.FillingLeak = f.FillingLeak
  54. p.BodyTemperature = f.BodyTemperature
  55. p.FillWeight = f.FillWeight
  56. p.RepeatWeight = f.RepeatWeight
  57. p.FilledLeak = f.FilledLeak
  58. p.WarnSign = f.WarnSign
  59. p.FillLabel = f.FillLabel
  60. p.Seal = f.Seal
  61. p.CreatorId = f.CreatorId
  62. return
  63. }