배치 로그 insert, update 시 hostName추가

This commit is contained in:
kangsunlee
2025-07-21 10:57:21 +09:00
parent 2db0f2766e
commit d88d655025
8 changed files with 32 additions and 19 deletions

View File

@@ -19,8 +19,8 @@
SELECT nextval('batch_log_seq')
</selectKey>
INSERT INTO batch_log (id, type, status, start_at, created_at)
VALUES (#{id}, #{type}, #{status}, #{startAt}, now())
INSERT INTO batch_log (id, type, status, start_at, created_at, created_host)
VALUES (#{id}, #{type}, #{status}, #{startAt}, now(), #{hostName})
</insert>
<!-- 에러 로그 insert -->
@@ -38,7 +38,8 @@
UPDATE batch_log
SET status = #{status},
error_message = #{errorMessage},
end_at = now()
end_at = now(),
created_host = #{hostName}
WHERE id = #{id}
</update>
</mapper>