多笔立减金

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"];
// 0使1使
string status = 5 [json_name = "status"];
// String|M 0使1使
string couponStatus = 13 [json_name = "couponStatus"];
// yyyy-MM-dd HH:mm:ss.sss
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, // 微信券券号
AcquiredDate: order.ReceiveSuccessTime.Format("2006-01-02 15:04:05.000"), // 券领取时间
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
TransAmount: fmt.Sprintf("%d", nl.ConsumeAmount),
OrderId: nl.TransactionID, // 券核销支付单号
@ -291,9 +292,9 @@ func (biz *MultiBiz) bizContent(nl *bo.MultiNotifyLogBo, order *bo.OrderBo) (str
Ext: "",
}
//if nl.Status.IsUsed() {
// req.Status = "1"
//}
if nl.Status.IsUsed() {
req.CouponStatus = "1"
}
bizJsonBytes, err := json.Marshal(req)
if err != nil {