diff --git a/business/controller/mtps/waybill.go b/business/controller/mtps/waybill.go index 33cd8bbb2..1b8591396 100644 --- a/business/controller/mtps/waybill.go +++ b/business/controller/mtps/waybill.go @@ -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 } diff --git a/business/legacymodel/tmplog.go b/business/legacymodel/tmplog.go index 6bd0efff4..673ac8161 100644 --- a/business/legacymodel/tmplog.go +++ b/business/legacymodel/tmplog.go @@ -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)"` }