Skip to content

Commit cd2ee52

Browse files
authored
[Fix] 전세대출필터링 조건 수정 (#114)
* docs: 문서삭제 * docs: flyway V22,V23 전세자금대출 스키마 추가 및 db저장 * feat: 전세자금대출 필터링 조회 기능 구현 * refactor: 전세대출 변수명 변경 * refacotr : 전세대출상품 테이블 변경 및 상품 추가 * docs: 기존 작성 V22 삭제 * refactor: 가입조건 판단 수정 * chore : 변수명 변경 MIN_RATE -> BASE_RATE * docs : 문서삭제 * chore: swagger문서작성 * chore: 필요없는 import삭제 * chore:개행 * docs: flyway_V23 추가 * docs: flyway_V23 추가 * docs : V23 쿼리문 수정 * chore : 변수명 변경 BASE_RATE -> MIN_RATE * docs:flyway V23 삭제 * chore: mapper변수명 변경 -> baseRate=> minRate * refactor: 필터링조건조회 수정
1 parent 03cab0d commit cd2ee52

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/main/resources/org/scoula/domain/financialproduct/jeonseloan/mapper/JeonseLoanMapper.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@
2929
<sql id="whereCondition">
3030
<where>
3131
AND is_active=1
32-
<if test="request.minAmount != null">
33-
AND min_loan_amount &lt;= #{request.minAmount}
32+
<if test="request.minAmount != null and request.minAmount >= 0">
33+
AND min_loan_amount >= #{request.minAmount}
3434
</if>
35-
<if test="request.maxAmount != null">
36-
AND max_loan_amount &gt;= #{request.maxAmount}
35+
<if test="request.maxAmount != null and request.maxAmount > 0">
36+
AND max_loan_amount &lt;= #{request.maxAmount}
3737
</if>
3838
</where>
3939
</sql>

0 commit comments

Comments
 (0)