|
@ -83,7 +83,8 @@ |
|
|
DISTRICT district, |
|
|
DISTRICT district, |
|
|
BUILDING_ADDRESS buildingAddress, |
|
|
BUILDING_ADDRESS buildingAddress, |
|
|
NICKNAME nickname, |
|
|
NICKNAME nickname, |
|
|
HEAD_IMG_URL headImgUrl |
|
|
HEAD_IMG_URL headImgUrl, |
|
|
|
|
|
CREATED_TIME as regTime |
|
|
FROM user_base_info |
|
|
FROM user_base_info |
|
|
WHERE DEL_FLAG = '0' |
|
|
WHERE DEL_FLAG = '0' |
|
|
AND USER_ID = #{userId} |
|
|
AND USER_ID = #{userId} |
|
@ -181,7 +182,11 @@ |
|
|
ubi.DISTRICT district, |
|
|
ubi.DISTRICT district, |
|
|
ubi.BUILDING_ADDRESS buildingAddress, |
|
|
ubi.BUILDING_ADDRESS buildingAddress, |
|
|
ubi.NICKNAME nickname, |
|
|
ubi.NICKNAME nickname, |
|
|
ubi.HEAD_IMG_URL headImgUrl |
|
|
ubi.HEAD_IMG_URL headImgUrl, |
|
|
|
|
|
rr.CREATED_TIME as regTime, |
|
|
|
|
|
rr.GRID_ID, |
|
|
|
|
|
rr.AGENCY_ID, |
|
|
|
|
|
ubi.ID_NUM as showIdNum |
|
|
FROM |
|
|
FROM |
|
|
register_relation rr |
|
|
register_relation rr |
|
|
LEFT JOIN user_base_info ubi ON ( rr.USER_ID = ubi.USER_ID ) |
|
|
LEFT JOIN user_base_info ubi ON ( rr.USER_ID = ubi.USER_ID ) |
|
@ -189,6 +194,9 @@ |
|
|
rr.DEL_FLAG = '0' |
|
|
rr.DEL_FLAG = '0' |
|
|
AND rr.CUSTOMER_ID = #{customerId} |
|
|
AND rr.CUSTOMER_ID = #{customerId} |
|
|
AND rr.FIRST_REGISTER = '1' |
|
|
AND rr.FIRST_REGISTER = '1' |
|
|
|
|
|
<if test="userId != null and userId.trim() != ''"> |
|
|
|
|
|
AND rr.USER_ID = #{userId} |
|
|
|
|
|
</if> |
|
|
<if test="gridId != null and gridId.trim() != ''"> |
|
|
<if test="gridId != null and gridId.trim() != ''"> |
|
|
AND rr.GRID_ID = #{gridId} |
|
|
AND rr.GRID_ID = #{gridId} |
|
|
</if> |
|
|
</if> |
|
@ -196,7 +204,7 @@ |
|
|
AND rr.AGENCY_ID_PATH LIKE concat( '%', #{agencyId}, '%' ) |
|
|
AND rr.AGENCY_ID_PATH LIKE concat( '%', #{agencyId}, '%' ) |
|
|
</if> |
|
|
</if> |
|
|
<if test="name != null and name.trim() != ''"> |
|
|
<if test="name != null and name.trim() != ''"> |
|
|
and rr.REAL_NAME like concat( '%', #{name}, '%' ) |
|
|
and ubi.REAL_NAME like concat( '%', #{name}, '%' ) |
|
|
</if> |
|
|
</if> |
|
|
<if test="regStartTime != null and regStartTime != ''"> |
|
|
<if test="regStartTime != null and regStartTime != ''"> |
|
|
AND DATE_FORMAT( rr.CREATED_TIME, '%Y%m%d' ) >= #{regStartTime} |
|
|
AND DATE_FORMAT( rr.CREATED_TIME, '%Y%m%d' ) >= #{regStartTime} |
|
@ -204,5 +212,6 @@ |
|
|
<if test="regEndTime != null and regEndTime != ''"> |
|
|
<if test="regEndTime != null and regEndTime != ''"> |
|
|
AND DATE_FORMAT( rr.CREATED_TIME, '%Y%m%d' ) <= #{regEndTime} |
|
|
AND DATE_FORMAT( rr.CREATED_TIME, '%Y%m%d' ) <= #{regEndTime} |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
order by rr.CREATED_TIME desc |
|
|
</select> |
|
|
</select> |
|
|
</mapper> |
|
|
</mapper> |
|
|