得到门店总分排名

This commit is contained in:
Rosy-zhudan
2019-09-23 16:58:02 +08:00
parent 06a155daf2
commit 2814b0c55a
5 changed files with 142 additions and 2 deletions

View File

@@ -456,3 +456,29 @@ func (c *StoreController) GetWeeklyStoreScore() {
return retVal, "", err
})
}
// @Title 得到门店总分排名
// @Description 得到门店总分排名
// @Param token header string true "认证token"
// @Param storeIDs formData string false "京西门店ID列表"
// @Param cityCode formData int false "城市编码"
// @Param keyWord formData string false "关键字"
// @Param beginTime formData string true "开始日期"
// @Param endTime formData string true "结束日期"
// @Param isDesc formData bool true "是否降序"
// @Param checkScoreLow formData int false "在某个分数范围-低"
// @Param checkScoreHigh formData int false "在某个分数范围-高"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /GetStoreTotalScoreList [post]
func (c *StoreController) GetStoreTotalScoreList() {
c.callGetStoreTotalScoreList(func(params *tStoreGetStoreTotalScoreListParams) (retVal interface{}, errCode string, err error) {
var storeIDList []int
if err = jxutils.Strings2Objs(params.StoreIDs, &storeIDList); err == nil {
beginTime := utils.Str2Time(params.BeginTime)
endTime := utils.Str2Time(params.EndTime)
retVal, err = misc.GetStoreTotalScoreList(storeIDList, params.CityCode, params.KeyWord, beginTime, endTime, params.IsDesc, params.CheckScoreLow, params.CheckScoreHigh)
}
return retVal, "", err
})
}