- jxorder, only waybill status related left, other info saved.

This commit is contained in:
gazebo
2018-07-16 17:14:17 +08:00
parent ea3aec81a4
commit b75739d6c2
8 changed files with 118 additions and 21 deletions

View File

@@ -148,11 +148,12 @@ func (c *WaybillController) getDeliveryID(order *model.GoodsOrder, db orm.Ormer)
func (c *WaybillController) getMTPSShopID(order *model.GoodsOrder, db orm.Ormer) (retVal string, err error) {
sql := "SELECT zs_store_id FROM jx_to_zs_store_map WHERE jx_store_id = ?"
var lists []orm.ParamsList
num, err := db.Raw(sql, utils.Str2Int64(order.VendorStoreID)).ValuesList(&lists)
JxStoreID := controller.GetJxStoreIDFromOrder(order)
num, err := db.Raw(sql, JxStoreID).ValuesList(&lists)
if err != nil && num == 1 {
retVal = lists[0][0].(string)
} else {
globals.SugarLogger.Errorf("can not find mtps store info for store:%d", order.JxStoreID)
globals.SugarLogger.Errorf("can not find mtps store info for store:%d", JxStoreID)
}
return retVal, err
}