Skip to content

Commit

Permalink
Merge pull request #14 from hanaTI-team-1/yebang-checklist
Browse files Browse the repository at this point in the history
Yebang checklist
  • Loading branch information
Minjae-vincent authored Jul 16, 2024
2 parents db44c22 + a7dac5f commit 878079d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@

@Data
public class RecommendRequest {
private String dongNm;
private int school;
private int publicSecurity;
private int busStop;
private int subway;
private int mart;
private String dongName;
private String policeOffice;
private String subway;
private String school;
private String mart;
private String bus;
private String price;
}
Original file line number Diff line number Diff line change
Expand Up @@ -320,9 +320,9 @@ private List<InfraDTO.BusStation> getBusStations(String gu) {
}

public List<JeonseCheckList> recommendJeonse(RecommendRequest recommendRequest) {
// String[] atclNos = getRecommendationList(recommendRequest);
String[] atclNos = getRecommendationList(recommendRequest);

String[] atclNos = {"2430006535", "2433524070", "2433775697", "2434392198", "2431314046", "2429677439", "2432722911", "2430296803", "2433186783"};
// String[] atclNos = {"2430006535", "2433524070", "2433775697", "2434392198", "2431314046", "2429677439", "2432722911", "2430296803", "2433186783"};

List<JeonseCheckList> recommendList = new ArrayList<>();

Expand Down Expand Up @@ -366,4 +366,3 @@ public List<Jeonse> getAddressList(String address) {
return jeonseMapper.getJeonseList(address);
}
}

5 changes: 4 additions & 1 deletion src/main/resources/mapper/JeonseMapper.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@

<select id="getJeonseList" resultType="kr.ac.kopo.jeonse.domain.jeonse.domain.Jeonse">
SELECT * FROM naver_real_estate
WHERE address like '%${address}%'
WHERE
tradtpnm = '전세' and
bildnm is not null and
address like '%${address}%'
</select>

<select id="selectJeonseByAtclNo" resultType="kr.ac.kopo.jeonse.domain.jeonse.domain.Jeonse">
Expand Down

0 comments on commit 878079d

Please sign in to comment.