퇴근위치
All checks were successful
LOCALNET-DEV/pipeline/head This commit looks good

This commit is contained in:
yoon 2025-03-31 13:03:04 +09:00
parent 436a4fc49b
commit a25b751d5e
2 changed files with 7 additions and 3 deletions

View File

@ -54,6 +54,7 @@ public class CommutersService {
if(map.get("commutLve") != null) {
map.put("commutLve", null);
map.put("commutOut", null);
} else {
map.put("commutLve", LocalTime.now());
}

View File

@ -11,7 +11,8 @@
COMMUTCMT,
COMMUTLVE,
COMMUTDAY,
COMMUTARR
COMMUTARR,
COMMUTOUT
) VALUES (
#{commutSeq},
#{memberSeq},
@ -19,7 +20,8 @@
#{commutCme},
#{commutLve},
#{commutDay},
#{commutArr}
#{commutArr},
#{commutOut},
)
</insert>
@ -27,7 +29,8 @@
<update id="updateLeaveTime">
UPDATE commuters
SET COMMUTLVE = #{commutLve},
PROJCTLVE = #{projctLve}
PROJCTLVE = #{projctLve},
COMMUTOUT = #{commutOut}
WHERE MEMBERSEQ = #{memberSeq}
AND COMMUTDAY = CURDATE()
</update>