[BO] 수정사항 반영
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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},
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user