fusenapi/model/gmodel/fs_pay_logic.go
laodaming 4a5d84fb22 fix
2023-06-15 19:14:19 +08:00

12 lines
290 B
Go

package gmodel
import "context"
func (p *FsPayModel) GetListByOrderNumber(ctx context.Context, sn string) (resp []FsPay, err error) {
err = p.db.WithContext(ctx).Model(&FsPay{}).Where("`order_number` = ? ", sn).Find(&resp).Error
if err != nil {
return nil, err
}
return resp, nil
}