[BO] 수정사항 반영

This commit is contained in:
kangsunlee
2025-07-15 17:40:06 +09:00
parent cbf4cb8a0a
commit 15f29bdf11
13 changed files with 64 additions and 57 deletions

View File

@@ -342,9 +342,15 @@
) AS hvr
<where>
1=1
<if test="cmd.ownerField != null and cmd.ownerField != ''">
<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>