|
|
@ -156,7 +156,8 @@ |
|
|
|
ID AS "userId", |
|
|
|
NAME, |
|
|
|
MOBILE, |
|
|
|
age |
|
|
|
age, |
|
|
|
IC_RESI_USER |
|
|
|
FROM |
|
|
|
( |
|
|
|
SELECT |
|
|
@ -170,14 +171,16 @@ |
|
|
|
WHEN age >= 60 AND age <= 69 THEN '2' |
|
|
|
WHEN age >= 70 AND age <= 79 THEN '3' |
|
|
|
ELSE '4' |
|
|
|
END AS ageGroup |
|
|
|
END AS ageGroup, |
|
|
|
IC_RESI_USER |
|
|
|
FROM |
|
|
|
( |
|
|
|
SELECT |
|
|
|
ID, |
|
|
|
NAME, |
|
|
|
MOBILE, |
|
|
|
YEAR (FROM_DAYS(DATEDIFF(NOW(),SUBSTRING( ID_CARD, 7, 8 )))) AS age |
|
|
|
YEAR (FROM_DAYS(DATEDIFF(NOW(),SUBSTRING( ID_CARD, 7, 8 )))) AS age, |
|
|
|
IC_RESI_USER |
|
|
|
FROM |
|
|
|
ic_party_member |
|
|
|
WHERE |
|
|
@ -202,7 +205,8 @@ |
|
|
|
ID AS "userId", |
|
|
|
NAME, |
|
|
|
MOBILE, |
|
|
|
CULTURE AS education |
|
|
|
CULTURE AS education, |
|
|
|
IC_RESI_USER |
|
|
|
FROM |
|
|
|
ic_party_member |
|
|
|
WHERE |
|
|
|