[BO] 관리자 에러 수정

This commit is contained in:
kangsunlee
2025-07-15 12:04:36 +09:00
parent cb8525c7b2
commit 2ed5495ac6
19 changed files with 408 additions and 383 deletions

View File

@@ -25,13 +25,18 @@
AND rhh.is_deleted = false
WHERE a.is_deleted = false AND a.account_disabled = false
<if test="cmd.searchField != null and cmd.searchField != '' and cmd.searchValue != ''">
<if test="cmd.searchValue != null and cmd.searchValue != ''">
/* 조사원 검색 */
<choose>
<when test="cmd.searchField == ''">
AND (
a.name ILIKE '%' || #{cmd.searchValue} || '%'
OR a.phone ILIKE '%' || #{cmd.searchValue} || '%'
)
</when>
<when test="cmd.searchField eq 'name'">
AND a.name ILIKE '%' || #{cmd.searchValue} || '%'
</when>
<when test="cmd.searchField eq 'phone'">
AND a.phone ILIKE '%' || #{cmd.searchValue} || '%'
</when>

View File

@@ -44,8 +44,10 @@
WHERE household_seq = #{householdSeq}
AND TO_CHAR(visit_date, 'YYYYMM') = TO_CHAR(TO_DATE(#{visitDate}, 'YYYY-MM-DD'), 'YYYYMM')
AND is_gift_sent = true
AND (#{visitInfoId} IS NULL OR id != #{visitInfoId})
AND is_deleted = false
<if test="visitInfoId != null">
AND id != #{visitInfoId}
</if>
</update>
<select id="findById" resultType="java.lang.Long">