- record addFee in temp_log.
This commit is contained in:
@@ -218,6 +218,7 @@ func (c *WaybillController) CreateWaybill(order *model.GoodsOrder) (err error) {
|
||||
tmpLog := &legacymodel.TempLog{
|
||||
VendorOrderID: order.VendorOrderID,
|
||||
RefVendorOrderID: order.VendorOrderID,
|
||||
IntValue1: addFee,
|
||||
Msg: fmt.Sprintf("CreateWaybill orderID:%s addFee exceeded too much, it's %d", order.VendorOrderID, addFee),
|
||||
}
|
||||
db.Insert(tmpLog)
|
||||
@@ -262,6 +263,13 @@ func (c *WaybillController) getMTPSShopID(order *model.GoodsOrder, db orm.Ormer)
|
||||
if err == nil {
|
||||
err = ErrCanNotFindMTPSStore
|
||||
}
|
||||
|
||||
tmpLog := &legacymodel.TempLog{
|
||||
VendorOrderID: order.VendorOrderID,
|
||||
RefVendorOrderID: order.VendorOrderID,
|
||||
Msg: fmt.Sprintf("getMTPSShopID can not find mtps store info for orderID:%s, store:%d, num:%d, error:%v", order.VendorOrderID, JxStoreID, num, err),
|
||||
}
|
||||
db.Insert(tmpLog)
|
||||
}
|
||||
return retVal, err
|
||||
}
|
||||
|
||||
@@ -4,5 +4,6 @@ type TempLog struct {
|
||||
ID int64 `orm:"column(id)"`
|
||||
VendorOrderID string `orm:"column(vendor_order_id);size(48);index"`
|
||||
RefVendorOrderID string `orm:"column(ref_vendor_order_id);size(48);index"`
|
||||
IntValue1 int64
|
||||
Msg string `orm:"type(text)"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user