[BO] 임가현황 - 검색 수정, 조사원현황 - 임가상세로 이동 처리

This commit is contained in:
kangsunlee
2025-06-26 11:19:36 +09:00
parent 40db7ba002
commit 063c9018e4
2 changed files with 18 additions and 5 deletions

View File

@@ -83,9 +83,15 @@
<where>
1=1
<if test="cmd.ownerField != null and cmd.ownerField != '' and cmd.ownerValue != ''">
<if test="cmd.ownerValue != null and cmd.ownerValue != ''">
/* 경영주 검색 */
<choose>
<when test="cmd.ownerField == ''">
AND (
hvr.householdName ILIKE '%' || #{cmd.ownerValue} || '%'
OR hvr.householdPhone ILIKE '%' || #{cmd.ownerValue} || '%'
)
</when>
<when test="cmd.ownerField eq 'name'">
AND hvr.householdName ILIKE '%' || #{cmd.ownerValue} || '%'
</when>
@@ -95,9 +101,15 @@
</choose>
</if>
<if test="cmd.researcherField != null and cmd.researcherField != '' and cmd.researcherValue != ''">
<if test="cmd.researcherValue != null and cmd.researcherValue != ''">
/* 조사원 검색 */
<choose>
<when test="cmd.researcherField == ''">
AND (
hvr.researcherName ILIKE '%' || #{cmd.researcherValue} || '%'
OR hvr.researcherPhone ILIKE '%' || #{cmd.researcherValue} || '%'
)
</when>
<when test="cmd.researcherField eq 'name'">
AND hvr.researcherName ILIKE '%' || #{cmd.researcherValue} || '%'
</when>