多笔立减金

This commit is contained in:
ziming 2025-12-19 15:01:31 +08:00
parent 05ba50661c
commit 6006445958
2 changed files with 6 additions and 3 deletions

View File

@ -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"];
// - // -

View File

@ -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 {