处理默认值

处理默认值

作者:


func NewProjectTaskBusinessNoticeMiddlewareCreator() QueryListMiddlewareCreator {
	return query_list_service_middlewares_common_creator.QueryItemDefaultValueCreator(query_list_service_middlewares_common_creator.QueryItemDefaultValueCreatorOption{
		Condition: func(ctx QueryListContext, api QueryDefApi) bool {
			queryListDef := ctx.GetQueryListDef()
			return queryListDef.IsForScheduledTask && queryListDef.SrcDefinitionId == "NSG6PS511XU002C"
		},
		DefaultValue: map[string]interface{}{
			gen_ef.F_Project_billStatusObject: map[string]interface{}{
				"operator": gen_enums.ENUM_CriteriaOperator_in,
				"values": []string{
					gen_enums.ENUM_BillStatus_effective,
				},
			},
		},
	})
}