- alarm for shop price.

- add index for ref_vendor_order_id.
This commit is contained in:
gazebo
2018-09-20 23:10:19 +08:00
parent 0a851a4385
commit 4eb46bcbbe
2 changed files with 17 additions and 1 deletions

View File

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

View File

@@ -143,6 +143,7 @@ type OrderStatus struct {
func (v *OrderStatus) TableIndex() [][]string {
return [][]string{
[]string{"VendorOrderID", "Status", "VendorStatus"},
[]string{"RefVendorOrderID", "Status", "VendorStatus"},
}
}