From 8ff6907e4dc4cf9e075281ea5693e0c49718c909 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E7=8C=AE=E7=BB=B4?= Date: Fri, 10 Jan 2025 09:59:12 +0800 Subject: [PATCH] =?UTF-8?q?=E9=83=A8=E5=88=86=E5=AD=97=E5=85=B8=E5=AF=B9?= =?UTF-8?q?=E5=BA=94=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- golang_learn/data_office/get_hy_jctj/main.go | 2 +- golang_learn/data_office/get_hy_jctj/脚本.sql | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/golang_learn/data_office/get_hy_jctj/main.go b/golang_learn/data_office/get_hy_jctj/main.go index e46caec..3f89577 100644 --- a/golang_learn/data_office/get_hy_jctj/main.go +++ b/golang_learn/data_office/get_hy_jctj/main.go @@ -79,7 +79,7 @@ select ifnull(M0203,'') IDNumber, ifnull((select min(code_name) from code_value where M0243=code_value and code_type='ZB148'),'') CurrentRankLevel, ifnull(substr(M0244, 1, 6),'') CurrentRankStartDate, IF(M0215 = 1, '是', '否') Has2YearsGrassrootsExp, - ifnull((select min(code_name) from code_value where M0251=code_value and code_type='ZB18'),'') 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='@rpt' limit 1),'') PersonCategory, ifnull((select IF(M0525 = 1, '是', '否') from M_M05 where M0503=M0203 and rpt='@rpt' 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 f4ca613..ffc55fe 100644 --- a/golang_learn/data_office/get_hy_jctj/脚本.sql +++ b/golang_learn/data_office/get_hy_jctj/脚本.sql @@ -49,16 +49,16 @@ select ifnull(M0201,'') 姓名, ifnull(substr(M0204, 1, 6) ,'') 出生时间, IF(M0202 = 1, '男', '女') 性别, - ifnull((select min(code_name) from code_value where M0205=code_value and code_type='M_D_CM16'),'') 民族, + ifnull((select min(code_name) from code_value where M0205=code_value and code_type='GB3304'),'') 民族, ifnull(substr(M0216, 1, 6) ,'') 参加工作时间, - ifnull((select min(code_name) from code_value where M0206=code_value and code_type='M_D_CD17'),'') 政治面貌, + ifnull((select min(code_name) from code_value where M0206=code_value and code_type='GB4762'),'') 政治面貌, ifnull((select min(code_name) from code_value where M0242=code_value and code_type='M_D_C11'),'') 全日制学历, ifnull((select min(code_name) from code_value where M0212=code_value and code_type='M_D_C11'),'') 最高学历, ifnull((select min(code_name) from code_value where M0213=code_value and code_type='M_D_C12'),'') 最高学位, - ifnull((select min(code_name) from code_value where M0246=code_value and code_type='M_D_M0246_1'),'') 职位类别, - ifnull((select min(code_name) from code_value where M0208=code_value and code_type='M_D_C32_2019'),'') 现职务层次, + ifnull((select min(code_name) from code_value where M0246=code_value and code_type='XZ93'),'') 职位类别, + ifnull((select min(code_name) from code_value where M0208=code_value and code_type='ZB09'),'') 现职务层次, ifnull(substr(M0233, 1, 6) ,'') 任现职务层次时间, - ifnull((select min(code_name) from code_value where M0243=code_value and code_type='M_D_C31_2019'),'') 现职级层次, + ifnull((select min(code_name) from code_value where M0243=code_value and code_type='ZB148'),'') 现职级层次, ifnull(substr(M0244, 1, 6) ,'') 任现职级层次时间, IF(M0215 = 1, '是', '否') 是否具有2年以上基层经验, ifnull((select min(code_name) from code_value where M0251=code_value and code_type='M_D_C32_2021'),'') 2023年度考核结果,