添加Store.OperatorPhone3
This commit is contained in:
@@ -169,13 +169,13 @@ type tUpdateStoresSkus struct {
|
||||
}
|
||||
|
||||
type tStoreSkusSecKill struct {
|
||||
StoreID int `orm:"column(store_id)"`
|
||||
VendorID int `orm:"column(vendor_id)"`
|
||||
SecKillCount int
|
||||
SecKillCount2 int
|
||||
OperatorPhone string
|
||||
MarketManPhone string
|
||||
NoticeMsg string
|
||||
StoreID int `orm:"column(store_id)"`
|
||||
VendorID int `orm:"column(vendor_id)"`
|
||||
SecKillCount int
|
||||
SecKillCount2 int
|
||||
OperatorPhoneList []string
|
||||
MarketManPhone string
|
||||
NoticeMsg string
|
||||
}
|
||||
|
||||
type JdStoreSkus struct {
|
||||
@@ -3460,19 +3460,13 @@ func SendSeckillSkusCountMsg(ctx *jxcontext.Context, vendorIDs []int, isAsync, i
|
||||
if type1 < type1Count || type2 < type2Count {
|
||||
storeDetail, _ := dao.GetStoreDetail(db, store.StoreID, store.VendorID)
|
||||
var (
|
||||
operatorName string
|
||||
operatorPhone string
|
||||
type1Str = "爆品数量低于8个!"
|
||||
type2Str = "爆品价格小于1元的爆品数量低于5个!"
|
||||
typeResult = ""
|
||||
type1Str = "爆品数量低于8个!"
|
||||
type2Str = "爆品价格小于1元的爆品数量低于5个!"
|
||||
typeResult = ""
|
||||
)
|
||||
if storeDetail.OperatorPhone != "" {
|
||||
operatorName = storeDetail.OperatorName
|
||||
operatorPhone = storeDetail.OperatorPhone
|
||||
} else if storeDetail.OperatorPhone2 != "" {
|
||||
operatorName = storeDetail.OperatorName2
|
||||
operatorPhone = storeDetail.OperatorPhone2
|
||||
}
|
||||
operatorNameList := jxutils.BatchString2Slice(storeDetail.OperatorName, storeDetail.OperatorName2, storeDetail.OperatorName3)
|
||||
operatorPhoneList := jxutils.BatchString2Slice(storeDetail.OperatorPhone, storeDetail.OperatorPhone2, storeDetail.OperatorPhone3)
|
||||
|
||||
if type1 < type1Count {
|
||||
typeResult += type1Str
|
||||
}
|
||||
@@ -3480,8 +3474,8 @@ func SendSeckillSkusCountMsg(ctx *jxcontext.Context, vendorIDs []int, isAsync, i
|
||||
typeResult += type2Str
|
||||
}
|
||||
var result = &tStoreSkusSecKill{}
|
||||
noticeMsg := fmt.Sprintf("运营负责人:[%v],市场负责人:[%v],门店ID:[%v],平台门店ID[%v],门店名:[%v],平台:[%v],警告类型:[%v]\n", operatorName, storeDetail.MarketManName, store.StoreID, storeDetail.VendorStoreID, store.StoreName, model.VendorChineseNames[store.VendorID], typeResult)
|
||||
result.OperatorPhone = operatorPhone
|
||||
noticeMsg := fmt.Sprintf("运营负责人:[%v],市场负责人:[%v],门店ID:[%v],平台门店ID[%v],门店名:[%v],平台:[%v],警告类型:[%v]\n", strings.Join(operatorNameList, ","), storeDetail.MarketManName, store.StoreID, storeDetail.VendorStoreID, store.StoreName, model.VendorChineseNames[store.VendorID], typeResult)
|
||||
result.OperatorPhoneList = operatorPhoneList
|
||||
result.MarketManPhone = storeDetail.MarketManPhone
|
||||
result.NoticeMsg = noticeMsg
|
||||
retVal = []*tStoreSkusSecKill{result}
|
||||
@@ -3498,10 +3492,12 @@ func SendSeckillSkusCountMsg(ctx *jxcontext.Context, vendorIDs []int, isAsync, i
|
||||
)
|
||||
for _, v := range ddMsgresult {
|
||||
ddm := v.(*tStoreSkusSecKill)
|
||||
if operaterMap[ddm.OperatorPhone] != "" {
|
||||
operaterMap[ddm.OperatorPhone] += ddm.NoticeMsg
|
||||
} else {
|
||||
operaterMap[ddm.OperatorPhone] = ddm.NoticeMsg
|
||||
for _, phone := range ddm.OperatorPhoneList {
|
||||
if operaterMap[phone] != "" {
|
||||
operaterMap[phone] += ddm.NoticeMsg
|
||||
} else {
|
||||
operaterMap[phone] = ddm.NoticeMsg
|
||||
}
|
||||
}
|
||||
if marketMap[ddm.MarketManPhone] != "" {
|
||||
marketMap[ddm.MarketManPhone] += ddm.NoticeMsg
|
||||
|
||||
Reference in New Issue
Block a user