fox
zhangqian
2024-05-07 7d06c6472f1acea6b2e49e7b8837bf555e94e219
models/workshop_manage.go
@@ -29,7 +29,7 @@
)
func (slf WorkshopManage) TableName() string {
   return "workshop_manage"
   return "silk_workshop_manage"
}
func NewWorkshopManageSearch() *WorkshopManageSearch {
@@ -56,6 +56,11 @@
   return slf
}
func (slf *WorkshopManageSearch) SetWorkshopName(workshopName string) *WorkshopManageSearch {
   slf.WorkshopName = workshopName
   return slf
}
func (slf *WorkshopManageSearch) SetGroupNumber(groupNumber int) *WorkshopManageSearch {
   slf.GroupNumber = groupNumber
   return slf
@@ -77,6 +82,10 @@
      db = db.Where("workshop_number = ?", slf.WorkshopNumber)
   }
   if slf.WorkshopName != "" {
      db = db.Where("workshop_name = ?", slf.WorkshopName)
   }
   if slf.GroupNumber != 0 {
      db = db.Where("group_number = ?", slf.GroupNumber)
   }