parent
1ae0da11e9
commit
d84f870745
|
|
@ -2,7 +2,6 @@ package data
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"PaymentCenter/app/models/orderexceptionmodel"
|
"PaymentCenter/app/models/orderexceptionmodel"
|
||||||
"PaymentCenter/app/utils/snowflake"
|
|
||||||
|
|
||||||
"xorm.io/xorm"
|
"xorm.io/xorm"
|
||||||
)
|
)
|
||||||
|
|
@ -18,7 +17,7 @@ func NewOrderExceptionRepo(repo xorm.Interface) *OrderExceptionRepo {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *OrderExceptionRepo) InsertOne(orderException *orderexceptionmodel.OrderException) (int64, error) {
|
func (m *OrderExceptionRepo) InsertOne(orderException *orderexceptionmodel.OrderException) (int64, error) {
|
||||||
orderException.Id = snowflake.GetID()
|
|
||||||
return m.repo.InsertOne(orderException)
|
return m.repo.InsertOne(orderException)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -232,6 +232,7 @@ func (o *OrderNotify) checkOrder() {
|
||||||
CreateTime: time.Now(),
|
CreateTime: time.Now(),
|
||||||
Status: o.order.Status,
|
Status: o.order.Status,
|
||||||
})
|
})
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
utils.Log(nil, "异常数据记录失败:%s", err.Error())
|
utils.Log(nil, "异常数据记录失败:%s", err.Error())
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue