yinbentan
2024-07-25 f874e81b77282079398c22c67af754a23d260c91
models/work_type_manage.go
@@ -4,6 +4,7 @@
   "fmt"
   "github.com/shopspring/decimal"
   "gorm.io/gorm"
   "silkserver/constvar"
   "silkserver/pkg/mysqlx"
)
@@ -11,12 +12,13 @@
   //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