This commit is contained in:
苏尹岚
2021-03-16 09:25:24 +08:00
parent 8a17e0584b
commit 4f6001e413
7 changed files with 89 additions and 21 deletions

View File

@@ -119,6 +119,7 @@ func (c *ReportController) GetManageState() {
// @Description 查询门店经营数据
// @Param token header string true "认证token"
// @Param storeIDs query string false "门店ID列表[1,2,3]"
// @Param brandIDs query string false "品牌ID列表[1,2,3]"
// @Param vendorID query int true "平台ID"
// @Param sortType query int false "排序类型,1 覆盖范围2市场规模3营业时长4商品数5虚高商品数6活动丰富度7无效订单数8拒绝订单数9门店评分正升序负倒序"
// @Param offset query int false "门店列表起始序号以0开始缺省为0"
@@ -128,9 +129,9 @@ func (c *ReportController) GetManageState() {
// @router /GetStoreManageState [get]
func (c *ReportController) GetStoreManageState() {
c.callGetStoreManageState(func(params *tReportGetStoreManageStateParams) (retVal interface{}, errCode string, err error) {
var storeIDs []int
if err = jxutils.Strings2Objs(params.StoreIDs, &storeIDs); err == nil {
retVal, err = report.GetStoreManageState(params.Ctx, storeIDs, params.VendorID, params.SortType, params.Offset, params.PageSize)
var storeIDs, brandIDs []int
if err = jxutils.Strings2Objs(params.StoreIDs, &storeIDs, params.BrandIDs, brandIDs); err == nil {
retVal, err = report.GetStoreManageState(params.Ctx, storeIDs, brandIDs, params.VendorID, params.SortType, params.Offset, params.PageSize)
}
return retVal, "", err
})