| | |
| | | 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:保底工资"` |
| | | PayProgrammeId uint `json:"payProgrammeId" gorm:"type:int(11);comment:薪资方案id"` |
| | | AddPeople string `gorm:"type:varchar(255);comment:添加人" json:"addPeople"` |
| | | 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 |
| | |
| | | return slf |
| | | } |
| | | |
| | | func (slf *WorkTypeManageSearch) SetId(id int) *WorkTypeManageSearch { |
| | | slf.ID = uint(id) |
| | | return slf |
| | | } |
| | | |
| | | func (slf *WorkTypeManageSearch) SetPreload(preload bool) *WorkTypeManageSearch { |
| | | slf.Preload = preload |
| | | return slf |
| | |
| | | func (slf *WorkTypeManageSearch) build() *gorm.DB { |
| | | var db = slf.Orm.Table(slf.TableName()) |
| | | |
| | | if slf.ID > 0 { |
| | | db = db.Where("id = ?", slf.ID) |
| | | } |
| | | |
| | | return db |
| | | } |
| | | |