fix:订单逻辑

This commit is contained in:
momo 2023-10-08 10:23:39 +08:00
parent 3f78cfd824
commit 1480298bd7

View File

@ -910,7 +910,7 @@ 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)
model = model.Where("pay_status > ?", 0)
if in.UserId != 0 {
model = model.Where("user_id = ?", in.UserId)
}