-- 【ds1】

SELECT
    organ_name,
    comm_name,
    cycle,
    index_myd_target AS 满意度目标,
    index_dc_myddf AS 满意度得分,
    index_dc_ybl AS 地产有效样本量,
    index_dc_myl AS 地产满意量,
    index_dc_myd AS 稳老综合满意度,
    index_dc_qz AS 权重20,
    index_wy_ybl AS 物业有效样本量,
    index_wy_myl AS 物业满意量,
    index_wy_myd AS 磨稳老物业满意度,
    index_wy_qz AS 权重80
FROM dw.ods_wuye_complaint
WHERE yr = '2024'
  AND jd = '二季度'
  AND ptype = '内盘'
;


SELECT
    organ_name,
    comm_name,
    cycle,
    index_myd_target AS 满意度目标,
    index_dc_myddf AS 满意度得分,
    index_dc_ybl AS 地产有效样本量,
    index_dc_myl AS 地产满意量,
    index_dc_myd AS 稳老综合满意度,
    index_dc_qz AS 权重20,
    index_wy_ybl AS 物业有效样本量,
    index_wy_myl AS 物业满意量,
    index_wy_myd AS 磨稳老物业满意度,
    index_wy_qz AS 权重80
FROM ods_wuye_complaint
WHERE yr = '${p_yr}'
  AND jd = '${p_jd}'
  AND ptype = '${p_type}'
;