| | |
| | | "fmt" |
| | | "github.com/shopspring/decimal" |
| | | "gorm.io/gorm" |
| | | "silkserver/constvar" |
| | | "silkserver/pkg/mysqlx" |
| | | ) |
| | | |
| | |
| | | //WorkTypeManage 工种管理 |
| | | WorkTypeManage struct { |
| | | gorm.Model |
| | | WorkName string `json:"workName" gorm:"type:varchar(255);comment:工种名称"` |
| | | IsGuaranteed bool `json:"isGuaranteed" gorm:"type:int(1);comment:不达标保底"` |
| | | GuaranteedWages decimal.Decimal `json:"guaranteedWages" gorm:"type:decimal(20,3);comment:保底工资"` |
| | | CreateTime string `json:"createTime" gorm:"type:varchar(255);comment:添加时间"` |
| | | AddPeople string `json:"addPeople" gorm:"type:varchar(255);comment:添加人"` |
| | | SalaryPlans []*SalaryPlan `json:"salaryPlans" gorm:"many2many:silk_salaryPlan_workType"` |
| | | Code constvar.JobType `json:"code" gorm:"type:varchar(255);comment:工种编码"` |
| | | WorkName string `json:"workName" gorm:"type:varchar(255);comment:工种名称"` |
| | | IsGuaranteed bool `json:"isGuaranteed" gorm:"type:int(1);comment:不达标保底"` |
| | | GuaranteedWages decimal.Decimal `json:"guaranteedWages" gorm:"type:decimal(20,3);comment:保底工资"` |
| | | CreateTime string `json:"createTime" gorm:"type:varchar(255);comment:添加时间"` |
| | | AddPeople string `json:"addPeople" gorm:"type:varchar(255);comment:添加人"` |
| | | SalaryPlans []*SalaryPlan `json:"salaryPlans" gorm:"many2many:silk_salaryPlan_workType"` |
| | | } |
| | | WorkTypeManageSearch struct { |
| | | WorkTypeManage |