[BO] 임가현황 작업 중 (9)

This commit is contained in:
kangsunlee
2025-06-17 21:45:39 +09:00
parent 1e5e88814e
commit 693de9259f
49 changed files with 861 additions and 97 deletions

View File

@@ -26,6 +26,7 @@
COUNT(*) OVER () AS total
FROM (
SELECT
r.admin_seq AS adminSeq,
h.seq AS householdSeq,
h.household_num AS householdNum,
h.owner_name AS householdName,
@@ -179,6 +180,11 @@
</if>
</where>
<if test="cmd.userRole != null and cmd.userRole == 'ROLE_RESEARCHER'">
/* 조사원일 경우 매핑된 임가만 노출 */
AND hvr.adminSeq = #{cmd.adminSeq}
</if>
ORDER BY hvr.householdNum ASC
OFFSET #{pageable.offset} ROWS FETCH NEXT #{pageable.pageSize} ROWS ONLY
</select>