orderNotice定时任务
This commit is contained in:
parent
8a64a2b32e
commit
33a9f1516b
|
|
@ -194,8 +194,9 @@ func (p *OrderRepoImpl) Available(ctx context.Context, id uint64) error {
|
||||||
Status: vo.OrderStatusUse.GetValue(),
|
Status: vo.OrderStatusUse.GetValue(),
|
||||||
}).
|
}).
|
||||||
Updates(model.Order{
|
Updates(model.Order{
|
||||||
Status: vo.OrderStatusSuccess.GetValue(),
|
Status: vo.OrderStatusSuccess.GetValue(),
|
||||||
UpdateTime: &now,
|
ReceiveSuccessTime: &now, // 领取成功时间重置
|
||||||
|
UpdateTime: &now,
|
||||||
})
|
})
|
||||||
|
|
||||||
if res.Error != nil {
|
if res.Error != nil {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue