bank_arrange_main_entity.go 7.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. // ==========================================================================
  2. // This is auto-generated by gf cli tool. DO NOT EDIT THIS FILE MANUALLY.
  3. // ==========================================================================
  4. package bank_arrange_main
  5. import (
  6. "database/sql"
  7. "github.com/gogf/gf/database/gdb"
  8. "github.com/gogf/gf/os/gtime"
  9. )
  10. // Entity is the golang structure for table bank_arrange_main.
  11. type Entity struct {
  12. Id int `orm:"Id,primary" json:"id"` //
  13. EntryNo string `orm:"EntryNo" json:"entry_no"` // 申请单号
  14. TaskType int `orm:"TaskType" json:"task_type"` // 入库申请类型: 1.基点自动化设备 2 非基点普通设备
  15. Status int `orm:"Status" json:"status"` // 0:未提交;1:提交待审核;2:审核通过;3:审核不通过; 4:确认过
  16. OperationBy string `orm:"OperationBy" json:"operation_by"` // 申请人
  17. Section string `orm:"Section" json:"section"` // 领用部门
  18. EntryTime *gtime.Time `orm:"EntryTime" json:"entry_time"` // 申请时间
  19. ConUserId int `orm:"ConUserId" json:"con_user_id"` // 审核人Id
  20. ConUserBy string `orm:"ConUserBy" json:"con_user_by"` // 审核人
  21. ConTime *gtime.Time `orm:"ConTime" json:"con_time"` // 审核时间
  22. TaskStatus int `orm:"TaskStatus" json:"task_status"` // 任务执行状态 0 未执行 1. 任务已发送 2. 任务已接收 3. 任务激活 4. 执行失败 5. 任务成功 6. 执行中 7. 已驳回
  23. Remark string `orm:"Remark" json:"remark"` // 备注
  24. Exception string `orm:"Exception" json:"exception"` // 异常信息
  25. AuditorRemark string `orm:"AuditorRemark" json:"auditor_remark"` // 审核备注
  26. CreateOn *gtime.Time `orm:"CreateOn" json:"create_on"` //
  27. CreateUserId string `orm:"CreateUserId" json:"create_user_id"` //
  28. CreateBy string `orm:"CreateBy" json:"create_by"` //
  29. ModifiedOn *gtime.Time `orm:"ModifiedOn" json:"modified_on"` //
  30. ModifiedUserId string `orm:"ModifiedUserId" json:"modified_user_id"` //
  31. ModifiedBy string `orm:"ModifiedBy" json:"modified_by"` //
  32. Reason int `orm:"Reason" json:"reason"` // 原因,ID是字典明细
  33. EquipmentId int `orm:"EquipmentId" json:"equipment_id"` // 设备id
  34. ShelfAndBoxIds string `orm:"ShelfAndBoxIds" json:"shelf_and_box_ids"` // 选中的架子及盒子id
  35. BoxCount string `orm:"BoxCount" json:"box_count"` // 整理盒子数量
  36. SampleCount string `orm:"SampleCount" json:"sample_count"` // 整理样本数量
  37. }
  38. // OmitEmpty sets OPTION_OMITEMPTY option for the model, which automatically filers
  39. // the data and where attributes for empty values.
  40. // Deprecated.
  41. func (r *Entity) OmitEmpty() *arModel {
  42. return Model.Data(r).OmitEmpty()
  43. }
  44. // Inserts does "INSERT...INTO..." statement for inserting current object into table.
  45. // Deprecated.
  46. func (r *Entity) Insert() (result sql.Result, err error) {
  47. return Model.Data(r).Insert()
  48. }
  49. // InsertIgnore does "INSERT IGNORE INTO ..." statement for inserting current object into table.
  50. // Deprecated.
  51. func (r *Entity) InsertIgnore() (result sql.Result, err error) {
  52. return Model.Data(r).InsertIgnore()
  53. }
  54. // Replace does "REPLACE...INTO..." statement for inserting current object into table.
  55. // If there's already another same record in the table (it checks using primary key or unique index),
  56. // it deletes it and insert this one.
  57. // Deprecated.
  58. func (r *Entity) Replace() (result sql.Result, err error) {
  59. return Model.Data(r).Replace()
  60. }
  61. // Save does "INSERT...INTO..." statement for inserting/updating current object into table.
  62. // It updates the record if there's already another same record in the table
  63. // (it checks using primary key or unique index).
  64. // Deprecated.
  65. func (r *Entity) Save() (result sql.Result, err error) {
  66. return Model.Data(r).Save()
  67. }
  68. // Update does "UPDATE...WHERE..." statement for updating current object from table.
  69. // It updates the record if there's already another same record in the table
  70. // (it checks using primary key or unique index).
  71. // Deprecated.
  72. func (r *Entity) Update() (result sql.Result, err error) {
  73. where, args, err := gdb.GetWhereConditionOfStruct(r)
  74. if err != nil {
  75. return nil, err
  76. }
  77. return Model.Data(r).Where(where, args).Update()
  78. }
  79. // Delete does "DELETE FROM...WHERE..." statement for deleting current object from table.
  80. // Deprecated.
  81. func (r *Entity) Delete() (result sql.Result, err error) {
  82. where, args, err := gdb.GetWhereConditionOfStruct(r)
  83. if err != nil {
  84. return nil, err
  85. }
  86. return Model.Where(where, args).Delete()
  87. }