Skip to content

Commit

Permalink
gdrs sql files
Browse files Browse the repository at this point in the history
  • Loading branch information
trevlenb2 committed Oct 24, 2024
1 parent 45d5453 commit 81ccb1e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ public ResponseEntity<List<HdssCompoundHouseholdIndividualObj>> search(

// Construct the JSON array format as a string

log.debug("search date: {}",searchDate);

searchDeterminer = searchDeterminer.concat("D");
}
if (hdssSearchRequest.getSearchString() != null) {
Expand All @@ -155,9 +157,10 @@ public ResponseEntity<List<HdssCompoundHouseholdIndividualObj>> search(
hdssSearchRequest.getGender(), searchDate);
break;
case "GDS":
log.debug("search date: {}",searchDate);
individualProjections = compoundsRepository.searchWithStringGenderAndDob(
hdssSearchRequest.getSearchString(), hdssSearchRequest.getGender(),
hdssSearchRequest.getDob());
searchDate);
break;
case "D":
individualProjections = compoundsRepository.searchWithDob(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ CREATE TABLE IF NOT EXISTS hdss.hdss_compounds
primary key (id)
);

create sequence hdss.hdss_compounds_seq
create sequence IF NOT EXISTS hdss.hdss_compounds_seq
as int
minvalue 0;

Expand Down

0 comments on commit 81ccb1e

Please sign in to comment.