models/work_type_manage.go @@ -61,6 +61,10 @@ db = db.Where("id = ?", slf.ID) } if slf.Preload { db = db.Model(WorkTypeManage{}).Preload("SalaryPlans") } return db }