fusenapi/model/gmodel/fs_quotation_logic.go

11 lines
316 B
Go
Raw Normal View History

2023-06-19 10:27:31 +00:00
package gmodel
2023-06-26 10:19:51 +00:00
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("`quotation_id` = ?", quotationId).Take(&resp).Error
return resp, err
}