- record addFee in temp_log.

This commit is contained in:
gazebo
2018-08-02 09:55:50 +08:00
parent 0d759218c1
commit b6b41a703b
2 changed files with 9 additions and 0 deletions

View File

@@ -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
}

View File

@@ -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)"`
}