fusenapi/model/gmodel/fs_quotation_logic.go

11 lines
306 B
Go
Raw Normal View History

2023-06-19 18:27:31 +08:00
package gmodel
2023-06-26 18:19:51 +08:00
import "context"
// TODO: 使用model的属性做你想做的
func (m *FsQuotationModel) FindOneOnlyById(ctx context.Context, quotationId int64) (resp FsQuotation, err error) {
2023-06-27 18:09:56 +08:00
err = m.db.WithContext(ctx).Model(&resp).Where("`id` = ?", quotationId).Take(&resp).Error
2023-06-26 18:19:51 +08:00
return resp, err
}