timeSliceQueryPush

This commit is contained in:
ziming 2025-06-12 15:08:08 +08:00
parent f965bf8b7f
commit 6b2622b1a3
1 changed files with 3 additions and 4 deletions

View File

@ -4,7 +4,6 @@ import (
"context"
"errors"
"fmt"
"github.com/go-kratos/kratos/v2/log"
"gorm.io/gorm"
errPb "voucher/api/err"
"voucher/internal/biz/bo"
@ -76,7 +75,7 @@ func (this *VoucherBiz) getOrder(ctx context.Context, req *bo.WechatVoucherNotif
func (v *VoucherBiz) notifyUsed(ctx context.Context, order *bo.OrderBo, req *bo.WechatVoucherNotifyBo) error {
if order.Status.IsUse() {
log.Warnf("券状态已是已使用,忽略不处理,orderNo:%s", order.OrderNo)
// 券状态已是已使用,忽略不处理
return nil
}
@ -90,7 +89,7 @@ func (v *VoucherBiz) notifyUsed(ctx context.Context, order *bo.OrderBo, req *bo.
func (v *VoucherBiz) available(ctx context.Context, order *bo.OrderBo) error {
if order.Status.IsSuccess() {
log.Warnf("券状态已是可使用,忽略不处理,orderNo:%s", order.OrderNo)
// 券状态已是可使用,忽略不处理
return nil
}
@ -104,7 +103,7 @@ func (v *VoucherBiz) available(ctx context.Context, order *bo.OrderBo) error {
func (v *VoucherBiz) expired(ctx context.Context, order *bo.OrderBo) error {
if order.Status.IsExpired() {
log.Warnf("券状态已是已过期,忽略不处理,orderNo:%s", order.OrderNo)
// 券状态已是已过期,忽略不处理
return nil
}