Merge remote-tracking branch 'origin/master' into jxstore

This commit is contained in:
gazebo
2018-09-27 10:08:10 +08:00
3 changed files with 18 additions and 2 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

@@ -20,7 +20,7 @@ import (
const (
time2Delivered = 1 * time.Hour // 正常从下单到送达的时间。
time2Schedule3rdCarrier = 60 * time.Minute // 京东要求5分钟后才能转自送保险起见设置为5分半钟
time2Schedule3rdCarrier = 30 * time.Minute // 京东要求5分钟后才能转自送保险起见设置为5分半钟
// time2Schedule3rdCarrierGap4OrderStatus = 3 * time.Minute // 京东要求是运单状态为待抢单且超时5分钟但为了防止没有运单事件所以就拣货完成事件开始算添加3分钟
time2AutoPickupMin = 15 * time.Minute
time2AutoPickupGap = 5 * 60 //随机5分钟

View File

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