@ -10,7 +10,11 @@
GRID_ID,
USER_ID,
ID_CARD,
STR_TO_DATE( SUBSTRING( ID_CARD, 7, 8 ),'%Y%m%d') AS birthday
(
case when LENGTH(ID_CARD)=15 then STR_TO_DATE( concat('19',SUBSTRING( ID_CARD, 7, 6 )),'%Y%m%d')
else STR_TO_DATE( SUBSTRING( ID_CARD, 7, 8 ),'%Y%m%d')
end
)as birthday
FROM
partymember_info
WHERE