1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- package model
- import "time"
- type Equipment struct {
- PastureId int `gorm:"column:pastureId" json:"pastureId"`
- PastureName string `gorm:"column:pastureName" json:"pastureName"`
- EqName string `gorm:"column:eqName" json:"eqName"`
- AssetCode string `gorm:"column:assetCode" json:"assetCode"`
- EqClassName string `gorm:"column:eqClassName" json:"eqClassName"`
- Specification string `gorm:"column:specification" json:"specification"`
- DepartmentId string `gorm:"column:departmentId" json:"departmentId"`
- DepartmentName string `gorm:"column:departmentName" json:"departmentName"`
- EntranceDate string `gorm:"column:entranceDate" json:"entranceDate"`
- Purpose string `gorm:"column:purpose" json:"purpose"`
- Yuanzhi string `gorm:"column:yuanzhi" json:"yuanzhi"`
- Id int `gorm:"column:id" json:"id"`
- EqCode string `gorm:"column:eqCode" json:"eqCode"`
- EqClassId int `gorm:"column:eqClassId" json:"eqClassId"`
- FinanceCode string `gorm:"column:financeCode" json:"financeCode"`
- ProName string `gorm:"column:proName" json:"proName"`
- ProId int `gorm:"column:proId" json:"proId"`
- BrandId string `gorm:"column:brandId" json:"brandId"`
- Brand string `gorm:"column:brand" json:"brand"`
- PurchaseDate string `gorm:"column:purchaseDate" json:"purchaseDate"`
- Subtractvalue string `gorm:"column:subtractvalue" json:"subtractvalue"`
- Salvage string `gorm:"column:salvage" json:"salvage"`
- Upkeepgrade string `gorm:"column:upkeepgrade" json:"upkeepgrade"`
- YearMaintainCost string `gorm:"column:yearMaintainCost" json:"yearMaintainCost"`
- YearUpkeepCost string `gorm:"column:yearUpkeepCost" json:"yearUpkeepCost"`
- Status int `gorm:"column:status" json:"status"`
- EmployeName string `gorm:"column:employeName" json:"employeName"`
- EmployeeId string `gorm:"column:employeeId" json:"employeeId"`
- InputDatetime string `gorm:"column:inputDatetime" json:"inputDatetime"`
- LeaveDate time.Time `gorm:"column:leaveDate" json:"leaveDate"`
- InputUser string `gorm:"column:inputUser" json:"inputUser"`
- EnabledTime time.Time `gorm:"column:enabledTime" json:"enabledTime"`
- BlockTime time.Time `gorm:"column:blockTime" json:"blockTime"`
- ChangeStatue string `gorm:"column:changeStatue" json:"changeStatue"`
- EnabledPerson int `gorm:"column:enabledPerson" json:"enabledPerson"`
- BlockPerson int `gorm:"column:blockPerson" json:"blockPerson"`
- SttId int `gorm:"column:sttId" json:"sttId"`
- BaseHours string `gorm:"column:baseHours" json:"baseHours"`
- ApplicatId int `gorm:"column:applicatId" json:"applicatId"`
- ApplicatDate time.Time `gorm:"column:applicatDate" json:"applicatDate"`
- WorkflowId int `gorm:"column:workflowId" json:"workflowId"`
- FlowCompeleted int `gorm:"column:flowCompeleted" json:"flowCompeleted"`
- Enable int `gorm:"column:enable" json:"enable"`
- ChangeTime time.Time `gorm:"column:changeTime" json:"changeTime"`
- SSTstatue string `gorm:"column:SSTstatue" json:"SSTstatue"`
- SHStatus int `gorm:"column:SHStatus" json:"SHStatus"`
- ChargeId int `gorm:"column:chargeId" json:"chargeId"`
- ChargeDate time.Time `gorm:"column:chargeDate" json:"chargeDate"`
- WorkflowNote string `gorm:"column:workflowNote" json:"workflowNote"`
- Picpath string `gorm:"column:picpath" json:"picpath"`
- Depreciation string `gorm:"column:depreciation" json:"depreciation"`
- Statue int `gorm:"column:statue" json:"statue"`
- ModifyTime time.Time `gorm:"column:modifyTime" json:"modifyTime"`
- CompanyCode string `gorm:"column:companyCode" json:"companyCode"`
- CreatedAt time.Time `gorm:"column:created_at" json:"created_at"`
- UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"`
- Quantity string `gorm:"column:quantity" json:"quantity"`
- CostCenter string `gorm:"column:costCenter" json:"costCenter"`
- Unit string `gorm:"column:unit" json:"unit"`
- ProfitCenter string `gorm:"column:profitCenter" json:"profitCenter"`
- SonCode string `gorm:"column:sonCode" json:"sonCode"`
- SapCode string `gorm:"column:sapCode" json:"sapCode"`
- License string `gorm:"column:license" json:"license"`
- Duration int `gorm:"column:duration" json:"duration"`
- PushStatus int `gorm:"column:pushStatus" json:"pushStatus"`
- WorkClass string `gorm:"column:work" json:"work"`
- }
- type EquipmentAndDepartment struct {
- Equipment `xorm:"extends"`
- Department `xorm:"extends"`
- EqClass `xorm:"extends"`
- }
|