多笔立减金
This commit is contained in:
parent
05ba50661c
commit
6006445958
|
|
@ -229,6 +229,8 @@ message CmbMultiNotifyRequest {
|
||||||
string acquiredDate = 4 [json_name = "acquiredDate"];
|
string acquiredDate = 4 [json_name = "acquiredDate"];
|
||||||
// 券状态0:可使用,1:已使用
|
// 券状态0:可使用,1:已使用
|
||||||
string status = 5 [json_name = "status"];
|
string status = 5 [json_name = "status"];
|
||||||
|
// String|M 整张券总状态0:可使用,1:已使用
|
||||||
|
string couponStatus = 13 [json_name = "couponStatus"];
|
||||||
// 券核销时间 格式:yyyy-MM-dd HH:mm:ss.sss
|
// 券核销时间 格式:yyyy-MM-dd HH:mm:ss.sss
|
||||||
string transDate = 6 [json_name = "transDate"];
|
string transDate = 6 [json_name = "transDate"];
|
||||||
// 券核销金额,单位-分
|
// 券核销金额,单位-分
|
||||||
|
|
|
||||||
|
|
@ -282,6 +282,7 @@ func (biz *MultiBiz) bizContent(nl *bo.MultiNotifyLogBo, order *bo.OrderBo) (str
|
||||||
CouponId: nl.CouponID, // 微信券券号
|
CouponId: nl.CouponID, // 微信券券号
|
||||||
AcquiredDate: order.ReceiveSuccessTime.Format("2006-01-02 15:04:05.000"), // 券领取时间
|
AcquiredDate: order.ReceiveSuccessTime.Format("2006-01-02 15:04:05.000"), // 券领取时间
|
||||||
Status: "1", // 券状态 0:可使用,1:已使用
|
Status: "1", // 券状态 0:可使用,1:已使用
|
||||||
|
CouponStatus: "0", // 0:可使用,1:已使用
|
||||||
TransDate: nl.ConsumeTime.Format("2006-01-02 15:04:05.000"), // 核销时间,验券时间,格式yyyy-mm-dd hh:mm:ss.sss
|
TransDate: nl.ConsumeTime.Format("2006-01-02 15:04:05.000"), // 核销时间,验券时间,格式yyyy-mm-dd hh:mm:ss.sss
|
||||||
TransAmount: fmt.Sprintf("%d", nl.ConsumeAmount),
|
TransAmount: fmt.Sprintf("%d", nl.ConsumeAmount),
|
||||||
OrderId: nl.TransactionID, // 券核销支付单号
|
OrderId: nl.TransactionID, // 券核销支付单号
|
||||||
|
|
@ -291,9 +292,9 @@ func (biz *MultiBiz) bizContent(nl *bo.MultiNotifyLogBo, order *bo.OrderBo) (str
|
||||||
Ext: "",
|
Ext: "",
|
||||||
}
|
}
|
||||||
|
|
||||||
//if nl.Status.IsUsed() {
|
if nl.Status.IsUsed() {
|
||||||
// req.Status = "1"
|
req.CouponStatus = "1"
|
||||||
//}
|
}
|
||||||
|
|
||||||
bizJsonBytes, err := json.Marshal(req)
|
bizJsonBytes, err := json.Marshal(req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue