Skip to content

Commit

Permalink
fix: Add road address when check yebang
Browse files Browse the repository at this point in the history
  • Loading branch information
Minjae-vincent committed Jul 17, 2024
1 parent 8c917f2 commit 857c666
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,6 @@ public class Jeonse {
private String dtlAddrYn;
private String dtlAddr;
private String address;
private String addressRoad;
}

7 changes: 5 additions & 2 deletions src/main/resources/mapper/JeonseMapper.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,11 @@
</select>

<select id="selectJeonseByAtclNo" resultType="kr.ac.kopo.jeonse.domain.jeonse.domain.Jeonse">
SELECT * FROM naver_real_estate
WHERE atclno = #{atclNo}
with tmp as (SELECT * FROM naver_real_estate WHERE atclno = #{atclNo})
select tmp.*, ram.road_address as address_road
from tmp
join road_address_jibun_address_mapping ram
on tmp.address = ram.jibun_address
</select>

<select id="findJeonseRateByAtclNo" resultType="kr.ac.kopo.jeonse.domain.jeonse.dto.JeonseRateDto">
Expand Down

0 comments on commit 857c666

Please sign in to comment.