package com.gic.haoban.manage.web.qo.data;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;

import java.io.Serializable;

/**
 * @Author guojx
 * @Date 2024/4/30 10:29
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class StoreMemberDataQO extends CommonQO implements Serializable {

    private StoreMemberApiQO apiParam;

    /**
     * 1:data_mbr_scale_stat_clerk_overview
     * 2:data_mbr_scale_stat_week_clerk_overview
     * 3:data_mbr_scale_stat_month_clerk_overview
     * 4:data_mbr_scale_stat_year_clerk_overview
     * 5:data_mbr_scale_stat_custm_clerk_overview
     */
    private Integer apiNameType;


    public String getApolloKeyByType() {
        if (apiNameType == null) {
            apiNameType = 1;
        }
        switch (apiNameType) {
            case 2:
                return "data_mbr_scale_stat_week_clerk_overview";
            case 3:
                return "data_mbr_scale_stat_month_clerk_overview";
            case 4:
                return "data_mbr_scale_stat_year_clerk_overview";
            case 5 :
                return "data_mbr_scale_stat_custm_clerk_overview";
            default:
                return "data_mbr_scale_stat_clerk_overview";
        }
    }
}
