zhangqian
2023-08-11 d8ac88cfb72e3aac3a89c3cfe77774be3024a24c
model/serviceFeeManage.go
@@ -9,13 +9,13 @@
type (
   ServiceFeeManage struct {
      Id         int       `json:"id" gorm:"column:id;primaryKey;autoIncrement;not null"`
      ClientId   int       `json:"client_id" gorm:"column:client_id;type:int(11);comment:客户ID"`
      Client     *Client   `json:"client" gorm:"foreignKey:ClientId"`
      MemberId   int       `json:"member_id" gorm:"column:member_id;type:int(11);comment:员工ID"`
      LatestDate time.Time `json:"latest_date" gorm:"column:latest_date;type:datetime;comment:最晚服务时间"`
      Remark     string    `json:"remark" gorm:"column:remark;type:varchar(255);comment:备注"`
      File       string    `json:"file" gorm:"column:file;type:varchar(255);comment:文件"`
      Id         int         `json:"id" gorm:"column:id;primaryKey;autoIncrement;not null"`
      ClientId   int         `json:"client_id" gorm:"column:client_id;type:int(11);comment:客户ID"`
      Client     *Client     `json:"client" gorm:"foreignKey:ClientId"`
      MemberId   int         `json:"member_id" gorm:"column:member_id;type:int(11);comment:员工ID"`
      LatestDate *CustomTime `json:"latest_date" gorm:"column:latest_date;type:datetime;comment:最晚服务时间"`
      Remark     string      `json:"remark" gorm:"column:remark;type:varchar(255);comment:备注"`
      File       string      `json:"file" gorm:"column:file;type:varchar(255);comment:文件"`
      gorm.Model `json:"-"`
   }
@@ -170,3 +170,7 @@
   slf.OrderBy = order
   return slf
}
func (slf *ServiceFeeManageSearch) SetIds(ids []int) *ServiceFeeManageSearch {
   slf.Orm = slf.Orm.Where("id in (?)", ids)
   return slf
}