[BO] 관리자 에러 수정
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -156,7 +156,7 @@
|
||||
<if test="searchMonth != null and searchMonth != ''">
|
||||
and TO_CHAR(rhv.visit_date ,'YYYYMM')= #{searchMonth}
|
||||
</if>
|
||||
order by rhv.visit_date
|
||||
order by rhv.visit_date, h.household_num
|
||||
</select>
|
||||
|
||||
<select id="selectVisitHouseholdPercentage">
|
||||
@@ -253,8 +253,8 @@
|
||||
WHERE household_seq = #{householdSeq}
|
||||
AND TO_CHAR(visit_date, 'YYYYMM') = TO_CHAR(#{visitDate}, 'YYYYMM')
|
||||
AND is_gift_sent = true
|
||||
AND (#{id} IS NULL OR id != #{id})
|
||||
AND is_deleted = false
|
||||
AND id != #{id}
|
||||
</update>
|
||||
|
||||
<update id="updateVisitHousehold">
|
||||
|
||||
Reference in New Issue
Block a user