fusenapi/model/gmodel/fs_quotation_logic.go
2023-06-27 18:09:56 +08:00

11 lines
306 B
Go

package gmodel
import "context"
// TODO: 使用model的属性做你想做的
func (m *FsQuotationModel) FindOneOnlyById(ctx context.Context, quotationId int64) (resp FsQuotation, err error) {
err = m.db.WithContext(ctx).Model(&resp).Where("`id` = ?", quotationId).Take(&resp).Error
return resp, err
}