// ========================================================================== // This is auto-generated by gf cli tool. DO NOT EDIT THIS FILE MANUALLY. // ========================================================================== package bank_arrange_main import ( "database/sql" "github.com/gogf/gf/database/gdb" "github.com/gogf/gf/os/gtime" ) // Entity is the golang structure for table bank_arrange_main. type Entity struct { Id int `orm:"Id,primary" json:"id"` // EntryNo string `orm:"EntryNo" json:"entry_no"` // 申请单号 TaskType int `orm:"TaskType" json:"task_type"` // 入库申请类型: 1.基点自动化设备 2 非基点普通设备 Status int `orm:"Status" json:"status"` // 0:未提交;1:提交待审核;2:审核通过;3:审核不通过; 4:确认过 OperationBy string `orm:"OperationBy" json:"operation_by"` // 申请人 Section string `orm:"Section" json:"section"` // 领用部门 EntryTime *gtime.Time `orm:"EntryTime" json:"entry_time"` // 申请时间 ConUserId int `orm:"ConUserId" json:"con_user_id"` // 审核人Id ConUserBy string `orm:"ConUserBy" json:"con_user_by"` // 审核人 ConTime *gtime.Time `orm:"ConTime" json:"con_time"` // 审核时间 TaskStatus int `orm:"TaskStatus" json:"task_status"` // 任务执行状态 0 未执行 1. 任务已发送 2. 任务已接收 3. 任务激活 4. 执行失败 5. 任务成功 6. 执行中 7. 已驳回 Remark string `orm:"Remark" json:"remark"` // 备注 Exception string `orm:"Exception" json:"exception"` // 异常信息 AuditorRemark string `orm:"AuditorRemark" json:"auditor_remark"` // 审核备注 CreateOn *gtime.Time `orm:"CreateOn" json:"create_on"` // CreateUserId string `orm:"CreateUserId" json:"create_user_id"` // CreateBy string `orm:"CreateBy" json:"create_by"` // ModifiedOn *gtime.Time `orm:"ModifiedOn" json:"modified_on"` // ModifiedUserId string `orm:"ModifiedUserId" json:"modified_user_id"` // ModifiedBy string `orm:"ModifiedBy" json:"modified_by"` // Reason int `orm:"Reason" json:"reason"` // 原因,ID是字典明细 EquipmentId int `orm:"EquipmentId" json:"equipment_id"` // 设备id ShelfAndBoxIds string `orm:"ShelfAndBoxIds" json:"shelf_and_box_ids"` // 选中的架子及盒子id BoxCount string `orm:"BoxCount" json:"box_count"` // 整理盒子数量 SampleCount string `orm:"SampleCount" json:"sample_count"` // 整理样本数量 } // OmitEmpty sets OPTION_OMITEMPTY option for the model, which automatically filers // the data and where attributes for empty values. // Deprecated. func (r *Entity) OmitEmpty() *arModel { return Model.Data(r).OmitEmpty() } // Inserts does "INSERT...INTO..." statement for inserting current object into table. // Deprecated. func (r *Entity) Insert() (result sql.Result, err error) { return Model.Data(r).Insert() } // InsertIgnore does "INSERT IGNORE INTO ..." statement for inserting current object into table. // Deprecated. func (r *Entity) InsertIgnore() (result sql.Result, err error) { return Model.Data(r).InsertIgnore() } // Replace does "REPLACE...INTO..." statement for inserting current object into table. // If there's already another same record in the table (it checks using primary key or unique index), // it deletes it and insert this one. // Deprecated. func (r *Entity) Replace() (result sql.Result, err error) { return Model.Data(r).Replace() } // Save does "INSERT...INTO..." statement for inserting/updating current object into table. // It updates the record if there's already another same record in the table // (it checks using primary key or unique index). // Deprecated. func (r *Entity) Save() (result sql.Result, err error) { return Model.Data(r).Save() } // Update does "UPDATE...WHERE..." statement for updating current object from table. // It updates the record if there's already another same record in the table // (it checks using primary key or unique index). // Deprecated. func (r *Entity) Update() (result sql.Result, err error) { where, args, err := gdb.GetWhereConditionOfStruct(r) if err != nil { return nil, err } return Model.Data(r).Where(where, args).Update() } // Delete does "DELETE FROM...WHERE..." statement for deleting current object from table. // Deprecated. func (r *Entity) Delete() (result sql.Result, err error) { where, args, err := gdb.GetWhereConditionOfStruct(r) if err != nil { return nil, err } return Model.Where(where, args).Delete() }