Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Commit 2bab438

Browse files
committed
support country code for registrants
1 parent 82ba330 commit 2bab438

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/main/java/com/appirio/service/challengefeeder/api/detail/RegistrantData.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,11 @@ public class RegistrantData {
6969
@Getter
7070
@Setter
7171
private Date registrationDate;
72+
73+
/**
74+
* The country code field
75+
*/
76+
@Getter
77+
@Setter
78+
private String countryCode;
7279
}

src/main/resources/sql/challenge-feeder/detail/get_registrants.sql

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,14 @@ select
1010
ELSE decode(ri4.value, 'N/A', '0', ri4.value)::int
1111
END AS rating,
1212
ri5.value::int AS reliability,
13+
a.country_code AS countryCode,
1314
p.project_id AS challengeId
1415
from resource rur
1516
, resource_info ri1
1617
, project p
1718
, user u
19+
, user_address_xref uax
20+
, address a
1821
, project_category_lu pcl
1922
, outer resource_info ri4
2023
, outer resource_info ri5
@@ -32,4 +35,6 @@ select
3235
and pcl.project_category_id = p.project_category_id
3336
and ar.coder_id = u.user_id
3437
and ar.algo_rating_type_id=3
38+
and uax.user_id = u.user_id
39+
and a.address_id = uax.address_id
3540
and {filter}

0 commit comments

Comments
 (0)