多笔立减金
This commit is contained in:
parent
75b5b9af28
commit
49e7092839
|
|
@ -13,6 +13,7 @@ type MultiNotifyDataBo struct {
|
|||
StockID string
|
||||
ConsumeAmount int32
|
||||
ConsumeTime *time.Time
|
||||
TransactionID string
|
||||
EventType string
|
||||
OriginalData string
|
||||
NoticeNum int32
|
||||
|
|
|
|||
|
|
@ -169,6 +169,7 @@ func (biz *MultiBiz) mndCreate(ctx context.Context, source string, req *bo.Wecha
|
|||
StockID: req.PlainText.StockID,
|
||||
ConsumeAmount: int32(req.PlainText.ConsumeInformation.ConsumeAmount),
|
||||
ConsumeTime: &req.PlainText.ConsumeInformation.ConsumeTime,
|
||||
TransactionID: req.PlainText.ConsumeInformation.TransactionID,
|
||||
EventType: req.EventType,
|
||||
OriginalData: originalData,
|
||||
})
|
||||
|
|
|
|||
|
|
@ -13,19 +13,20 @@ const TableNameMultiNotifyDatum = "multi_notify_data"
|
|||
// MultiNotifyDatum mapped from table <multi_notify_data>
|
||||
type MultiNotifyDatum struct {
|
||||
ID int64 `gorm:"column:id;primaryKey" json:"id"`
|
||||
Source string `gorm:"column:source;not null;comment:来源" json:"source"` // 来源
|
||||
NotifyID string `gorm:"column:notify_id;not null;comment:回调通知id" json:"notify_id"` // 回调通知id
|
||||
OrderNo string `gorm:"column:order_no;not null;comment:订单号" json:"order_no"` // 订单号
|
||||
OutBizNo string `gorm:"column:out_biz_no;not null;comment:外部业务号" json:"out_biz_no"` // 外部业务号
|
||||
CouponID string `gorm:"column:coupon_id;not null;comment:券id" json:"coupon_id"` // 券id
|
||||
StockID string `gorm:"column:stock_id;not null;comment:微信批次号" json:"stock_id"` // 微信批次号
|
||||
ConsumeAmount int32 `gorm:"column:consume_amount;not null;comment:核销金额" json:"consume_amount"` // 核销金额
|
||||
ConsumeTime *time.Time `gorm:"column:consume_time;not null;comment:核销时间" json:"consume_time"` // 核销时间
|
||||
EventType string `gorm:"column:event_type;not null;comment:通知的类型" json:"event_type"` // 通知的类型
|
||||
OriginalData string `gorm:"column:original_data;not null;comment:微信回调通知原始数据" json:"original_data"` // 微信回调通知原始数据
|
||||
NoticeNum int32 `gorm:"column:notice_num;not null;comment:通知下游次数" json:"notice_num"` // 通知下游次数
|
||||
CreateTime *time.Time `gorm:"column:create_time;not null;comment:创建时间" json:"create_time"` // 创建时间
|
||||
UpdateTime *time.Time `gorm:"column:update_time;comment:修改时间" json:"update_time"` // 修改时间
|
||||
Source string `gorm:"column:source;not null;comment:来源" json:"source"` // 来源
|
||||
NotifyID string `gorm:"column:notify_id;not null;comment:回调通知id" json:"notify_id"` // 回调通知id
|
||||
OrderNo string `gorm:"column:order_no;not null;comment:订单号" json:"order_no"` // 订单号
|
||||
OutBizNo string `gorm:"column:out_biz_no;not null;comment:外部业务号" json:"out_biz_no"` // 外部业务号
|
||||
CouponID string `gorm:"column:coupon_id;not null;comment:券id" json:"coupon_id"` // 券id
|
||||
StockID string `gorm:"column:stock_id;not null;comment:微信批次号" json:"stock_id"` // 微信批次号
|
||||
ConsumeAmount int32 `gorm:"column:consume_amount;not null;comment:核销金额" json:"consume_amount"` // 核销金额
|
||||
ConsumeTime *time.Time `gorm:"column:consume_time;not null;comment:核销时间" json:"consume_time"` // 核销时间
|
||||
TransactionID string `gorm:"column:transaction_id;not null;comment:微信支付系统生成的订单号" json:"transaction_id"` // 微信支付系统生成的订单号
|
||||
EventType string `gorm:"column:event_type;not null;comment:通知的类型" json:"event_type"` // 通知的类型
|
||||
OriginalData string `gorm:"column:original_data;not null;comment:微信回调通知原始数据" json:"original_data"` // 微信回调通知原始数据
|
||||
NoticeNum int32 `gorm:"column:notice_num;not null;comment:通知下游次数" json:"notice_num"` // 通知下游次数
|
||||
CreateTime *time.Time `gorm:"column:create_time;not null;comment:创建时间" json:"create_time"` // 创建时间
|
||||
UpdateTime *time.Time `gorm:"column:update_time;comment:修改时间" json:"update_time"` // 修改时间
|
||||
}
|
||||
|
||||
// TableName MultiNotifyDatum's table name
|
||||
|
|
|
|||
|
|
@ -57,6 +57,7 @@ func (p *MultiNotifyDataRepoImpl) Create(ctx context.Context, req *bo.MultiNotif
|
|||
StockID: req.StockID,
|
||||
ConsumeAmount: req.ConsumeAmount,
|
||||
ConsumeTime: req.ConsumeTime,
|
||||
TransactionID: req.TransactionID,
|
||||
EventType: req.EventType,
|
||||
OriginalData: req.OriginalData,
|
||||
NoticeNum: 0,
|
||||
|
|
|
|||
Loading…
Reference in New Issue