임가 등록/ 조사원 매팡 엑셀 파일 업로드

This commit is contained in:
주수현
2025-06-27 18:55:40 +09:00
parent dd55024a0b
commit 88cd8b9003
12 changed files with 195 additions and 50 deletions

View File

@@ -4,7 +4,7 @@
<mapper
namespace="app.module.admin.usecase.household.createHousehold.adapters.persistence.CreateHouseholdMapper">
<insert id="createHousehold">
<update id="createHousehold">
/* createHousehold : 임가 등록 */
<selectKey keyProperty="seq" resultType="long" order="BEFORE">
SELECT nextval('household_seq')
@@ -79,7 +79,7 @@
</if>
<include refid="common.fields.CreateUpdateBaseValues"/>
)
</insert>
</update>
<insert id="createHouseholdHasRole">
/* createHouseholdHasRole : 임가 역할 등록 */

View File

@@ -31,6 +31,7 @@
<when test="cmd.searchField eq 'name'">
AND a.name ILIKE '%' || #{cmd.searchValue} || '%'
</when>
<when test="cmd.searchField eq 'phone'">
AND a.phone ILIKE '%' || #{cmd.searchValue} || '%'
</when>

View File

@@ -357,4 +357,12 @@
ORDER BY hvr.householdNum ASC
OFFSET #{pageable.offset} ROWS FETCH NEXT #{pageable.pageSize} ROWS ONLY
</select>
<select id="selectResearcherId">
select seq
from admin a
join admin_has_role ahr on ahr.admin_seq = a.seq and ahr.role_id = 'ROLE_RESEARCHER' and ahr.is_deleted = false
where a.id = #{id} and a.is_deleted = false
</select>
</mapper>