a
This commit is contained in:
@@ -838,6 +838,8 @@ func OrderNotifyReport(ctx *jxcontext.Context, storeIDs, brandIDs []int, vendorI
|
|||||||
sqlParams = append(sqlParams, toTime)
|
sqlParams = append(sqlParams, toTime)
|
||||||
}
|
}
|
||||||
sql += `
|
sql += `
|
||||||
|
GROUP BY 1, 2
|
||||||
|
ORDER BY count DESC
|
||||||
LIMIT ? OFFSET ?
|
LIMIT ? OFFSET ?
|
||||||
`
|
`
|
||||||
pageSize = jxutils.FormalizePageSize(pageSize)
|
pageSize = jxutils.FormalizePageSize(pageSize)
|
||||||
|
|||||||
@@ -125,7 +125,7 @@ func NotifyPickOrder(order *model.GoodsOrder) (err error) {
|
|||||||
if store.Tel2 != "" {
|
if store.Tel2 != "" {
|
||||||
mobileList = append(mobileList, store.Tel2)
|
mobileList = append(mobileList, store.Tel2)
|
||||||
}
|
}
|
||||||
if store.SMSNotify != 0 && store.IsOrder == model.NO && store.ID != model.MatterStoreID && store.ID != model.JdShopMainStoreID && len(mobileList) > 0 {
|
if order.NotifyType == 0 && store.SMSNotify != 0 && store.IsOrder == model.NO && store.ID != model.MatterStoreID && store.ID != model.JdShopMainStoreID && len(mobileList) > 0 {
|
||||||
switch store.SMSNotify {
|
switch store.SMSNotify {
|
||||||
case model.NotifyTypeSMS:
|
case model.NotifyTypeSMS:
|
||||||
err = SendSMSMsg(mobileList, globals.SMSSignName, globals.SMSPickOrderTemplate, nil, order)
|
err = SendSMSMsg(mobileList, globals.SMSSignName, globals.SMSPickOrderTemplate, nil, order)
|
||||||
|
|||||||
Reference in New Issue
Block a user