From e7af6a6d88914f60c16e767909a715127651199e Mon Sep 17 00:00:00 2001 From: zhangyuan Date: Tue, 11 May 2021 14:10:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8D=E5=88=A4=E6=96=AD=E6=98=AF=E4=B8=8D?= =?UTF-8?q?=E6=98=AF=E6=AD=A3=E7=A1=AE=E8=BA=AB=E4=BB=BD=E8=AF=81=E7=94=9F?= =?UTF-8?q?=E6=97=A5=EF=BC=8C=E5=8F=AA=E6=88=AA=E5=8F=96=E5=B9=B4=E4=BB=BD?= =?UTF-8?q?=E8=AE=A1=E7=AE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/resources/mapper/epidemic/EpidemicUserInfoDao.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/epdc-cloud-vim-yushan/src/main/resources/mapper/epidemic/EpidemicUserInfoDao.xml b/epdc-cloud-vim-yushan/src/main/resources/mapper/epidemic/EpidemicUserInfoDao.xml index 939e32f..662df6e 100644 --- a/epdc-cloud-vim-yushan/src/main/resources/mapper/epidemic/EpidemicUserInfoDao.xml +++ b/epdc-cloud-vim-yushan/src/main/resources/mapper/epidemic/EpidemicUserInfoDao.xml @@ -342,14 +342,14 @@ UPDATE epidemic_user_info SET age = IFNULL( ( - YEAR (now()) - YEAR (substring(ID_CARD, 7, 8)) + YEAR (now()) - IFNULL(substring(ID_CARD, 7, 4), 0) ), 0 ) WHERE DEL_FLAG = '0' AND ID_CARD IS NOT NULL - AND REVISION = 0 + AND REVISION = '0' AND LENGTH(ID_CARD) = 18 \ No newline at end of file