Merge branch 'main' of http://192.168.0.251:3000/localnet/localhost-back.git into main
All checks were successful
LOCALNET-DEV/pipeline/head This commit looks good

This commit is contained in:
nevermoregb 2025-03-31 13:14:41 +09:00
commit 66fbd4fdad
4 changed files with 18 additions and 7 deletions

View File

@ -89,7 +89,7 @@ public class TransactionConfig {
// naming 설정 // naming 설정
txAttributes.setProperty("select*", readOnlyAttribute.toString()); txAttributes.setProperty("select*", readOnlyAttribute.toString());
txAttributes.setProperty("*NewTx*", newTxAttribute.toString()); txAttributes.setProperty("insert*", newTxAttribute.toString());
txAttributes.setProperty("*NestedTx*", nestedTxAttribute.toString()); txAttributes.setProperty("*NestedTx*", nestedTxAttribute.toString());
txAttributes.setProperty("*", writeTxAttribute.toString()); txAttributes.setProperty("*", writeTxAttribute.toString());

View File

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

View File

@ -228,7 +228,12 @@ public class localvacaService {
dto.put("date", locdateStr); // 변환 불가능한 경우 원본 저장 dto.put("date", locdateStr); // 변환 불가능한 경우 원본 저장
} }
dto.put("name", item.get("dateName")); String dateName = String.valueOf(item.get("dateName"));
if (dateName.contains("대체공휴일")) {
dto.put("name", "대체공휴일");
} else {
dto.put("name", dateName);
}
return dto; return dto;
} }

View File

@ -11,7 +11,8 @@
COMMUTCMT, COMMUTCMT,
COMMUTLVE, COMMUTLVE,
COMMUTDAY, COMMUTDAY,
COMMUTARR COMMUTARR,
COMMUTOUT
) VALUES ( ) VALUES (
#{commutSeq}, #{commutSeq},
#{memberSeq}, #{memberSeq},
@ -19,7 +20,8 @@
#{commutCme}, #{commutCme},
#{commutLve}, #{commutLve},
#{commutDay}, #{commutDay},
#{commutArr} #{commutArr},
#{commutOut},
) )
</insert> </insert>
@ -27,7 +29,8 @@
<update id="updateLeaveTime"> <update id="updateLeaveTime">
UPDATE commuters UPDATE commuters
SET COMMUTLVE = #{commutLve}, SET COMMUTLVE = #{commutLve},
PROJCTLVE = #{projctLve} PROJCTLVE = #{projctLve},
COMMUTOUT = #{commutOut}
WHERE MEMBERSEQ = #{memberSeq} WHERE MEMBERSEQ = #{memberSeq}
AND COMMUTDAY = CURDATE() AND COMMUTDAY = CURDATE()
</update> </update>
@ -46,8 +49,10 @@
m.MEMBERNAM AS memberName, m.MEMBERNAM AS memberName,
m.MEMBERPRF AS profile, m.MEMBERPRF AS profile,
p.PROJCTNAM, p.PROJCTNAM,
p.PROJCTARR AS projectAddress,
cc.CMNCODNAM AS projctcolor, cc.CMNCODNAM AS projctcolor,
p2.PROJCTNAM AS leaveProjectName, p2.PROJCTNAM AS leaveProjectName,
p2.PROJCTARR AS leaveProjectAddress,
cl.CMNCODNAM AS leaveProjectColor cl.CMNCODNAM AS leaveProjectColor
FROM FROM
commuters c commuters c