aa
This commit is contained in:
@@ -8,6 +8,8 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"git.rosy.net.cn/baseapi/platformapi/mtwmapi"
|
||||
|
||||
"github.com/shopspring/decimal"
|
||||
|
||||
"git.rosy.net.cn/jx-callback/business/jxutils"
|
||||
@@ -403,7 +405,7 @@ type GetStoreManageStateResult struct {
|
||||
ActAmple int `json:"actAmple"` //活动丰富的
|
||||
NullOrderCount int `json:"nullOrderCount"` //无效订单数
|
||||
RefuseOrderCount int `json:"refuseOrderCount"` //拒绝订单数
|
||||
StoreScore int `json:"storeScore"` //门店评分
|
||||
StoreScore float64 `json:"storeScore"` //门店评分
|
||||
RepurchaseRate int `json:"repurchaseRate"` //复购率(转化率)
|
||||
}
|
||||
|
||||
@@ -489,7 +491,11 @@ func GetStoreManageState(ctx *jxcontext.Context, storeIDs []int, vendorID int, f
|
||||
}
|
||||
}
|
||||
result.NullOrderCount, result.RefuseOrderCount = nullOrderCount, refuseOrderCount
|
||||
//转化率
|
||||
//评分(美团)
|
||||
mtapi := partner.CurAPIManager.GetAPI(model.VendorIDMTWM, storeDetail.VendorOrgCode).(*mtwmapi.API)
|
||||
if scoreResult, err := mtapi.CommentScore(storeDetail.VendorStoreID); err == nil {
|
||||
result.StoreScore = scoreResult.AvgPoiScore
|
||||
}
|
||||
getStoreManageStateResult = append(getStoreManageStateResult, result)
|
||||
}
|
||||
return getStoreManageStateResult, err
|
||||
|
||||
Reference in New Issue
Block a user