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