Skip to content

Commit

Permalink
spi-stats:fix resp add rel conf fact key.
Browse files Browse the repository at this point in the history
  • Loading branch information
ljl committed Jul 1, 2024
1 parent 9c7c8e9 commit d09373c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions backend/spi/spi-stats/src/dto/stats_conf_dto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,10 @@ pub struct StatsConfFactColInfoResp {
///
/// 当kind = 度量时有效,用于指定度量激活(仅在所有指定维度都存在时激活)
pub mes_act_by_dim_conf_keys: Option<Vec<String>>,
/// Associated fact key
///
/// 关联的事实key
pub rel_conf_fact_key: Option<String>,
/// Associated fact and fact column configuration.
/// Format: <fact configuration table key>.<fact field configuration table key>
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ async fn do_paginate(
let result = conn
.query_all(
&format!(
r#"SELECT key, show_name, kind, remark, dim_rel_conf_dim_key, rel_external_id, dim_multi_values, dim_exclusive_rec, dim_data_type, dim_dynamic_url, mes_data_distinct, mes_data_type, mes_frequency, mes_unit, mes_act_by_dim_conf_keys, rel_conf_fact_and_col_key, create_time, update_time, count(*) OVER() AS total
r#"SELECT key, show_name, kind, remark, dim_rel_conf_dim_key, rel_external_id, dim_multi_values, dim_exclusive_rec, dim_data_type, dim_dynamic_url, mes_data_distinct, mes_data_type, mes_frequency, mes_unit, mes_act_by_dim_conf_keys, rel_conf_fact_key, rel_conf_fact_and_col_key, create_time, update_time, count(*) OVER() AS total
FROM {table_name}
WHERE
{}
Expand Down Expand Up @@ -426,6 +426,7 @@ WHERE
mes_frequency: item.try_get("", "mes_frequency")?,
mes_unit: item.try_get("", "mes_unit")?,
mes_act_by_dim_conf_keys: item.try_get("", "mes_act_by_dim_conf_keys")?,
rel_conf_fact_key: item.try_get("", "rel_conf_fact_key")?,
rel_conf_fact_and_col_key: item.try_get("", "rel_conf_fact_and_col_key")?,
remark: item.try_get("", "remark")?,
create_time: item.try_get("", "create_time")?,
Expand Down

0 comments on commit d09373c

Please sign in to comment.