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

11 lines
399 B
Go

package gmodel
import "context"
// TODO: 使用model的属性做你想做的
func (c *FsQuotationProductModel) GetAllByQuotationIdOrderAsc(ctx context.Context, quotationId int64) (resp []*FsQuotationProduct, err error) {
err = c.db.WithContext(ctx).Model(&FsQuotationProduct{}).Where("`quotation_id` = ? and `status` = ?", quotationId, 1).Order("sort asc").Find(&resp).Error
return resp, err
}