diff --git a/business/jxcallback/orderman/order.go b/business/jxcallback/orderman/order.go index e06b96d1b..2b3c27d65 100644 --- a/business/jxcallback/orderman/order.go +++ b/business/jxcallback/orderman/order.go @@ -13,6 +13,21 @@ import ( "github.com/astaxie/beego/orm" ) +var ( + needAlarmStores map[int]int +) + +func init() { + needAlarmStores = map[int]int{ + 100997: 1, + 100992: 1, + 100973: 1, + 100960: 1, + 100961: 1, + 100999: 1, + } +} + func (c *OrderManager) LoadPendingOrders() []*model.GoodsOrder { db := orm.NewOrm() var orders []*model.GoodsOrder @@ -196,7 +211,7 @@ func (c *OrderManager) updateOrderSkuOtherInfo(order *model.GoodsOrder, db orm.O } } opNum := "2" - if order.VendorStoreID == "163183405" || jxStoreID == 100961 { + if needAlarmStores[jxStoreID] != 0 { opNum = "" } diff --git a/business/model/order.go b/business/model/order.go index 43334b45a..2dd055cc6 100644 --- a/business/model/order.go +++ b/business/model/order.go @@ -143,6 +143,7 @@ type OrderStatus struct { func (v *OrderStatus) TableIndex() [][]string { return [][]string{ []string{"VendorOrderID", "Status", "VendorStatus"}, + []string{"RefVendorOrderID", "Status", "VendorStatus"}, } }