diff --git a/golang_learn/data_office/get_hy_jctj/main.go b/golang_learn/data_office/get_hy_jctj/main.go index 2ffa253..2501aa4 100644 --- a/golang_learn/data_office/get_hy_jctj/main.go +++ b/golang_learn/data_office/get_hy_jctj/main.go @@ -58,7 +58,7 @@ select ifnull(M0203,'') IDNumber, ifnull((select min(code_name) from code_value where M0243=code_value and code_type='M_D_C31_2019'),'') CurrentRankLevel, ifnull(substr(M0244, 1, 6),'') CurrentRankStartDate, IF(M0215 = 1, '是', '否') Has2YearsGrassrootsExp, - ifnull((select min(code_name) from M_M09, code_value where M0905=code_value and code_type='M_D_CM16' and M0902=M0203),'') AnnualAssessment2023, + ifnull((select min(code_name) from code_value where M0251=code_value and code_type='M_D_C32_2021'),'') AnnualAssessment2023, ifnull((select case M0104 when 2 then '参照管理机关工作人员' when 3 then '参照管理事业单位人员' else '公务员' end from M_M01 where M_M01.UNID=M_M02.UNID and rpt='2024' limit 1),'') PersonCategory, ifnull((select '是' from M_M05 where M0503=M0203 and rpt='2024' limit 1),'否') SelectedFor2024 from M_M02 diff --git a/golang_learn/data_office/get_hy_jctj/脚本.sql b/golang_learn/data_office/get_hy_jctj/脚本.sql index 9305aa4..ac57b52 100644 --- a/golang_learn/data_office/get_hy_jctj/脚本.sql +++ b/golang_learn/data_office/get_hy_jctj/脚本.sql @@ -61,7 +61,7 @@ select ifnull((select min(code_name) from code_value where M0243=code_value and code_type='M_D_C31_2019'),'') 现职级层次, ifnull(substr(M0244, 1, 6) ,'') 任现职级层次时间, IF(M0215 = 1, '是', '否') 是否具有2年以上基层经验, - ifnull((select min(code_name) from M_M09, code_value where M0905=code_value and code_type='M_D_CM16' and M0902=M0203),'') 2023年度考核结果, + ifnull((select min(code_name) from code_value where M0251=code_value and code_type='M_D_C32_2021'),'') 2023年度考核结果, ifnull((select case M0104 when 2 then '参照管理机关工作人员' when 3 then '参照管理事业单位人员' else '公务员' end from M_M01 where M_M01.UNID=M_M02.UNID and rpt='2024' limit 1),'') 人员类别, ifnull((select '是' from M_M05 where M0503=M0203 and rpt='2024' limit 1),'否') 2024年考录选调生 from M_M02 where rpt='2024';