조사원현황 수정
This commit is contained in:
@@ -13,12 +13,12 @@
|
|||||||
max(u.code_text) AS region_main_code_name,
|
max(u.code_text) AS region_main_code_name,
|
||||||
case a.account_disabled when false then '사용' when true then '미사용' end account_disabled_flag
|
case a.account_disabled when false then '사용' when true then '미사용' end account_disabled_flag
|
||||||
from admin a
|
from admin a
|
||||||
join admin_has_role ahr ON a.seq = ahr.admin_seq
|
join admin_has_role ahr ON a.seq = ahr.admin_seq and ahr.is_deleted = false
|
||||||
left join uicode u ON u.parent_id = 'code.region.main' AND u.id = a.region_main_code
|
left join uicode u ON u.parent_id = 'code.region.main' AND u.id = a.region_main_code
|
||||||
left join researcher_has_household rhh ON rhh.admin_seq = a.seq
|
left join researcher_has_household rhh ON rhh.admin_seq = a.seq and rhh.is_deleted = false
|
||||||
left join household h ON h.seq = rhh.household_seq AND h.is_panel IS true
|
left join household h ON h.seq = rhh.household_seq AND h.is_panel IS true and h.is_deleted = false
|
||||||
where
|
where
|
||||||
ahr.role_id = 'ROLE_RESEARCHER' and ahr.is_deleted = false
|
ahr.role_id = 'ROLE_RESEARCHER'
|
||||||
<if test="searchField == 'name' and searchValue != null and searchValue != ''">
|
<if test="searchField == 'name' and searchValue != null and searchValue != ''">
|
||||||
and a.name LIKE CONCAT('%', #{searchValue}, '%')
|
and a.name LIKE CONCAT('%', #{searchValue}, '%')
|
||||||
</if>
|
</if>
|
||||||
|
|||||||
@@ -93,6 +93,7 @@
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</section>
|
</section>
|
||||||
|
<div class="row paging"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="tab-content" data-tab-value="tab2" th:unless="${activeProfile != 'local'}">
|
<div class="tab-content" data-tab-value="tab2" th:unless="${activeProfile != 'local'}">
|
||||||
@@ -144,6 +145,7 @@
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</section>
|
</section>
|
||||||
|
<div class="row paging"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user