忽略dll文件git
This commit is contained in:
@@ -1,27 +1,27 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Hncore.Pass.PaymentCenter.Domain.Refund
|
||||
{
|
||||
/// <summary>
|
||||
/// 撤销状态
|
||||
/// </summary>
|
||||
public enum CancelStatus
|
||||
{
|
||||
[Display(Name ="未知")]None = 0,
|
||||
|
||||
/// <summary>
|
||||
/// 撤销中
|
||||
/// </summary>
|
||||
[Display(Name = "撤销中")] Canceling = 1,
|
||||
|
||||
/// <summary>
|
||||
/// 撤销成功
|
||||
/// </summary>
|
||||
[Display(Name = "撤销成功")] Success = 2,
|
||||
|
||||
/// <summary>
|
||||
/// 撤销失败
|
||||
/// </summary>
|
||||
[Display(Name = "撤销失败")] Fail = 3
|
||||
}
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Hncore.Pass.PaymentCenter.Domain.Refund
|
||||
{
|
||||
/// <summary>
|
||||
/// 撤销状态
|
||||
/// </summary>
|
||||
public enum CancelStatus
|
||||
{
|
||||
[Display(Name ="未知")]None = 0,
|
||||
|
||||
/// <summary>
|
||||
/// 撤销中
|
||||
/// </summary>
|
||||
[Display(Name = "撤销中")] Canceling = 1,
|
||||
|
||||
/// <summary>
|
||||
/// 撤销成功
|
||||
/// </summary>
|
||||
[Display(Name = "撤销成功")] Success = 2,
|
||||
|
||||
/// <summary>
|
||||
/// 撤销失败
|
||||
/// </summary>
|
||||
[Display(Name = "撤销失败")] Fail = 3
|
||||
}
|
||||
}
|
||||
@@ -1,289 +1,289 @@
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using NPOI.SS.Formula.Functions;
|
||||
|
||||
namespace Hncore.Pass.PaymentCenter.Domain
|
||||
{
|
||||
/// <summary>
|
||||
/// 支付状态
|
||||
/// </summary>
|
||||
///
|
||||
public enum PaymentStatus
|
||||
{
|
||||
/// <summary>
|
||||
/// 未支付
|
||||
/// </summary>
|
||||
[Display(Name = "未支付")] NotPay = 10,
|
||||
|
||||
/// <summary>
|
||||
/// 已支付
|
||||
/// </summary>
|
||||
[Display(Name = "已支付")] OkPay = 20,
|
||||
|
||||
/// <summary>
|
||||
/// 过期
|
||||
/// </summary>
|
||||
[Display(Name = "过期")] Expire = 30,
|
||||
|
||||
/// <summary>
|
||||
/// 支付失败
|
||||
/// </summary>
|
||||
[Display(Name = "支付失败")] Fail = 40,
|
||||
|
||||
/// <summary>
|
||||
/// 支付成功,回调失败
|
||||
/// </summary>
|
||||
[Display(Name = "支付成功,回调失败")] CallbackFail = 50,
|
||||
|
||||
/// <summary>
|
||||
/// 支付中
|
||||
/// </summary>
|
||||
[Display(Name = "支付中")] Paying = 60
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 支付类型
|
||||
/// </summary>
|
||||
public enum PaymentType
|
||||
{
|
||||
[Display(Name = "未知")] None = 0,
|
||||
|
||||
/// <summary>
|
||||
/// 线下支付-现金
|
||||
/// </summary>
|
||||
[Display(Name = "线下支付-现金")] OfflinePayCash = 10,
|
||||
|
||||
/// <summary>
|
||||
/// 线下支付-支票
|
||||
/// </summary>
|
||||
[Display(Name = "线下支付-支票")] OfflinePayCheck = 20,
|
||||
|
||||
/// <summary>
|
||||
/// 线下支付-银行转账
|
||||
/// </summary>
|
||||
[Display(Name = "线下支付-银行转账")] OfflinePayBank = 30,
|
||||
|
||||
/// <summary>
|
||||
/// 线下支付-pos机刷卡
|
||||
/// </summary>
|
||||
[Display(Name = "线下支付-pos机刷卡")] OfflinePayPOS = 40,
|
||||
|
||||
/// <summary>
|
||||
/// 线下支付-支付宝直接转账
|
||||
/// </summary>
|
||||
[Display(Name = "线下支付-支付宝直接转账")] OfflinePayAlipay = 50,
|
||||
|
||||
/// <summary>
|
||||
/// 线下支付-微信直接转账
|
||||
/// </summary>
|
||||
[Display(Name = "线下支付-微信直接转账")] OfflinePayWechat = 60,
|
||||
|
||||
/// <summary>
|
||||
/// 线上支付-微信支付
|
||||
/// </summary>
|
||||
[Display(Name = "线上支付-微信支付")] OnlinePayWechart = 70,
|
||||
|
||||
/// <summary>
|
||||
/// 线上支付-POS机储蓄卡刷卡
|
||||
/// </summary>
|
||||
[Display(Name = "线上支付-POS机储蓄卡刷卡")] OnlinePosDeposit = 80,
|
||||
|
||||
/// <summary>
|
||||
/// 线上支付-POS机信用卡刷卡
|
||||
/// </summary>
|
||||
[Display(Name = "线上支付-POS机信用卡刷卡")] OnlinePosCredit = 90,
|
||||
|
||||
/// <summary>
|
||||
/// 线上支付-支付宝
|
||||
/// </summary>
|
||||
[Display(Name = "线上支付-支付宝")] OnlineAlipay = 100,
|
||||
|
||||
/// <summary>
|
||||
/// 其他支付方式
|
||||
/// </summary>
|
||||
[Display(Name = "其他支付方式")] Other = 250
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 支付方式
|
||||
/// </summary>
|
||||
public enum PaymentMethod
|
||||
{
|
||||
None = 0,
|
||||
|
||||
/// <summary>
|
||||
/// 微信付款码支付
|
||||
/// </summary>
|
||||
[Display(Name = "微信付款码")] WechatSwipeCardPay = 1,
|
||||
|
||||
/// <summary>
|
||||
/// 微信扫码支付
|
||||
/// </summary>
|
||||
[Display(Name = "微信扫码")] WechatQrPay = 2,
|
||||
|
||||
/// <summary>
|
||||
/// 支付宝付款码支付
|
||||
/// </summary>
|
||||
[Display(Name = "支付宝付款码")] AliSwipeCardPay = 3,
|
||||
|
||||
/// <summary>
|
||||
/// 支付宝扫码支付
|
||||
/// </summary>
|
||||
[Display(Name = "支付宝付款码")] AliQrPay = 4,
|
||||
|
||||
/// <summary>
|
||||
/// 微信公众号支付
|
||||
/// </summary>
|
||||
[Display(Name = "微信公众号支付")] WechatJsAppPay = 5,
|
||||
|
||||
/// <summary>
|
||||
/// 支付宝服务窗支付
|
||||
/// </summary>
|
||||
[Display(Name = "支付宝服务窗支付")] AliJsPay = 6
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 订单类型
|
||||
/// </summary>
|
||||
///
|
||||
public enum OrderType
|
||||
{
|
||||
/// <summary>
|
||||
/// 短信订单
|
||||
/// </summary>
|
||||
[Display(Name = "短信订单")] SmsOrder = 0,
|
||||
|
||||
/// <summary>
|
||||
/// 产品订单
|
||||
/// </summary>
|
||||
[Display(Name = "产品订单")] Product = 1,
|
||||
|
||||
/// <summary>
|
||||
/// 续费订单
|
||||
/// </summary>
|
||||
[Display(Name = "续费订单")] RenewProduct = 2,
|
||||
|
||||
/// <summary>
|
||||
/// 物业缴费订单
|
||||
/// </summary>
|
||||
[Display(Name = "物业缴费订单")] Property = 3,
|
||||
|
||||
/// <summary>
|
||||
/// 停车券订单
|
||||
/// </summary>
|
||||
[Display(Name = "停车券订单")] ParkingCoupon = 4,
|
||||
|
||||
/// <summary>
|
||||
/// 月租车
|
||||
/// </summary>
|
||||
[Display(Name = "月租车订单")] MonthCar = 5,
|
||||
|
||||
/// <summary>
|
||||
/// 增值服务
|
||||
/// </summary>
|
||||
[Display(Name = "增值服务")] NodeProduct = 6,
|
||||
|
||||
/// <summary>
|
||||
/// 停车场临时缴费
|
||||
/// </summary>
|
||||
[Display(Name = "停车场临时缴费")] ParkingPay = 7,
|
||||
|
||||
/// <summary>
|
||||
/// 其它缴费
|
||||
/// </summary>
|
||||
[Display(Name = "其它缴费")] Other = 255
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 支付渠道
|
||||
/// </summary>
|
||||
public enum PaymentChannel
|
||||
{
|
||||
/// <summary>
|
||||
/// 全付通
|
||||
/// </summary>
|
||||
[Display(Name = "全付通")] QuanFuTong = 0,
|
||||
|
||||
/// <summary>
|
||||
/// 汇旺财
|
||||
/// </summary>
|
||||
[Display(Name = "威富通")] WeiFuTong = 10,
|
||||
|
||||
/// <summary>
|
||||
/// 信E付
|
||||
/// </summary>
|
||||
[Description("信E付")] EPay = 20,
|
||||
|
||||
/// <summary>
|
||||
/// 银联聚合支付
|
||||
/// </summary>
|
||||
[Description("银联聚合支付")] UnionpayAggregateRoot = 30,
|
||||
|
||||
/// <summary>
|
||||
/// 微信原生支付
|
||||
/// </summary>
|
||||
[Display(Name = "微信原生支付")] WxPay = 40,
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 缴费方式(订单类别)
|
||||
/// </summary>
|
||||
public enum PayModel
|
||||
{
|
||||
/// <summary>
|
||||
/// 停车缴费(11-50)
|
||||
/// </summary>
|
||||
[Display(Name = "停车场临时缴费")] ParkingPay = 10,
|
||||
|
||||
/// <summary>
|
||||
/// 停车场买卡(01-10)
|
||||
/// </summary>
|
||||
[Display(Name = "停车券订单")] ParkingCoupon = 20,
|
||||
|
||||
///// <summary>
|
||||
///// 广告发布(51-70)
|
||||
///// </summary>
|
||||
//[Display(Name = "广告订单")]
|
||||
//AdPay = 30,
|
||||
/// <summary>
|
||||
/// 物业缴费(71-99)
|
||||
/// </summary>
|
||||
[Display(Name = "物业收费订单")] PropertyPay = 40,
|
||||
|
||||
/// <summary>
|
||||
/// 其他临时收费
|
||||
/// </summary>
|
||||
[Display(Name = "其它临时收费")] OtherPay = 50,
|
||||
|
||||
/// <summary>
|
||||
/// 直接收费
|
||||
/// </summary>
|
||||
[Display(Name = "直接收费")] DirectPay = 60,
|
||||
|
||||
/// <summary>
|
||||
/// 月租车订单
|
||||
/// </summary>
|
||||
[Display(Name = "月租车订单")] MonthCar = 70
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 内部通知状态
|
||||
/// </summary>
|
||||
public enum CallbackStatus
|
||||
{
|
||||
/// <summary>
|
||||
/// 已创建
|
||||
/// </summary>
|
||||
[Display(Name = "未执行")] NoStart = 10,
|
||||
|
||||
/// <summary>
|
||||
/// 执行中
|
||||
/// </summary>
|
||||
[Display(Name = "执行中")] InProcess = 20,
|
||||
|
||||
/// <summary>
|
||||
/// 已完成
|
||||
/// </summary>
|
||||
[Display(Name = "已完成")] Finished = 30
|
||||
}
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using NPOI.SS.Formula.Functions;
|
||||
|
||||
namespace Hncore.Pass.PaymentCenter.Domain
|
||||
{
|
||||
/// <summary>
|
||||
/// 支付状态
|
||||
/// </summary>
|
||||
///
|
||||
public enum PaymentStatus
|
||||
{
|
||||
/// <summary>
|
||||
/// 未支付
|
||||
/// </summary>
|
||||
[Display(Name = "未支付")] NotPay = 10,
|
||||
|
||||
/// <summary>
|
||||
/// 已支付
|
||||
/// </summary>
|
||||
[Display(Name = "已支付")] OkPay = 20,
|
||||
|
||||
/// <summary>
|
||||
/// 过期
|
||||
/// </summary>
|
||||
[Display(Name = "过期")] Expire = 30,
|
||||
|
||||
/// <summary>
|
||||
/// 支付失败
|
||||
/// </summary>
|
||||
[Display(Name = "支付失败")] Fail = 40,
|
||||
|
||||
/// <summary>
|
||||
/// 支付成功,回调失败
|
||||
/// </summary>
|
||||
[Display(Name = "支付成功,回调失败")] CallbackFail = 50,
|
||||
|
||||
/// <summary>
|
||||
/// 支付中
|
||||
/// </summary>
|
||||
[Display(Name = "支付中")] Paying = 60
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 支付类型
|
||||
/// </summary>
|
||||
public enum PaymentType
|
||||
{
|
||||
[Display(Name = "未知")] None = 0,
|
||||
|
||||
/// <summary>
|
||||
/// 线下支付-现金
|
||||
/// </summary>
|
||||
[Display(Name = "线下支付-现金")] OfflinePayCash = 10,
|
||||
|
||||
/// <summary>
|
||||
/// 线下支付-支票
|
||||
/// </summary>
|
||||
[Display(Name = "线下支付-支票")] OfflinePayCheck = 20,
|
||||
|
||||
/// <summary>
|
||||
/// 线下支付-银行转账
|
||||
/// </summary>
|
||||
[Display(Name = "线下支付-银行转账")] OfflinePayBank = 30,
|
||||
|
||||
/// <summary>
|
||||
/// 线下支付-pos机刷卡
|
||||
/// </summary>
|
||||
[Display(Name = "线下支付-pos机刷卡")] OfflinePayPOS = 40,
|
||||
|
||||
/// <summary>
|
||||
/// 线下支付-支付宝直接转账
|
||||
/// </summary>
|
||||
[Display(Name = "线下支付-支付宝直接转账")] OfflinePayAlipay = 50,
|
||||
|
||||
/// <summary>
|
||||
/// 线下支付-微信直接转账
|
||||
/// </summary>
|
||||
[Display(Name = "线下支付-微信直接转账")] OfflinePayWechat = 60,
|
||||
|
||||
/// <summary>
|
||||
/// 线上支付-微信支付
|
||||
/// </summary>
|
||||
[Display(Name = "线上支付-微信支付")] OnlinePayWechart = 70,
|
||||
|
||||
/// <summary>
|
||||
/// 线上支付-POS机储蓄卡刷卡
|
||||
/// </summary>
|
||||
[Display(Name = "线上支付-POS机储蓄卡刷卡")] OnlinePosDeposit = 80,
|
||||
|
||||
/// <summary>
|
||||
/// 线上支付-POS机信用卡刷卡
|
||||
/// </summary>
|
||||
[Display(Name = "线上支付-POS机信用卡刷卡")] OnlinePosCredit = 90,
|
||||
|
||||
/// <summary>
|
||||
/// 线上支付-支付宝
|
||||
/// </summary>
|
||||
[Display(Name = "线上支付-支付宝")] OnlineAlipay = 100,
|
||||
|
||||
/// <summary>
|
||||
/// 其他支付方式
|
||||
/// </summary>
|
||||
[Display(Name = "其他支付方式")] Other = 250
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 支付方式
|
||||
/// </summary>
|
||||
public enum PaymentMethod
|
||||
{
|
||||
None = 0,
|
||||
|
||||
/// <summary>
|
||||
/// 微信付款码支付
|
||||
/// </summary>
|
||||
[Display(Name = "微信付款码")] WechatSwipeCardPay = 1,
|
||||
|
||||
/// <summary>
|
||||
/// 微信扫码支付
|
||||
/// </summary>
|
||||
[Display(Name = "微信扫码")] WechatQrPay = 2,
|
||||
|
||||
/// <summary>
|
||||
/// 支付宝付款码支付
|
||||
/// </summary>
|
||||
[Display(Name = "支付宝付款码")] AliSwipeCardPay = 3,
|
||||
|
||||
/// <summary>
|
||||
/// 支付宝扫码支付
|
||||
/// </summary>
|
||||
[Display(Name = "支付宝付款码")] AliQrPay = 4,
|
||||
|
||||
/// <summary>
|
||||
/// 微信公众号支付
|
||||
/// </summary>
|
||||
[Display(Name = "微信公众号支付")] WechatJsAppPay = 5,
|
||||
|
||||
/// <summary>
|
||||
/// 支付宝服务窗支付
|
||||
/// </summary>
|
||||
[Display(Name = "支付宝服务窗支付")] AliJsPay = 6
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 订单类型
|
||||
/// </summary>
|
||||
///
|
||||
public enum OrderType
|
||||
{
|
||||
/// <summary>
|
||||
/// 短信订单
|
||||
/// </summary>
|
||||
[Display(Name = "短信订单")] SmsOrder = 0,
|
||||
|
||||
/// <summary>
|
||||
/// 产品订单
|
||||
/// </summary>
|
||||
[Display(Name = "产品订单")] Product = 1,
|
||||
|
||||
/// <summary>
|
||||
/// 续费订单
|
||||
/// </summary>
|
||||
[Display(Name = "续费订单")] RenewProduct = 2,
|
||||
|
||||
/// <summary>
|
||||
/// 物业缴费订单
|
||||
/// </summary>
|
||||
[Display(Name = "物业缴费订单")] Property = 3,
|
||||
|
||||
/// <summary>
|
||||
/// 停车券订单
|
||||
/// </summary>
|
||||
[Display(Name = "停车券订单")] ParkingCoupon = 4,
|
||||
|
||||
/// <summary>
|
||||
/// 月租车
|
||||
/// </summary>
|
||||
[Display(Name = "月租车订单")] MonthCar = 5,
|
||||
|
||||
/// <summary>
|
||||
/// 增值服务
|
||||
/// </summary>
|
||||
[Display(Name = "增值服务")] NodeProduct = 6,
|
||||
|
||||
/// <summary>
|
||||
/// 停车场临时缴费
|
||||
/// </summary>
|
||||
[Display(Name = "停车场临时缴费")] ParkingPay = 7,
|
||||
|
||||
/// <summary>
|
||||
/// 其它缴费
|
||||
/// </summary>
|
||||
[Display(Name = "其它缴费")] Other = 255
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 支付渠道
|
||||
/// </summary>
|
||||
public enum PaymentChannel
|
||||
{
|
||||
/// <summary>
|
||||
/// 全付通
|
||||
/// </summary>
|
||||
[Display(Name = "全付通")] QuanFuTong = 0,
|
||||
|
||||
/// <summary>
|
||||
/// 汇旺财
|
||||
/// </summary>
|
||||
[Display(Name = "威富通")] WeiFuTong = 10,
|
||||
|
||||
/// <summary>
|
||||
/// 信E付
|
||||
/// </summary>
|
||||
[Description("信E付")] EPay = 20,
|
||||
|
||||
/// <summary>
|
||||
/// 银联聚合支付
|
||||
/// </summary>
|
||||
[Description("银联聚合支付")] UnionpayAggregateRoot = 30,
|
||||
|
||||
/// <summary>
|
||||
/// 微信原生支付
|
||||
/// </summary>
|
||||
[Display(Name = "微信原生支付")] WxPay = 40,
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 缴费方式(订单类别)
|
||||
/// </summary>
|
||||
public enum PayModel
|
||||
{
|
||||
/// <summary>
|
||||
/// 停车缴费(11-50)
|
||||
/// </summary>
|
||||
[Display(Name = "停车场临时缴费")] ParkingPay = 10,
|
||||
|
||||
/// <summary>
|
||||
/// 停车场买卡(01-10)
|
||||
/// </summary>
|
||||
[Display(Name = "停车券订单")] ParkingCoupon = 20,
|
||||
|
||||
///// <summary>
|
||||
///// 广告发布(51-70)
|
||||
///// </summary>
|
||||
//[Display(Name = "广告订单")]
|
||||
//AdPay = 30,
|
||||
/// <summary>
|
||||
/// 物业缴费(71-99)
|
||||
/// </summary>
|
||||
[Display(Name = "物业收费订单")] PropertyPay = 40,
|
||||
|
||||
/// <summary>
|
||||
/// 其他临时收费
|
||||
/// </summary>
|
||||
[Display(Name = "其它临时收费")] OtherPay = 50,
|
||||
|
||||
/// <summary>
|
||||
/// 直接收费
|
||||
/// </summary>
|
||||
[Display(Name = "直接收费")] DirectPay = 60,
|
||||
|
||||
/// <summary>
|
||||
/// 月租车订单
|
||||
/// </summary>
|
||||
[Display(Name = "月租车订单")] MonthCar = 70
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 内部通知状态
|
||||
/// </summary>
|
||||
public enum CallbackStatus
|
||||
{
|
||||
/// <summary>
|
||||
/// 已创建
|
||||
/// </summary>
|
||||
[Display(Name = "未执行")] NoStart = 10,
|
||||
|
||||
/// <summary>
|
||||
/// 执行中
|
||||
/// </summary>
|
||||
[Display(Name = "执行中")] InProcess = 20,
|
||||
|
||||
/// <summary>
|
||||
/// 已完成
|
||||
/// </summary>
|
||||
[Display(Name = "已完成")] Finished = 30
|
||||
}
|
||||
}
|
||||
@@ -1,31 +1,31 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Hncore.Pass.PaymentCenter.Domain
|
||||
{
|
||||
public partial class Manager
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public int TenantId { get; set; }
|
||||
public DateTime CreateTime { get; set; }
|
||||
public DateTime UpdateTime { get; set; }
|
||||
public int DeleteTag { get; set; }
|
||||
public int CreatorId { get; set; }
|
||||
public int UpdatorId { get; set; }
|
||||
public string LoginCode { get; set; }
|
||||
public string Password { get; set; }
|
||||
public int RoleId { get; set; }
|
||||
public int State { get; set; }
|
||||
public string PhotoUrl { get; set; }
|
||||
public string WxOpenid { get; set; }
|
||||
public string WxNickName { get; set; }
|
||||
public string WxImage { get; set; }
|
||||
public int? Source { get; set; }
|
||||
public string Phone { get; set; }
|
||||
public string ManagerCode { get; set; }
|
||||
public string RealName { get; set; }
|
||||
public string Email { get; set; }
|
||||
public sbyte? IsRoot { get; set; }
|
||||
public int? SystemId { get; set; }
|
||||
}
|
||||
}
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Hncore.Pass.PaymentCenter.Domain
|
||||
{
|
||||
public partial class Manager
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public int TenantId { get; set; }
|
||||
public DateTime CreateTime { get; set; }
|
||||
public DateTime UpdateTime { get; set; }
|
||||
public int DeleteTag { get; set; }
|
||||
public int CreatorId { get; set; }
|
||||
public int UpdatorId { get; set; }
|
||||
public string LoginCode { get; set; }
|
||||
public string Password { get; set; }
|
||||
public int RoleId { get; set; }
|
||||
public int State { get; set; }
|
||||
public string PhotoUrl { get; set; }
|
||||
public string WxOpenid { get; set; }
|
||||
public string WxNickName { get; set; }
|
||||
public string WxImage { get; set; }
|
||||
public int? Source { get; set; }
|
||||
public string Phone { get; set; }
|
||||
public string ManagerCode { get; set; }
|
||||
public string RealName { get; set; }
|
||||
public string Email { get; set; }
|
||||
public sbyte? IsRoot { get; set; }
|
||||
public int? SystemId { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,21 +1,21 @@
|
||||
using Hncore.Infrastructure.Extension;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Hncore.Pass.PaymentCenter.Domain.Refund;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Hncore.Pass.PaymentCenter.Domain
|
||||
{
|
||||
/// <summary>
|
||||
/// 通知类型
|
||||
/// </summary>
|
||||
public enum NotifyType
|
||||
{
|
||||
|
||||
[Display(Name = "未知")] None = 0,
|
||||
|
||||
[Display(Name = "未知")] Success = 1,
|
||||
[Display(Name = "未知")] Faild = 2,
|
||||
|
||||
}
|
||||
}
|
||||
using Hncore.Infrastructure.Extension;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Hncore.Pass.PaymentCenter.Domain.Refund;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Hncore.Pass.PaymentCenter.Domain
|
||||
{
|
||||
/// <summary>
|
||||
/// 通知类型
|
||||
/// </summary>
|
||||
public enum NotifyType
|
||||
{
|
||||
|
||||
[Display(Name = "未知")] None = 0,
|
||||
|
||||
[Display(Name = "未知")] Success = 1,
|
||||
[Display(Name = "未知")] Faild = 2,
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,70 +1,70 @@
|
||||
using System;
|
||||
using Hncore.Infrastructure.EF;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Metadata;
|
||||
|
||||
namespace Hncore.Pass.PaymentCenter.Domain
|
||||
{
|
||||
public partial class PaymentContext : DbContextBase
|
||||
{
|
||||
public PaymentContext(DbContextOptions<PaymentContext> options, IHttpContextAccessor httpContextAccessor) :
|
||||
base(options, httpContextAccessor)
|
||||
{
|
||||
}
|
||||
|
||||
public virtual DbSet<PaymentRecord> PaymentRecord { get; set; }
|
||||
public virtual DbSet<Manager> Manager { get; set; }
|
||||
public virtual DbSet<PaymentNotify> PaymentRecordNotify { get; set; }
|
||||
public virtual DbSet<RefundRecord> PaymentRefundRecord { get; set; }
|
||||
public virtual DbSet<TenantEntity> Tenant { get; set; }
|
||||
public virtual DbSet<TenantStore> TenantStore { get; set; }
|
||||
|
||||
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.Entity<Manager>(entity =>
|
||||
{
|
||||
entity.ToTable("manager");
|
||||
entity.HasKey(p => p.Id);
|
||||
entity.Property(e => e.Id).ValueGeneratedOnAdd();
|
||||
});
|
||||
|
||||
modelBuilder.Entity<PaymentNotify>(entity =>
|
||||
{
|
||||
entity.ToTable("payment_record_notify");
|
||||
entity.HasKey(p => p.Id);
|
||||
entity.Property(e => e.Id).ValueGeneratedOnAdd();
|
||||
});
|
||||
|
||||
modelBuilder.Entity<RefundRecord>(entity =>
|
||||
{
|
||||
entity.ToTable("payment_refund_record");
|
||||
entity.HasKey(p => p.Id);
|
||||
entity.Property(e => e.Id).ValueGeneratedOnAdd();
|
||||
});
|
||||
|
||||
modelBuilder.Entity<TenantEntity>(entity =>
|
||||
{
|
||||
entity.ToTable("tenant");
|
||||
entity.HasKey(p => p.Id);
|
||||
entity.Property(e => e.Id).ValueGeneratedOnAdd();
|
||||
});
|
||||
|
||||
modelBuilder.Entity<TenantStore>(entity =>
|
||||
{
|
||||
entity.ToTable("tenant_store");
|
||||
|
||||
entity.HasKey(p => p.Id);
|
||||
entity.Property(e => e.Id).ValueGeneratedOnAdd();
|
||||
});
|
||||
modelBuilder.Entity<PaymentRecord>(entity =>
|
||||
{
|
||||
entity.ToTable("payment_record");
|
||||
|
||||
entity.HasKey(p => p.Id);
|
||||
entity.Property(e => e.Id).ValueGeneratedOnAdd();
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
using System;
|
||||
using Hncore.Infrastructure.EF;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Metadata;
|
||||
|
||||
namespace Hncore.Pass.PaymentCenter.Domain
|
||||
{
|
||||
public partial class PaymentContext : DbContextBase
|
||||
{
|
||||
public PaymentContext(DbContextOptions<PaymentContext> options, IHttpContextAccessor httpContextAccessor) :
|
||||
base(options, httpContextAccessor)
|
||||
{
|
||||
}
|
||||
|
||||
public virtual DbSet<PaymentRecord> PaymentRecord { get; set; }
|
||||
public virtual DbSet<Manager> Manager { get; set; }
|
||||
public virtual DbSet<PaymentNotify> PaymentRecordNotify { get; set; }
|
||||
public virtual DbSet<RefundRecord> PaymentRefundRecord { get; set; }
|
||||
public virtual DbSet<TenantEntity> Tenant { get; set; }
|
||||
public virtual DbSet<TenantStore> TenantStore { get; set; }
|
||||
|
||||
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.Entity<Manager>(entity =>
|
||||
{
|
||||
entity.ToTable("manager");
|
||||
entity.HasKey(p => p.Id);
|
||||
entity.Property(e => e.Id).ValueGeneratedOnAdd();
|
||||
});
|
||||
|
||||
modelBuilder.Entity<PaymentNotify>(entity =>
|
||||
{
|
||||
entity.ToTable("payment_record_notify");
|
||||
entity.HasKey(p => p.Id);
|
||||
entity.Property(e => e.Id).ValueGeneratedOnAdd();
|
||||
});
|
||||
|
||||
modelBuilder.Entity<RefundRecord>(entity =>
|
||||
{
|
||||
entity.ToTable("payment_refund_record");
|
||||
entity.HasKey(p => p.Id);
|
||||
entity.Property(e => e.Id).ValueGeneratedOnAdd();
|
||||
});
|
||||
|
||||
modelBuilder.Entity<TenantEntity>(entity =>
|
||||
{
|
||||
entity.ToTable("tenant");
|
||||
entity.HasKey(p => p.Id);
|
||||
entity.Property(e => e.Id).ValueGeneratedOnAdd();
|
||||
});
|
||||
|
||||
modelBuilder.Entity<TenantStore>(entity =>
|
||||
{
|
||||
entity.ToTable("tenant_store");
|
||||
|
||||
entity.HasKey(p => p.Id);
|
||||
entity.Property(e => e.Id).ValueGeneratedOnAdd();
|
||||
});
|
||||
modelBuilder.Entity<PaymentRecord>(entity =>
|
||||
{
|
||||
entity.ToTable("payment_record");
|
||||
|
||||
entity.HasKey(p => p.Id);
|
||||
entity.Property(e => e.Id).ValueGeneratedOnAdd();
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,20 +1,20 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Hncore.Pass.PaymentCenter.Domain
|
||||
{
|
||||
public partial class PaymentNotify
|
||||
{
|
||||
public uint Id { get; set; }
|
||||
public int PaymentRecordId { get; set; }
|
||||
public string Url { get; set; }
|
||||
public string PostData { get; set; }
|
||||
public string ResponseData { get; set; }
|
||||
public int RetryCount { get; set; }
|
||||
public DateTime CreateTime { get; set; }
|
||||
public DateTime UpdateTime { get; set; }
|
||||
public int DeleteTag { get; set; }
|
||||
|
||||
public NotifyType NotifyType { get; set; }
|
||||
}
|
||||
}
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Hncore.Pass.PaymentCenter.Domain
|
||||
{
|
||||
public partial class PaymentNotify
|
||||
{
|
||||
public uint Id { get; set; }
|
||||
public int PaymentRecordId { get; set; }
|
||||
public string Url { get; set; }
|
||||
public string PostData { get; set; }
|
||||
public string ResponseData { get; set; }
|
||||
public int RetryCount { get; set; }
|
||||
public DateTime CreateTime { get; set; }
|
||||
public DateTime UpdateTime { get; set; }
|
||||
public int DeleteTag { get; set; }
|
||||
|
||||
public NotifyType NotifyType { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,197 +1,197 @@
|
||||
using Hncore.Infrastructure.Common;
|
||||
using Hncore.Infrastructure.Serializer;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Hncore.Pass.PaymentCenter.Domain
|
||||
{
|
||||
public partial class PaymentRecord
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public int TenantId { get; set; }
|
||||
public int StoreId { get; set; }
|
||||
public DateTime RequestTime { get; set; } = DateTime.Now;
|
||||
public string RequestParams { get; set; }
|
||||
public PaymentStatus PaymentStatus { get; set; }
|
||||
public string PaymentNumber { get; set; }
|
||||
public string PaymentCompletionTime { get; set; }
|
||||
public int PaymentTotal { get; set; }
|
||||
public PaymentType PaymentType { get; set; }
|
||||
public int CallbackNumber { get; set; }
|
||||
public string CallbackUrl { get; set; }
|
||||
public string Openid { get; set; }
|
||||
public string Appid { get; set; }
|
||||
public string AppName { get; set; }
|
||||
public string Body { get; set; }
|
||||
public string OrderId { get; set; }
|
||||
public DateTime? CreateTime { get; set; } = DateTime.Now;
|
||||
public DateTime? UpdateTime { get; set; } = DateTime.Now;
|
||||
public int DeleteTag { get; set; } = 0;
|
||||
public int BusinessType { get; set; }
|
||||
public OrderType OrderType { get; set; }
|
||||
public int FromPos { get; set; }
|
||||
public int TaskStatus { get; set; }
|
||||
public PaymentChannel PaymentChannel { get; set; }
|
||||
public string GenSource { get; set; }
|
||||
public DateTime? PaySuccessTime { get; set; }
|
||||
public string RefundTotalFee { get; set; }
|
||||
public PaymentMethod PaymentMethod { get; set; }
|
||||
public CallbackStatus CallbackStatus { get; set; }
|
||||
public string TransactionId { get; set; }
|
||||
|
||||
public string Attach { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 设置为支付成功
|
||||
/// </summary>
|
||||
/// <param name="transactionId">平台交易单号</param>
|
||||
/// <param name="paySuccessTime">付款成功时间</param>
|
||||
public void SetPaySuccessed(string transactionId, DateTime? paySuccessTime)
|
||||
{
|
||||
this.PaymentStatus = PaymentStatus.OkPay;
|
||||
this.UpdateTime = DateTime.Now;
|
||||
this.PaymentCompletionTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
|
||||
|
||||
if (paySuccessTime != null)
|
||||
{
|
||||
this.PaySuccessTime = paySuccessTime;
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(transactionId))
|
||||
{
|
||||
this.TransactionId = transactionId;
|
||||
}
|
||||
|
||||
LogHelper.Info("支付记录设置为支——付成功", this.ToJson());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 设置为支付中
|
||||
/// </summary>
|
||||
public void SetPaying()
|
||||
{
|
||||
if (this.PaymentStatus == PaymentStatus.OkPay)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
this.PaymentStatus = PaymentStatus.Paying;
|
||||
this.UpdateTime = DateTime.Now;
|
||||
|
||||
LogHelper.Info("支付记录设置为——支付中", this.ToJson());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 设置为支付失败
|
||||
/// </summary>
|
||||
public void SetPayFailed()
|
||||
{
|
||||
if (this.PaymentStatus == PaymentStatus.OkPay)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
this.PaymentStatus = PaymentStatus.Fail;
|
||||
this.UpdateTime = DateTime.Now;
|
||||
this.PaymentCompletionTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据支付平台的tradetype设置PaymentType
|
||||
/// </summary>
|
||||
/// <param name="tradeType"></param>
|
||||
public void SetPaymentTypeFromTradeType(string tradeType)
|
||||
{
|
||||
if (this.PaymentChannel == PaymentChannel.UnionpayAggregateRoot)
|
||||
{
|
||||
this.PaymentType = PaymentType.OfflinePayCash;
|
||||
|
||||
if (tradeType == "pay.weixin.micropay") //微信付款码支付
|
||||
{
|
||||
this.PaymentType = PaymentType.OnlinePayWechart;
|
||||
this.PaymentMethod = PaymentMethod.WechatSwipeCardPay;
|
||||
}
|
||||
|
||||
if (tradeType == "pay.alipay.micropay") //支付宝付款码
|
||||
{
|
||||
this.PaymentType = PaymentType.OnlineAlipay;
|
||||
this.PaymentMethod = PaymentMethod.AliSwipeCardPay;
|
||||
}
|
||||
|
||||
if (tradeType == "pay.alipay.jspay") //支付宝扫码
|
||||
{
|
||||
this.PaymentType = PaymentType.OnlineAlipay;
|
||||
this.PaymentMethod = PaymentMethod.AliQrPay;
|
||||
}
|
||||
|
||||
if (tradeType == "pay.weixin.jspay") //微信扫码
|
||||
{
|
||||
this.PaymentType = PaymentType.OnlinePayWechart;
|
||||
this.PaymentMethod = PaymentMethod.WechatJsAppPay;
|
||||
}
|
||||
|
||||
//支付宝支付窗支付
|
||||
if (tradeType == "pay.alipay.native")
|
||||
{
|
||||
this.PaymentType = PaymentType.OnlineAlipay;
|
||||
this.PaymentMethod = PaymentMethod.AliJsPay;
|
||||
}
|
||||
}
|
||||
|
||||
if ((this.PaymentChannel == PaymentChannel.WeiFuTong || this.PaymentChannel == PaymentChannel.QuanFuTong)
|
||||
&& this.FromPos ==1)
|
||||
{
|
||||
this.PaymentType = PaymentType.OfflinePayCash;
|
||||
|
||||
//微信付款码支付
|
||||
if (tradeType == "pay.weixin.micropay" || tradeType == "pay.wechat.micropay")
|
||||
{
|
||||
this.PaymentType = PaymentType.OnlinePayWechart;
|
||||
this.PaymentMethod = PaymentMethod.WechatSwipeCardPay;
|
||||
}
|
||||
|
||||
//微信公众号支付
|
||||
if (tradeType == "pay.weixin.jspay" || tradeType == "pay.wechat.jspay")
|
||||
{
|
||||
this.PaymentType = PaymentType.OnlinePayWechart;
|
||||
this.PaymentMethod = PaymentMethod.WechatJsAppPay;
|
||||
}
|
||||
|
||||
//微信扫码支付
|
||||
if (tradeType == "pay.weixin.native" || tradeType == "pay.wechat.native")
|
||||
{
|
||||
this.PaymentType = PaymentType.OnlinePayWechart;
|
||||
this.PaymentMethod = PaymentMethod.WechatQrPay;
|
||||
}
|
||||
|
||||
//支付宝付款码支付
|
||||
if (tradeType == "pay.alipay.micropay")
|
||||
{
|
||||
this.PaymentType = PaymentType.OnlineAlipay;
|
||||
this.PaymentMethod = PaymentMethod.AliSwipeCardPay;
|
||||
}
|
||||
|
||||
//支付宝扫码支付
|
||||
if (tradeType == "pay.alipay.native")
|
||||
{
|
||||
this.PaymentType = PaymentType.OnlineAlipay;
|
||||
this.PaymentMethod = PaymentMethod.AliQrPay;
|
||||
}
|
||||
|
||||
//银联支付
|
||||
if (tradeType == "pay.unionpay.micropay")
|
||||
{
|
||||
this.PaymentType = PaymentType.OnlinePayWechart;
|
||||
}
|
||||
|
||||
//支付宝支付窗支付
|
||||
if (tradeType == "pay.alipay.jspay")
|
||||
{
|
||||
this.PaymentType = PaymentType.OnlineAlipay;
|
||||
this.PaymentMethod = PaymentMethod.AliJsPay;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
using Hncore.Infrastructure.Common;
|
||||
using Hncore.Infrastructure.Serializer;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Hncore.Pass.PaymentCenter.Domain
|
||||
{
|
||||
public partial class PaymentRecord
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public int TenantId { get; set; }
|
||||
public int StoreId { get; set; }
|
||||
public DateTime RequestTime { get; set; } = DateTime.Now;
|
||||
public string RequestParams { get; set; }
|
||||
public PaymentStatus PaymentStatus { get; set; }
|
||||
public string PaymentNumber { get; set; }
|
||||
public string PaymentCompletionTime { get; set; }
|
||||
public int PaymentTotal { get; set; }
|
||||
public PaymentType PaymentType { get; set; }
|
||||
public int CallbackNumber { get; set; }
|
||||
public string CallbackUrl { get; set; }
|
||||
public string Openid { get; set; }
|
||||
public string Appid { get; set; }
|
||||
public string AppName { get; set; }
|
||||
public string Body { get; set; }
|
||||
public string OrderId { get; set; }
|
||||
public DateTime? CreateTime { get; set; } = DateTime.Now;
|
||||
public DateTime? UpdateTime { get; set; } = DateTime.Now;
|
||||
public int DeleteTag { get; set; } = 0;
|
||||
public int BusinessType { get; set; }
|
||||
public OrderType OrderType { get; set; }
|
||||
public int FromPos { get; set; }
|
||||
public int TaskStatus { get; set; }
|
||||
public PaymentChannel PaymentChannel { get; set; }
|
||||
public string GenSource { get; set; }
|
||||
public DateTime? PaySuccessTime { get; set; }
|
||||
public string RefundTotalFee { get; set; }
|
||||
public PaymentMethod PaymentMethod { get; set; }
|
||||
public CallbackStatus CallbackStatus { get; set; }
|
||||
public string TransactionId { get; set; }
|
||||
|
||||
public string Attach { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 设置为支付成功
|
||||
/// </summary>
|
||||
/// <param name="transactionId">平台交易单号</param>
|
||||
/// <param name="paySuccessTime">付款成功时间</param>
|
||||
public void SetPaySuccessed(string transactionId, DateTime? paySuccessTime)
|
||||
{
|
||||
this.PaymentStatus = PaymentStatus.OkPay;
|
||||
this.UpdateTime = DateTime.Now;
|
||||
this.PaymentCompletionTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
|
||||
|
||||
if (paySuccessTime != null)
|
||||
{
|
||||
this.PaySuccessTime = paySuccessTime;
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(transactionId))
|
||||
{
|
||||
this.TransactionId = transactionId;
|
||||
}
|
||||
|
||||
LogHelper.Info("支付记录设置为支——付成功", this.ToJson());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 设置为支付中
|
||||
/// </summary>
|
||||
public void SetPaying()
|
||||
{
|
||||
if (this.PaymentStatus == PaymentStatus.OkPay)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
this.PaymentStatus = PaymentStatus.Paying;
|
||||
this.UpdateTime = DateTime.Now;
|
||||
|
||||
LogHelper.Info("支付记录设置为——支付中", this.ToJson());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 设置为支付失败
|
||||
/// </summary>
|
||||
public void SetPayFailed()
|
||||
{
|
||||
if (this.PaymentStatus == PaymentStatus.OkPay)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
this.PaymentStatus = PaymentStatus.Fail;
|
||||
this.UpdateTime = DateTime.Now;
|
||||
this.PaymentCompletionTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据支付平台的tradetype设置PaymentType
|
||||
/// </summary>
|
||||
/// <param name="tradeType"></param>
|
||||
public void SetPaymentTypeFromTradeType(string tradeType)
|
||||
{
|
||||
if (this.PaymentChannel == PaymentChannel.UnionpayAggregateRoot)
|
||||
{
|
||||
this.PaymentType = PaymentType.OfflinePayCash;
|
||||
|
||||
if (tradeType == "pay.weixin.micropay") //微信付款码支付
|
||||
{
|
||||
this.PaymentType = PaymentType.OnlinePayWechart;
|
||||
this.PaymentMethod = PaymentMethod.WechatSwipeCardPay;
|
||||
}
|
||||
|
||||
if (tradeType == "pay.alipay.micropay") //支付宝付款码
|
||||
{
|
||||
this.PaymentType = PaymentType.OnlineAlipay;
|
||||
this.PaymentMethod = PaymentMethod.AliSwipeCardPay;
|
||||
}
|
||||
|
||||
if (tradeType == "pay.alipay.jspay") //支付宝扫码
|
||||
{
|
||||
this.PaymentType = PaymentType.OnlineAlipay;
|
||||
this.PaymentMethod = PaymentMethod.AliQrPay;
|
||||
}
|
||||
|
||||
if (tradeType == "pay.weixin.jspay") //微信扫码
|
||||
{
|
||||
this.PaymentType = PaymentType.OnlinePayWechart;
|
||||
this.PaymentMethod = PaymentMethod.WechatJsAppPay;
|
||||
}
|
||||
|
||||
//支付宝支付窗支付
|
||||
if (tradeType == "pay.alipay.native")
|
||||
{
|
||||
this.PaymentType = PaymentType.OnlineAlipay;
|
||||
this.PaymentMethod = PaymentMethod.AliJsPay;
|
||||
}
|
||||
}
|
||||
|
||||
if ((this.PaymentChannel == PaymentChannel.WeiFuTong || this.PaymentChannel == PaymentChannel.QuanFuTong)
|
||||
&& this.FromPos ==1)
|
||||
{
|
||||
this.PaymentType = PaymentType.OfflinePayCash;
|
||||
|
||||
//微信付款码支付
|
||||
if (tradeType == "pay.weixin.micropay" || tradeType == "pay.wechat.micropay")
|
||||
{
|
||||
this.PaymentType = PaymentType.OnlinePayWechart;
|
||||
this.PaymentMethod = PaymentMethod.WechatSwipeCardPay;
|
||||
}
|
||||
|
||||
//微信公众号支付
|
||||
if (tradeType == "pay.weixin.jspay" || tradeType == "pay.wechat.jspay")
|
||||
{
|
||||
this.PaymentType = PaymentType.OnlinePayWechart;
|
||||
this.PaymentMethod = PaymentMethod.WechatJsAppPay;
|
||||
}
|
||||
|
||||
//微信扫码支付
|
||||
if (tradeType == "pay.weixin.native" || tradeType == "pay.wechat.native")
|
||||
{
|
||||
this.PaymentType = PaymentType.OnlinePayWechart;
|
||||
this.PaymentMethod = PaymentMethod.WechatQrPay;
|
||||
}
|
||||
|
||||
//支付宝付款码支付
|
||||
if (tradeType == "pay.alipay.micropay")
|
||||
{
|
||||
this.PaymentType = PaymentType.OnlineAlipay;
|
||||
this.PaymentMethod = PaymentMethod.AliSwipeCardPay;
|
||||
}
|
||||
|
||||
//支付宝扫码支付
|
||||
if (tradeType == "pay.alipay.native")
|
||||
{
|
||||
this.PaymentType = PaymentType.OnlineAlipay;
|
||||
this.PaymentMethod = PaymentMethod.AliQrPay;
|
||||
}
|
||||
|
||||
//银联支付
|
||||
if (tradeType == "pay.unionpay.micropay")
|
||||
{
|
||||
this.PaymentType = PaymentType.OnlinePayWechart;
|
||||
}
|
||||
|
||||
//支付宝支付窗支付
|
||||
if (tradeType == "pay.alipay.jspay")
|
||||
{
|
||||
this.PaymentType = PaymentType.OnlineAlipay;
|
||||
this.PaymentMethod = PaymentMethod.AliJsPay;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,120 +1,120 @@
|
||||
using Hncore.Infrastructure.Extension;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Hncore.Pass.PaymentCenter.Domain.Refund;
|
||||
namespace Hncore.Pass.PaymentCenter.Domain
|
||||
{
|
||||
public partial class RefundRecord
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public DateTime? CreateTime { get; set; }
|
||||
public DateTime? UpdateTime { get; set; }
|
||||
public int? DeleteTag { get; set; }
|
||||
public int? TenantId { get; set; }
|
||||
public int? StoreId { get; set; }
|
||||
public int? PaymentRecordId { get; set; }
|
||||
public DateTime? RequestTime { get; set; }
|
||||
public string OrderId { get; set; }
|
||||
public string TransactionId { get; set; }
|
||||
public string RefundId { get; set; }
|
||||
public string TransactionRefundId { get; set; }
|
||||
public RefundStatus RefundStatus { get; set; }
|
||||
public int? RefundFee { get; set; }
|
||||
public int? OrderTotalFee { get; set; }
|
||||
public PaymentChannel PaymentChannel { get; set; }
|
||||
public int PaymentMethod { get; set; }
|
||||
public PaymentType PaymentType { get; set; }
|
||||
public DateTime? RefundSuccessTime { get; set; }
|
||||
public string RefundReason { get; set; }
|
||||
public DateTime? ApplyCancelTime { get; set; }
|
||||
public string CancelReason { get; set; }
|
||||
public CancelStatus CancelStatus { get; set; }
|
||||
public DateTime? QueryJobPollTime { get; set; }
|
||||
public DateTime? StatementJobPollTime { get; set; }
|
||||
public string CompanyName { get; set; }
|
||||
public int? OperatorId { get; set; }
|
||||
public string OperatorName { get; set; }
|
||||
public int? OffLineRefund { get; set; }
|
||||
public int TaskStates { get; set; }
|
||||
public string Bak { get; set; }
|
||||
public string CallbackUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 设置为退款成功
|
||||
/// </summary>
|
||||
/// <param name="transactionRefundId">交易平台退款单号</param>
|
||||
/// <param name="refundSuccessTime">退款到账时间</param>
|
||||
public void SetRefundSuccessed(string transactionRefundId, DateTime? refundSuccessTime)
|
||||
{
|
||||
this.RefundStatus = RefundStatus.Success;
|
||||
this.UpdateTime = DateTime.Now;
|
||||
|
||||
if (refundSuccessTime != null)
|
||||
{
|
||||
this.RefundSuccessTime = refundSuccessTime;
|
||||
}
|
||||
|
||||
if (transactionRefundId.Has())
|
||||
{
|
||||
this.TransactionRefundId = transactionRefundId;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 设置为退款失败
|
||||
/// </summary>
|
||||
public void SetRefundFailed()
|
||||
{
|
||||
this.RefundStatus = RefundStatus.Fail;
|
||||
this.UpdateTime = DateTime.Now;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 设置为撤销成功
|
||||
/// </summary>
|
||||
public void SetCancelSuccessed()
|
||||
{
|
||||
// 撤销中,未到账
|
||||
if (this.CancelStatus == CancelStatus.Canceling && this.RefundStatus != RefundStatus.Success)
|
||||
{
|
||||
this.CancelStatus = CancelStatus.Success;
|
||||
this.RefundStatus = RefundStatus.Fail;
|
||||
this.UpdateTime = DateTime.Now;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 设置为撤销失败
|
||||
/// </summary>
|
||||
public void SetCancelFailed()
|
||||
{
|
||||
// 撤销中,已到账
|
||||
if (this.CancelStatus == CancelStatus.Canceling && this.RefundStatus == RefundStatus.Success)
|
||||
{
|
||||
this.CancelStatus = CancelStatus.Fail;
|
||||
this.UpdateTime = DateTime.Now;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 重置状态,失败的单子重新发起退款
|
||||
/// </summary>
|
||||
public void ReSetStatus(int refundFee)
|
||||
{
|
||||
this.RefundStatus = RefundStatus.Processing;
|
||||
this.CancelStatus = CancelStatus.None;
|
||||
this.RequestTime = DateTime.Now;
|
||||
this.RefundSuccessTime = null;
|
||||
this.RefundFee = refundFee;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 设置新的refundId
|
||||
/// </summary>
|
||||
public void SetNewRefundId()
|
||||
{
|
||||
this.RefundId = Guid.NewGuid().ToString().Replace("-", "");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
using Hncore.Infrastructure.Extension;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Hncore.Pass.PaymentCenter.Domain.Refund;
|
||||
namespace Hncore.Pass.PaymentCenter.Domain
|
||||
{
|
||||
public partial class RefundRecord
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public DateTime? CreateTime { get; set; }
|
||||
public DateTime? UpdateTime { get; set; }
|
||||
public int? DeleteTag { get; set; }
|
||||
public int? TenantId { get; set; }
|
||||
public int? StoreId { get; set; }
|
||||
public int? PaymentRecordId { get; set; }
|
||||
public DateTime? RequestTime { get; set; }
|
||||
public string OrderId { get; set; }
|
||||
public string TransactionId { get; set; }
|
||||
public string RefundId { get; set; }
|
||||
public string TransactionRefundId { get; set; }
|
||||
public RefundStatus RefundStatus { get; set; }
|
||||
public int? RefundFee { get; set; }
|
||||
public int? OrderTotalFee { get; set; }
|
||||
public PaymentChannel PaymentChannel { get; set; }
|
||||
public int PaymentMethod { get; set; }
|
||||
public PaymentType PaymentType { get; set; }
|
||||
public DateTime? RefundSuccessTime { get; set; }
|
||||
public string RefundReason { get; set; }
|
||||
public DateTime? ApplyCancelTime { get; set; }
|
||||
public string CancelReason { get; set; }
|
||||
public CancelStatus CancelStatus { get; set; }
|
||||
public DateTime? QueryJobPollTime { get; set; }
|
||||
public DateTime? StatementJobPollTime { get; set; }
|
||||
public string CompanyName { get; set; }
|
||||
public int? OperatorId { get; set; }
|
||||
public string OperatorName { get; set; }
|
||||
public int? OffLineRefund { get; set; }
|
||||
public int TaskStates { get; set; }
|
||||
public string Bak { get; set; }
|
||||
public string CallbackUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 设置为退款成功
|
||||
/// </summary>
|
||||
/// <param name="transactionRefundId">交易平台退款单号</param>
|
||||
/// <param name="refundSuccessTime">退款到账时间</param>
|
||||
public void SetRefundSuccessed(string transactionRefundId, DateTime? refundSuccessTime)
|
||||
{
|
||||
this.RefundStatus = RefundStatus.Success;
|
||||
this.UpdateTime = DateTime.Now;
|
||||
|
||||
if (refundSuccessTime != null)
|
||||
{
|
||||
this.RefundSuccessTime = refundSuccessTime;
|
||||
}
|
||||
|
||||
if (transactionRefundId.Has())
|
||||
{
|
||||
this.TransactionRefundId = transactionRefundId;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 设置为退款失败
|
||||
/// </summary>
|
||||
public void SetRefundFailed()
|
||||
{
|
||||
this.RefundStatus = RefundStatus.Fail;
|
||||
this.UpdateTime = DateTime.Now;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 设置为撤销成功
|
||||
/// </summary>
|
||||
public void SetCancelSuccessed()
|
||||
{
|
||||
// 撤销中,未到账
|
||||
if (this.CancelStatus == CancelStatus.Canceling && this.RefundStatus != RefundStatus.Success)
|
||||
{
|
||||
this.CancelStatus = CancelStatus.Success;
|
||||
this.RefundStatus = RefundStatus.Fail;
|
||||
this.UpdateTime = DateTime.Now;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 设置为撤销失败
|
||||
/// </summary>
|
||||
public void SetCancelFailed()
|
||||
{
|
||||
// 撤销中,已到账
|
||||
if (this.CancelStatus == CancelStatus.Canceling && this.RefundStatus == RefundStatus.Success)
|
||||
{
|
||||
this.CancelStatus = CancelStatus.Fail;
|
||||
this.UpdateTime = DateTime.Now;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 重置状态,失败的单子重新发起退款
|
||||
/// </summary>
|
||||
public void ReSetStatus(int refundFee)
|
||||
{
|
||||
this.RefundStatus = RefundStatus.Processing;
|
||||
this.CancelStatus = CancelStatus.None;
|
||||
this.RequestTime = DateTime.Now;
|
||||
this.RefundSuccessTime = null;
|
||||
this.RefundFee = refundFee;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 设置新的refundId
|
||||
/// </summary>
|
||||
public void SetNewRefundId()
|
||||
{
|
||||
this.RefundId = Guid.NewGuid().ToString().Replace("-", "");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,40 +1,40 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Hncore.Pass.PaymentCenter.Domain.Refund
|
||||
{
|
||||
/// <summary>
|
||||
/// 退款状态
|
||||
/// </summary>
|
||||
public enum RefundStatus
|
||||
{
|
||||
/// <summary>
|
||||
/// 未知
|
||||
/// </summary>
|
||||
[Display(Name ="未知")]None = 0,
|
||||
|
||||
/// <summary>
|
||||
/// 退款中
|
||||
/// </summary>
|
||||
[Display(Name = "退款中")] Processing = 1,
|
||||
|
||||
/// <summary>
|
||||
/// 退款成功
|
||||
/// </summary>
|
||||
[Display(Name = "退款成功")] Success = 2,
|
||||
|
||||
/// <summary>
|
||||
/// 退款失败
|
||||
/// </summary>
|
||||
[Display(Name = "退款失败")] Fail = 3,
|
||||
|
||||
/// <summary>
|
||||
/// 未确定,需要商户原退款单号重新发起
|
||||
/// </summary>
|
||||
[Display(Name = "未确定")] NotSure = 4,
|
||||
|
||||
/// <summary>
|
||||
/// 转入代发,退款到银行发现用户的卡作废或者冻结了,导致原路退款银行卡失败,资金回流到商户的现金帐号,需要商户人工干预,通过线下或者平台转账的方式进行退款
|
||||
/// </summary>
|
||||
[Display(Name = "转入代发")] Change = 5
|
||||
}
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Hncore.Pass.PaymentCenter.Domain.Refund
|
||||
{
|
||||
/// <summary>
|
||||
/// 退款状态
|
||||
/// </summary>
|
||||
public enum RefundStatus
|
||||
{
|
||||
/// <summary>
|
||||
/// 未知
|
||||
/// </summary>
|
||||
[Display(Name ="未知")]None = 0,
|
||||
|
||||
/// <summary>
|
||||
/// 退款中
|
||||
/// </summary>
|
||||
[Display(Name = "退款中")] Processing = 1,
|
||||
|
||||
/// <summary>
|
||||
/// 退款成功
|
||||
/// </summary>
|
||||
[Display(Name = "退款成功")] Success = 2,
|
||||
|
||||
/// <summary>
|
||||
/// 退款失败
|
||||
/// </summary>
|
||||
[Display(Name = "退款失败")] Fail = 3,
|
||||
|
||||
/// <summary>
|
||||
/// 未确定,需要商户原退款单号重新发起
|
||||
/// </summary>
|
||||
[Display(Name = "未确定")] NotSure = 4,
|
||||
|
||||
/// <summary>
|
||||
/// 转入代发,退款到银行发现用户的卡作废或者冻结了,导致原路退款银行卡失败,资金回流到商户的现金帐号,需要商户人工干预,通过线下或者平台转账的方式进行退款
|
||||
/// </summary>
|
||||
[Display(Name = "转入代发")] Change = 5
|
||||
}
|
||||
}
|
||||
@@ -1,42 +1,42 @@
|
||||
using Hncore.Infrastructure.DDD;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Hncore.Pass.PaymentCenter.Domain
|
||||
{
|
||||
public partial class TenantEntity : EntityWithDelete<int>
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public string Logo { get; set; }
|
||||
public string ContactName { get; set; }
|
||||
public string ContactPhone { get; set; }
|
||||
public string LicenseImg { get; set; }
|
||||
public int? State { get; set; }
|
||||
public DateTime CreateTime { get; set; }
|
||||
public DateTime UpdateTime { get; set; }
|
||||
public int Deletetag { get; set; }
|
||||
public string Bak { get; set; }
|
||||
public int? Province { get; set; }
|
||||
public int? City { get; set; }
|
||||
public int? Area { get; set; }
|
||||
public string Location { get; set; }
|
||||
public string LegalPerson { get; set; }
|
||||
public string Longlatitude { get; set; }
|
||||
public string Introduction { get; set; }
|
||||
public string ScopeOperation { get; set; }
|
||||
public string Bank { get; set; }
|
||||
public string Bankcode { get; set; }
|
||||
public DateTime? Expiredtime { get; set; }
|
||||
public string BankChargeName { get; set; }
|
||||
public string BankChargeAdress { get; set; }
|
||||
public string Appid { get; set; }
|
||||
public string AppSecret { get; set; }
|
||||
public string MchId { get; set; }
|
||||
public string MchKey { get; set; }
|
||||
public string MiniAppid { get; set; }
|
||||
public string MiniAppSecret { get; set; }
|
||||
public string MiniMchId { get; set; }
|
||||
public string MiniMchKey { get; set; }
|
||||
}
|
||||
|
||||
}
|
||||
using Hncore.Infrastructure.DDD;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Hncore.Pass.PaymentCenter.Domain
|
||||
{
|
||||
public partial class TenantEntity : EntityWithDelete<int>
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public string Logo { get; set; }
|
||||
public string ContactName { get; set; }
|
||||
public string ContactPhone { get; set; }
|
||||
public string LicenseImg { get; set; }
|
||||
public int? State { get; set; }
|
||||
public DateTime CreateTime { get; set; }
|
||||
public DateTime UpdateTime { get; set; }
|
||||
public int Deletetag { get; set; }
|
||||
public string Bak { get; set; }
|
||||
public int? Province { get; set; }
|
||||
public int? City { get; set; }
|
||||
public int? Area { get; set; }
|
||||
public string Location { get; set; }
|
||||
public string LegalPerson { get; set; }
|
||||
public string Longlatitude { get; set; }
|
||||
public string Introduction { get; set; }
|
||||
public string ScopeOperation { get; set; }
|
||||
public string Bank { get; set; }
|
||||
public string Bankcode { get; set; }
|
||||
public DateTime? Expiredtime { get; set; }
|
||||
public string BankChargeName { get; set; }
|
||||
public string BankChargeAdress { get; set; }
|
||||
public string Appid { get; set; }
|
||||
public string AppSecret { get; set; }
|
||||
public string MchId { get; set; }
|
||||
public string MchKey { get; set; }
|
||||
public string MiniAppid { get; set; }
|
||||
public string MiniAppSecret { get; set; }
|
||||
public string MiniMchId { get; set; }
|
||||
public string MiniMchKey { get; set; }
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Hncore.Pass.PaymentCenter.Domain
|
||||
{
|
||||
public partial class TenantStore
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public int? TenantId { get; set; }
|
||||
public string Name { get; set; }
|
||||
public int? Type { get; set; }
|
||||
public int? Theme { get; set; }
|
||||
public int? Public { get; set; }
|
||||
public string CourseGroups { get; set; }
|
||||
public string LiveGroups { get; set; }
|
||||
public string TextGroups { get; set; }
|
||||
public string PackageGroups { get; set; }
|
||||
public string SwiperGroups { get; set; }
|
||||
public string NavGroups { get; set; }
|
||||
public string AdGroups { get; set; }
|
||||
public string ArticleGroups { get; set; }
|
||||
public string ActivityGroups { get; set; }
|
||||
public int? DeleteTag { get; set; }
|
||||
public DateTime? CreateTime { get; set; }
|
||||
public string CustomerTel { get; set; }
|
||||
public int? Appid { get; set; }
|
||||
public string AppSecret { get; set; }
|
||||
public int? IsOpen { get; set; }
|
||||
}
|
||||
}
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Hncore.Pass.PaymentCenter.Domain
|
||||
{
|
||||
public partial class TenantStore
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public int? TenantId { get; set; }
|
||||
public string Name { get; set; }
|
||||
public int? Type { get; set; }
|
||||
public int? Theme { get; set; }
|
||||
public int? Public { get; set; }
|
||||
public string CourseGroups { get; set; }
|
||||
public string LiveGroups { get; set; }
|
||||
public string TextGroups { get; set; }
|
||||
public string PackageGroups { get; set; }
|
||||
public string SwiperGroups { get; set; }
|
||||
public string NavGroups { get; set; }
|
||||
public string AdGroups { get; set; }
|
||||
public string ArticleGroups { get; set; }
|
||||
public string ActivityGroups { get; set; }
|
||||
public int? DeleteTag { get; set; }
|
||||
public DateTime? CreateTime { get; set; }
|
||||
public string CustomerTel { get; set; }
|
||||
public int? Appid { get; set; }
|
||||
public string AppSecret { get; set; }
|
||||
public int? IsOpen { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user