[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

@@ -24,18 +24,10 @@
region_sub_code,
region_detail_code,
address,
<if test="industryLargeCode != null and industryLargeCode != ''">
industry_large_code,
</if>
<if test="industryMiddleCode != null and industryMiddleCode != ''">
industry_middle_code,
</if>
<if test="industrySubMiddle != null and industrySubMiddle != ''">
industry_sub_middle,
</if>
<if test="industryDetail != null and industryDetail != ''">
industry_detail,
</if>
is_panel,
usage_type,
employment_type,

View File

@@ -18,18 +18,10 @@
region_sub_code = #{regionSubCode},
region_detail_code = #{regionDetailCode},
address = #{address},
<if test="industryLargeCode != null and industryLargeCode != ''">
industry_large_code = #{industryLargeCode},
</if>
<if test="industryMiddleCode != null and industryMiddleCode != ''">
industry_middle_code = #{industryMiddleCode},
</if>
<if test="industrySubMiddle != null and industrySubMiddle != ''">
industry_sub_middle = #{industrySubMiddle},
</if>
<if test="industryDetail != null and industryDetail != ''">
industry_detail = #{industryDetail},
</if>
is_panel = #{isPanel},
<if test="usageType != null and usageType != ''">
usage_type = #{usageType},

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>