fix列表调整
This commit is contained in:
parent
8d987c4c54
commit
df5414fc1d
|
@ -807,11 +807,11 @@ func (d *defaultOrder) CreatePrePaymentByDeposit(ctx context.Context, in *Create
|
|||
func (d *defaultOrder) List(ctx context.Context, in *ListReq) (res *ListRes, err error) {
|
||||
var orderList []gmodel.FsOrder
|
||||
model := d.MysqlConn.Model(&gmodel.FsOrder{}).Where("is_del = ?", 0)
|
||||
model.Where("pay_status > ?", 0)
|
||||
if in.UserId != 0 {
|
||||
model.Where("user_id = ?", in.UserId)
|
||||
}
|
||||
|
||||
// Where("pay_status > ?", 0)
|
||||
if in.DeliveryMethod != 0 {
|
||||
model.Where("delivery_method = ?", in.DeliveryMethod)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user