조사원 현황 수정

This commit is contained in:
주수현
2025-06-26 10:31:11 +09:00
parent 5818316e65
commit fcc1b868b7
14 changed files with 34 additions and 42 deletions

View File

@@ -1,35 +0,0 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper
namespace="app.module.admin.usecase.loggedinuser.save.adapter.persistence.LoggedInUserSaveMapper">
<insert id="insert" parameterType="app.module.core.config.adapters.persistence.entity.LoggedInUser">
INSERT INTO logged_in_user
(
id,
app_type,
login_id,
clientip,
last_logged_in_at
)
VALUES
(
nextval('logged_in_user_seq'),
#{appType},
#{id},
#{clientIP},
#{lastLoggedInAt}
)
</insert>
<update id="update" parameterType="app.module.core.config.adapters.persistence.entity.LoggedInUser">
UPDATE logged_in_user
SET
clientip = #{clientIP},
last_logged_in_at = #{lastLoggedInAt}
WHERE app_type = #{appType}
AND login_id = #{id}
</update>
</mapper>

View File

@@ -42,4 +42,5 @@
<include refid="common.fields.UpdateBaseSet"/>
WHERE id = #{id}
</update>
</mapper>