@staticmethod
    def process_filter_id2str(frame_param: dict):
        # 把过滤条件中 filter中的id转换成为字符串
        # {"filter":[{"acid":"","acidTableName":"av_import_","contrast":false,"contrastDatetime":{"acid":"","acidTableName":"av_import_","contrast":false,"contrastDatetimeFilter":false,"date_type":0,"defaultTimeFilter":false,"defaultTimeFilterType":0,"is_half":false,"jsonUiType":false,"latest_day":7,"rsField":false,"timeField":false,"userGroupABTDimField":false,"userGroupABTRatio":"u_group_abt_ratio","userGroupDatasetName":"t_user_group","userGroupDimField":false,"userGroupField":false,"userGroupFilterValues":[],"userGroupOrUserGroupDimField":false,"userGroupTag":"u_group_tag","userGroupTotal":"u_group_total","userGroupV1Field":false,"userGroupV2Field":false,"values":[]},"contrastDatetimeFilter":true,"contrastDatetimeV2":{"acid":"","acidTableName":"av_import_","contrast":false,"contrastDatetimeFilter":false,"defaultTimeFilter":false,"defaultTimeFilterType":0,"jsonUiType":false,"rsField":false,"timeField":false,"userGroupABTDimField":false,"userGroupABTRatio":"u_group_abt_ratio","userGroupDatasetName":"t_user_group","userGroupDimField":false,"userGroupField":false,"userGroupFilterValues":[],"userGroupOrUserGroupDimField":false,"userGroupTag":"u_group_tag","userGroupTotal":"u_group_total","userGroupV1Field":false,"userGroupV2Field":false,"values":[]},"contrastType":"yearContrast","contrastValue":"去年","date_type":2,"defaultTimeFilter":true,"defaultTimeFilterType":0,"id":0,"is_half":false,"jsonUiType":false,"label":"筛选日期","labels":"2024-11-07 14:25:00;2024-11-13 14:25:00","latest_day":7,"operator":"between","rsField":false,"stringId":"0","timeField":true,"title":"筛选日期 介于 2024-11-07 14:25:00 ~ 2024-11-13 14:25:00","uitype":"date","userGroupABTDimField":false,"userGroupABTRatio":"u_group_abt_ratio","userGroupDatasetName":"t_user_group","userGroupDimField":false,"userGroupField":false,"userGroupFilterValues":[],"userGroupOrUserGroupDimField":false,"userGroupTag":"u_group_tag","userGroupTotal":"u_group_total","userGroupV1Field":false,"userGroupV2Field":false,"values":["2024-11-07 14:25:00","2024-11-13 14:25:00"]},{"acid":"","acidTableName":"av_import_","conditiontype":"selection_muti","contrast":false,"contrastDatetimeFilter":false,"defaultTimeFilter":false,"defaultTimeFilterType":0,"enabled":true,"id":1274,"jsonUiType":false,"label":"品牌名称","labels":"FINITY","name":"品牌名称","operator":"in","rsField":false,"stringId":"1274","subjectId":"152","timeField":false,"title":"品牌名称 属于 FINITY","typede":"dimension","uitype":"selection_muti","userGroupABTDimField":false,"userGroupABTRatio":"u_group_abt_ratio","userGroupDatasetName":"t_user_group","userGroupDimField":false,"userGroupField":false,"userGroupFilterValues":[],"userGroupOrUserGroupDimField":false,"userGroupTag":"u_group_tag","userGroupTotal":"u_group_total","userGroupV1Field":false,"userGroupV2Field":false,"values":["FINITY"]}],"magnanimity":[],"row":[]}
        if frame_param and frame_param.get("filter", []):
            filters = frame_param.get("filter", [])
            for ele in filters:
                get_id = ele.get("id", None)
                if get_id:
                    ele["id"] = str(get_id)



帮忙优化一下 代码