From 1f795c83c85c7ae6d595b442211c09eed45ae849 Mon Sep 17 00:00:00 2001 From: gazebo Date: Wed, 9 Jan 2019 09:07:09 +0800 Subject: [PATCH] - index on GoodsOrder.VendorOrderID2 --- business/model/order.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/business/model/order.go b/business/model/order.go index 88a85d1ca..5fc6f85cc 100644 --- a/business/model/order.go +++ b/business/model/order.go @@ -10,7 +10,7 @@ type ModelTimeInfo struct { type GoodsOrder struct { ID int64 `orm:"column(id)" json:"-"` VendorOrderID string `orm:"column(vendor_order_id);size(48)" json:"vendorOrderID"` - VendorOrderID2 string `orm:"column(vendor_order_id2);size(48)" json:"vendorOrderID2"` + VendorOrderID2 string `orm:"column(vendor_order_id2);size(48);index" json:"vendorOrderID2"` VendorID int `orm:"column(vendor_id)" json:"vendorID"` VendorStoreID string `orm:"column(vendor_store_id);size(48)" json:"vendorStoreID"` StoreID int `orm:"column(store_id)" json:"storeID"` // 外部系统里记录的 jxstoreid