Browse Source

党员接口新增字段

master
Jackwang 3 years ago
parent
commit
d2892ba276
  1. 12
      epmet-module/resi-partymember/resi-partymember-server/src/main/resources/mapper/partymember/IcPartyMemberDao.xml
  2. 1
      epmet-user/epmet-user-client/src/main/java/com/epmet/dto/result/PartyMemberAgeResultDTO.java
  3. 1
      epmet-user/epmet-user-client/src/main/java/com/epmet/dto/result/PartyMemberEducationResultDTO.java

12
epmet-module/resi-partymember/resi-partymember-server/src/main/resources/mapper/partymember/IcPartyMemberDao.xml

@ -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

1
epmet-user/epmet-user-client/src/main/java/com/epmet/dto/result/PartyMemberAgeResultDTO.java

@ -16,4 +16,5 @@ public class PartyMemberAgeResultDTO implements Serializable {
private String name;
private String age;
private String mobile;
private String icResiUser;
}

1
epmet-user/epmet-user-client/src/main/java/com/epmet/dto/result/PartyMemberEducationResultDTO.java

@ -16,4 +16,5 @@ public class PartyMemberEducationResultDTO implements Serializable {
private String name;
private String education;
private String mobile;
private String icResiUser;
}

Loading…
Cancel
Save