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