xml 파일에 부등호가 있는 update 쿼리문을 삽입하니 에러가 발생했다.
이유는 >=
, <
와 같은 부등호가 있기 때문이었다.
에러를 해결하기 위해 >=
는 >=
로 <
는 <
로 변경하였다.
<update id="atUpdate" parameterType="map">
update ATTENDANCE
set AT_END = sysdate,
AT_STATUS = case
when to_char(sysdate, 'HH24:MI') between '06:00' and '19:00' then '정상출근'
when to_char(sysdate, 'HH24:MI') between '09:11' and '24:00' then '지각'
when (sysdate - ATTENDANCE.AT_START) * 24 >= 4 and (sysdate - ATTENDANCE.AT_START) * 24 < 8 then '조퇴'
else '기타'
end
where AT_DATE = trunc(sysdate)
and E_NO = #{E_NO}
</update>