배치 로그 insert, update 시 hostName추가
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user