From e87a63ba06ae54c9f8404adc6b2c0769ec0f5ead Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E7=8C=AE=E7=BB=B4?= Date: Mon, 6 Jan 2025 17:11:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=8D=E6=AC=A1=E4=BF=AE=E6=94=B9=E9=83=A8?= =?UTF-8?q?=E5=88=86SQL=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98::2024=E5=B9=B4?= =?UTF-8?q?=E8=80=83=E5=BD=95=E9=80=89=E8=B0=83=E7=94=9F?= 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 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/golang_learn/data_office/get_hy_jctj/main.go b/golang_learn/data_office/get_hy_jctj/main.go index 2501aa4..42bc42e 100644 --- a/golang_learn/data_office/get_hy_jctj/main.go +++ b/golang_learn/data_office/get_hy_jctj/main.go @@ -60,7 +60,7 @@ select ifnull(M0203,'') IDNumber, IF(M0215 = 1, '是', '否') Has2YearsGrassrootsExp, 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 + ifnull((select IF(M0525 = 1, '是', '否') from M_M05 where M0503=M0203 and rpt='2024' limit 1),'否') SelectedFor2024 from M_M02 where rpt = '2024' ` diff --git a/golang_learn/data_office/get_hy_jctj/脚本.sql b/golang_learn/data_office/get_hy_jctj/脚本.sql index ac57b52..f32eb23 100644 --- a/golang_learn/data_office/get_hy_jctj/脚本.sql +++ b/golang_learn/data_office/get_hy_jctj/脚本.sql @@ -63,7 +63,7 @@ select IF(M0215 = 1, '是', '否') 是否具有2年以上基层经验, 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年考录选调生 + ifnull((select IF(M0525 = 1, '是', '否') from M_M05 where M0503=M0203 and rpt='2024' limit 1), '否') 2024年考录选调生 from M_M02 where rpt='2024';