timeSliceQueryPush
This commit is contained in:
parent
f965bf8b7f
commit
6b2622b1a3
|
|
@ -4,7 +4,6 @@ import (
|
||||||
"context"
|
"context"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/go-kratos/kratos/v2/log"
|
|
||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
errPb "voucher/api/err"
|
errPb "voucher/api/err"
|
||||||
"voucher/internal/biz/bo"
|
"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 {
|
func (v *VoucherBiz) notifyUsed(ctx context.Context, order *bo.OrderBo, req *bo.WechatVoucherNotifyBo) error {
|
||||||
|
|
||||||
if order.Status.IsUse() {
|
if order.Status.IsUse() {
|
||||||
log.Warnf("券状态已是已使用,忽略不处理,orderNo:%s", order.OrderNo)
|
// 券状态已是已使用,忽略不处理
|
||||||
return nil
|
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 {
|
func (v *VoucherBiz) available(ctx context.Context, order *bo.OrderBo) error {
|
||||||
|
|
||||||
if order.Status.IsSuccess() {
|
if order.Status.IsSuccess() {
|
||||||
log.Warnf("券状态已是可使用,忽略不处理,orderNo:%s", order.OrderNo)
|
// 券状态已是可使用,忽略不处理
|
||||||
return nil
|
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 {
|
func (v *VoucherBiz) expired(ctx context.Context, order *bo.OrderBo) error {
|
||||||
|
|
||||||
if order.Status.IsExpired() {
|
if order.Status.IsExpired() {
|
||||||
log.Warnf("券状态已是已过期,忽略不处理,orderNo:%s", order.OrderNo)
|
// 券状态已是已过期,忽略不处理
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue