using New_College.Common;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;
namespace New_College.Model.ViewModels
{
public class OrderInfoQuery : BasePageRequest
{
///
/// 1支付宝支付 2微信支付
///
[SugarColumn(IsNullable = true)]
public EnumPayType PayType { get; set; }
///
/// 1支付宝支付 2微信支付
///
public string PayTypeName { get; set; }
///
/// 状态 1待支付 2已支付
///
public EnumOrderType Status { get; set; }
///
/// 状态 1待支付 2已支付
///
public string StatusName { get; set; }
///
/// 价格
///
public decimal Price { get; set; }
///
/// 实付款
///
public decimal PayPrice { get; set; }
///
/// 卡Id
///
[SugarColumn(IsNullable = true)]
public int CardId { get; set; }
///
/// 卡号
///
[SugarColumn(IsNullable = true)]
public string CardNo { get; set; }
///
/// 卡类型Id
///
public int CardTypeId { get; set; }
///
/// 卡类型名字
///
public string CardTypeName { get; set; }
///
/// 用户Id
///
public int CustomerId { get; set; }
///
/// 用户名
///
public string CustomerName { get; set; }
///
/// 名字
///
public string Name { get; set; }
///
/// out_trade_no
///
[SugarColumn(IsNullable = true)]
public string out_trade_no { get; set; }
///
/// 订单号
///
[SugarColumn(IsNullable = true)]
public string OrderId { get; set; }
///
/// 电话
///
public string Phone { get; set; }
///
///
///
public DateTime CreateTime { get; set; }
}
public class SearchOrderQuery : BasePageRequest
{
///
/// 根据卡号查询
///
public string CardNo { get; set; }
///
/// 根据VIP类别查询
///
public int CardTypeId { get; set; } = 0;
///
/// 根据支付方式查询
///
public int PayType { get; set; } = -1;
///
/// 根据支付状态查询
///
public int Status { get; set; } = -2;
///
/// 根据手机号查询
///
public string Phone { get; set; }
///
/// 根据out_trade_no号查询
///
public string out_trade_no { get; set; }
}
///
///
///
public class FrontOrderQuery : BasePageRequest
{
///
/// 根据卡号查询
///
public string CardNo { get; set; }
///
/// 根据VIP类别查询
///
public int? CardTypeId { get; set; }
///
/// 根据支付方式查询
///
public int? PayType { get; set; }
///
/// 根据支付状态查询
///
public int? Status { get; set; }
///
/// 根据CustomerId
///
public int CustomerId { get; set; }
///
/// 根据out_trade_no号查询
///
public string out_trade_no { get; set; }
}
}