From 52b962fcf4b99f4604ca45bd75afe432ca97966b Mon Sep 17 00:00:00 2001 From: kangsunlee Date: Mon, 14 Jul 2025 15:01:33 +0900 Subject: [PATCH 1/5] =?UTF-8?q?[BO]=20=EC=88=98=EC=A0=95=20=EB=B0=98?= =?UTF-8?q?=EC=98=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../household/CreateResearcherMappingMapper.xml | 2 +- .../mappers/household/GetHouseholdsStatusMapper.xml | 1 + .../templates/households/tab/forest-product.html | 13 ++++++------- core/src/main/resources/sql/data/04_second_open.sql | 2 ++ 4 files changed, 10 insertions(+), 8 deletions(-) diff --git a/admin/src/main/resources/mappers/household/CreateResearcherMappingMapper.xml b/admin/src/main/resources/mappers/household/CreateResearcherMappingMapper.xml index 2d5810f8..07dc5eb9 100644 --- a/admin/src/main/resources/mappers/household/CreateResearcherMappingMapper.xml +++ b/admin/src/main/resources/mappers/household/CreateResearcherMappingMapper.xml @@ -28,7 +28,7 @@ ( nextval('researcher_has_household_seq'), - #{researcherSeq}, + #{adminSeq}, #{householdSeq}, ) diff --git a/admin/src/main/resources/mappers/household/GetHouseholdsStatusMapper.xml b/admin/src/main/resources/mappers/household/GetHouseholdsStatusMapper.xml index 4e078b48..b1f2c355 100644 --- a/admin/src/main/resources/mappers/household/GetHouseholdsStatusMapper.xml +++ b/admin/src/main/resources/mappers/household/GetHouseholdsStatusMapper.xml @@ -44,6 +44,7 @@ JOIN researcher_has_household rhh ON v.household_seq = rhh.household_seq WHERE TO_CHAR(v.visit_date, 'YYYYMM') = #{cmd.recordMonth} AND rhh.is_deleted = false + AND v.is_deleted = false ) sub WHERE rn <= 2 GROUP BY household_seq diff --git a/admin/src/main/resources/templates/households/tab/forest-product.html b/admin/src/main/resources/templates/households/tab/forest-product.html index a0f5778d..799922c9 100644 --- a/admin/src/main/resources/templates/households/tab/forest-product.html +++ b/admin/src/main/resources/templates/households/tab/forest-product.html @@ -218,22 +218,21 @@ document.querySelectorAll('input[name="forestRemoveIds"]:checked') ).map(el => Number(el.value)); - const totalRows = document.querySelectorAll('input[name="forestRemoveIds"]').length; - if(checkedIds.length <= 0) { alert("임산물을 선택해주세요."); return } - if (checkedIds.length === totalRows) { - alert("등록내용은 최소 1건이 남아있어야 합니다."); - return; - } - etUI.dialog.confirm({ title: '삭제 안내', message: '선택하신 내용을 삭제하시겠습니까?
삭제한 항목은 복구할 수 없습니다.', positiveCallback: function () { + const totalRows = document.querySelectorAll('.row-class').length; + + if (totalRows - checkedIds.length <= 0) { + alert("등록내용은 최소 1건이 남아 있어야 합니다."); + return; + } removeForestProduct(checkedIds); }, }); diff --git a/core/src/main/resources/sql/data/04_second_open.sql b/core/src/main/resources/sql/data/04_second_open.sql index 9f17b874..bf55a707 100644 --- a/core/src/main/resources/sql/data/04_second_open.sql +++ b/core/src/main/resources/sql/data/04_second_open.sql @@ -91,6 +91,8 @@ DELETE FROM uri WHERE id = 'uri.admin.communication.sms'; -- 문자발송 메뉴 숨기기 -- update uri set show_on_navi = false, updated_at = now(), updated_by = 'INIT_DATA' where id ='uri.admin.communication.sms' ; +-- 은행자동이체 내역 칼럼 타입 크기 변경 +ALTER TABLE public.bank_auto_transfer ALTER COLUMN source_purpose TYPE varchar(100) USING source_purpose::varchar(100); -- ==================================================================================================================== -- 문자 발송 From 3329ff389d1db6a02e23be8e2c58fd523da53090 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=ED=98=84=EC=A3=BC?= Date: Mon, 14 Jul 2025 17:14:15 +0900 Subject: [PATCH 2/5] =?UTF-8?q?[FO]=20=EC=97=90=EB=9F=AC=ED=8E=98=EC=9D=B4?= =?UTF-8?q?=EC=A7=80=20=EC=95=84=EC=9D=B4=EC=BD=98=20URL=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/main/resources/templates/layout/layout-error.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front/src/main/resources/templates/layout/layout-error.html b/front/src/main/resources/templates/layout/layout-error.html index 9be74fac..867f5a37 100644 --- a/front/src/main/resources/templates/layout/layout-error.html +++ b/front/src/main/resources/templates/layout/layout-error.html @@ -23,7 +23,7 @@ body, html {height: 100%; font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;} #wrap {height: 100%;} .error-wrap {padding-top: 120px;} - .error-wrap main {display: flex; flex-direction: column; width: 310px; margin: 0 auto; padding-top: 88px; background:url('../../assets/images/common/ico_nodata.svg') center top / 64px no-repeat;} + .error-wrap main {display: flex; flex-direction: column; width: 310px; margin: 0 auto; padding-top: 88px; background:url('/static/assets/images/common/ico_nodata.svg') center top / 64px no-repeat;} .info-msg {display: flex; flex-direction: column; align-items: center;} .info-msg strong {display: block; font-size: 24px; font-weight: 700; color: #212529; line-height: 140%; text-align: center;} .info-msg span {display: block; margin-top: 8px; font-size: 15px; font-weight: 400; color: #495057; line-height: 140%; text-align: center;} From 936dd1ab2889a6b33a60ec530ea438a6b1d5a055 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=ED=98=84=EC=A3=BC?= Date: Mon, 14 Jul 2025 17:18:03 +0900 Subject: [PATCH 3/5] =?UTF-8?q?[FO]=20=EA=B0=9C=EC=9D=B8=EC=A0=95=EB=B3=B4?= =?UTF-8?q?=20=EB=B3=80=EA=B2=BD=20=EB=B9=84=EB=B0=80=EB=B2=88=ED=98=B8=20?= =?UTF-8?q?ayout=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/main/resources/templates/info/user/password.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front/src/main/resources/templates/info/user/password.html b/front/src/main/resources/templates/info/user/password.html index e2662a72..c89a2692 100644 --- a/front/src/main/resources/templates/info/user/password.html +++ b/front/src/main/resources/templates/info/user/password.html @@ -1,5 +1,5 @@ - From 1cb99a42cb516021b400288d68574bcec1e19a1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=ED=98=84=EC=A3=BC?= Date: Mon, 14 Jul 2025 17:35:33 +0900 Subject: [PATCH 4/5] =?UTF-8?q?[FO]=20=EB=92=A4=EB=A1=9C=EA=B0=80=EA=B8=B0?= =?UTF-8?q?+=EC=95=B1=EB=B0=94=20=EB=85=B8=EC=B6=9C=20=EC=BC=80=EC=9D=B4?= =?UTF-8?q?=EC=8A=A4=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/templates/info/bank/banks.html | 2 +- .../main/resources/templates/info/main.html | 2 +- .../templates/info/monthly/monthlys.html | 2 +- .../templates/info/notice/notices.html | 2 +- .../resources/templates/info/notice/{id}.html | 2 +- .../templates/layout/layout-subar.html | 47 ------------------- 6 files changed, 5 insertions(+), 52 deletions(-) delete mode 100644 front/src/main/resources/templates/layout/layout-subar.html diff --git a/front/src/main/resources/templates/info/bank/banks.html b/front/src/main/resources/templates/info/bank/banks.html index 63f76ae1..ae5991fc 100644 --- a/front/src/main/resources/templates/info/bank/banks.html +++ b/front/src/main/resources/templates/info/bank/banks.html @@ -1,5 +1,5 @@ -
diff --git a/front/src/main/resources/templates/info/main.html b/front/src/main/resources/templates/info/main.html index 32c8a579..83bf0bdb 100644 --- a/front/src/main/resources/templates/info/main.html +++ b/front/src/main/resources/templates/info/main.html @@ -1,5 +1,5 @@ - diff --git a/front/src/main/resources/templates/info/monthly/monthlys.html b/front/src/main/resources/templates/info/monthly/monthlys.html index b8fffdf1..69478689 100644 --- a/front/src/main/resources/templates/info/monthly/monthlys.html +++ b/front/src/main/resources/templates/info/monthly/monthlys.html @@ -1,5 +1,5 @@ -
diff --git a/front/src/main/resources/templates/info/notice/notices.html b/front/src/main/resources/templates/info/notice/notices.html index a91b045c..855484a1 100644 --- a/front/src/main/resources/templates/info/notice/notices.html +++ b/front/src/main/resources/templates/info/notice/notices.html @@ -1,5 +1,5 @@ -
diff --git a/front/src/main/resources/templates/info/notice/{id}.html b/front/src/main/resources/templates/info/notice/{id}.html index 7bdd7dc0..a56633a6 100644 --- a/front/src/main/resources/templates/info/notice/{id}.html +++ b/front/src/main/resources/templates/info/notice/{id}.html @@ -1,5 +1,5 @@ -
diff --git a/front/src/main/resources/templates/layout/layout-subar.html b/front/src/main/resources/templates/layout/layout-subar.html deleted file mode 100644 index 0f987a7c..00000000 --- a/front/src/main/resources/templates/layout/layout-subar.html +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - -
- -
- -
- page content -
- -
-
- -
- -
-
- - -
-
- - - - -
- -
- - - From cb8525c7b2b6084e1f685b3c36bf792bbd572efe Mon Sep 17 00:00:00 2001 From: kangsunlee Date: Mon, 14 Jul 2025 17:46:15 +0900 Subject: [PATCH 5/5] =?UTF-8?q?[BO]=20=EC=88=98=EC=A0=95=20=EB=B0=98?= =?UTF-8?q?=EC=98=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../adapters/web/UpdateNoticeController.java | 6 ++- .../SaveHouseholdVisitInfoDao.java | 31 +++++++----- .../SaveHouseholdVisitInfoMapper.java | 2 + .../adpaters/persistence/ResearcherDao.java | 4 ++ .../persistence/ResearcherMapper.java | 1 + .../model/ResearchersVisitDetailReqVO.java | 3 +- .../GetHouseholdVisitInfosMapper.xml | 2 +- .../SaveHouseholdVisitInfoMapper.xml | 11 +++++ .../mappers/researcher/ResearcherMapper.xml | 20 ++++++-- .../common/modal-household-mapping.html | 7 +-- .../communication/notice/notices.html | 37 ++++++-------- .../communication/suggestions/{id}.html | 2 +- .../households/modal/modal-visit-info.html | 2 +- .../households/tab/household-visit.html | 3 +- .../templates/researcher/detail.html | 13 ++++- .../modal/modal-household-visit.html | 49 +++++++++++-------- 16 files changed, 121 insertions(+), 72 deletions(-) diff --git a/admin/src/main/java/app/module/admin/usecase/communication/notice/updateNotice/adapters/web/UpdateNoticeController.java b/admin/src/main/java/app/module/admin/usecase/communication/notice/updateNotice/adapters/web/UpdateNoticeController.java index 35996152..d296b14d 100644 --- a/admin/src/main/java/app/module/admin/usecase/communication/notice/updateNotice/adapters/web/UpdateNoticeController.java +++ b/admin/src/main/java/app/module/admin/usecase/communication/notice/updateNotice/adapters/web/UpdateNoticeController.java @@ -43,8 +43,10 @@ class UpdateNoticeController { updateFilePortIn.operate( new UpdateFileCmd( reqVO.getId(), - reqVO.getFileMappingId().stream().map(Long::parseLong).toList(), - FileUploadType.NOTICE) + reqVO.getFileMappingId() != null + ? reqVO.getFileMappingId().stream().map(Long::parseLong).toList() + : List.of(), + FileUploadType.NOTICE) ); updateNoticePortIn.operate( diff --git a/admin/src/main/java/app/module/admin/usecase/household/tab/householdVisit/saveHouseholdVisitInfo/adapters/persistence/SaveHouseholdVisitInfoDao.java b/admin/src/main/java/app/module/admin/usecase/household/tab/householdVisit/saveHouseholdVisitInfo/adapters/persistence/SaveHouseholdVisitInfoDao.java index d008d48e..75aff5ef 100644 --- a/admin/src/main/java/app/module/admin/usecase/household/tab/householdVisit/saveHouseholdVisitInfo/adapters/persistence/SaveHouseholdVisitInfoDao.java +++ b/admin/src/main/java/app/module/admin/usecase/household/tab/householdVisit/saveHouseholdVisitInfo/adapters/persistence/SaveHouseholdVisitInfoDao.java @@ -10,19 +10,24 @@ import org.springframework.transaction.annotation.Transactional; @Repository @RequiredArgsConstructor class SaveHouseholdVisitInfoDao implements SaveHouseholdVisitInfoPortOut { - private final SaveHouseholdVisitInfoMapper mapper; + private final SaveHouseholdVisitInfoMapper mapper; - @Override - @Transactional - public void operate(SaveHouseholdVisitInfoCmd cmd) { - if (cmd.getVisitInfoId() != null) { - mapper.findById(cmd.getHouseholdSeq()) - .ifPresentOrElse( - v -> mapper.updateHouseholdVisitInfo(AuditUtil.update(cmd)), - () -> { throw new IllegalArgumentException("방문정보가 없습니다."); } - ); - } else { - mapper.createHouseholdVisitInfo(AuditUtil.create(cmd)); + @Override + @Transactional + public void operate(SaveHouseholdVisitInfoCmd cmd) { + // 답례품 전달 완료일 경우 기존 방문들 중 true → false로 변경 + if (Boolean.TRUE.equals(cmd.getIsGiftSent())) { + mapper.updateGiftSentToFalse(AuditUtil.update(cmd)); + } + + if (cmd.getVisitInfoId() != null) { + mapper.findById(cmd.getHouseholdSeq()) + .ifPresentOrElse(v -> mapper.updateHouseholdVisitInfo(AuditUtil.update(cmd)), + () -> { + throw new IllegalArgumentException("방문정보가 없습니다."); + }); + } else { + mapper.createHouseholdVisitInfo(AuditUtil.create(cmd)); + } } - } } \ No newline at end of file diff --git a/admin/src/main/java/app/module/admin/usecase/household/tab/householdVisit/saveHouseholdVisitInfo/adapters/persistence/SaveHouseholdVisitInfoMapper.java b/admin/src/main/java/app/module/admin/usecase/household/tab/householdVisit/saveHouseholdVisitInfo/adapters/persistence/SaveHouseholdVisitInfoMapper.java index 294a2f83..e26a152b 100644 --- a/admin/src/main/java/app/module/admin/usecase/household/tab/householdVisit/saveHouseholdVisitInfo/adapters/persistence/SaveHouseholdVisitInfoMapper.java +++ b/admin/src/main/java/app/module/admin/usecase/household/tab/householdVisit/saveHouseholdVisitInfo/adapters/persistence/SaveHouseholdVisitInfoMapper.java @@ -9,4 +9,6 @@ public interface SaveHouseholdVisitInfoMapper { Optional findById(Long id); void createHouseholdVisitInfo(SaveHouseholdVisitInfoCmd cmd); void updateHouseholdVisitInfo(SaveHouseholdVisitInfoCmd cmd); + void updateGiftSentToFalse(SaveHouseholdVisitInfoCmd cmd); + } diff --git a/admin/src/main/java/app/module/admin/usecase/researcher/adpaters/persistence/ResearcherDao.java b/admin/src/main/java/app/module/admin/usecase/researcher/adpaters/persistence/ResearcherDao.java index d2e68579..32274c55 100644 --- a/admin/src/main/java/app/module/admin/usecase/researcher/adpaters/persistence/ResearcherDao.java +++ b/admin/src/main/java/app/module/admin/usecase/researcher/adpaters/persistence/ResearcherDao.java @@ -67,6 +67,10 @@ public class ResearcherDao implements ResearcherPortOut { @Override @UpdateCommand public Integer updateVisitHousehold(ResearchersVisitDetailReqVO reqVO) { + if(Boolean.TRUE.equals(reqVO.getIsGiftSent())) { + researcherMapper.updateGiftSentToFalse(reqVO); + } + return researcherMapper.updateVisitHousehold(reqVO); } diff --git a/admin/src/main/java/app/module/admin/usecase/researcher/adpaters/persistence/ResearcherMapper.java b/admin/src/main/java/app/module/admin/usecase/researcher/adpaters/persistence/ResearcherMapper.java index ad01f66c..809977dc 100644 --- a/admin/src/main/java/app/module/admin/usecase/researcher/adpaters/persistence/ResearcherMapper.java +++ b/admin/src/main/java/app/module/admin/usecase/researcher/adpaters/persistence/ResearcherMapper.java @@ -21,6 +21,7 @@ public interface ResearcherMapper { List visitHouseholdList(ResearchersDetailReqVO reqVO); ResearchersHouseholdVisitDto visitHouseholdDetail(Integer id); Long visitHouseholdListCountAll(ResearchersDetailReqVO reqVO); + void updateGiftSentToFalse(ResearchersVisitDetailReqVO reqVO); Integer updateVisitHousehold(ResearchersVisitDetailReqVO reqVO); VisitHouseholdPercentageDto selectVisitHouseholdPercentage(ResearchersDetailReqVO reqVO); Integer visitHouseholdDelete(@Param("selectIds") List selectIds,@Param("deletedBy") String deletedBy); diff --git a/admin/src/main/java/app/module/admin/usecase/researcher/adpaters/web/model/ResearchersVisitDetailReqVO.java b/admin/src/main/java/app/module/admin/usecase/researcher/adpaters/web/model/ResearchersVisitDetailReqVO.java index 0aef8900..9e120802 100644 --- a/admin/src/main/java/app/module/admin/usecase/researcher/adpaters/web/model/ResearchersVisitDetailReqVO.java +++ b/admin/src/main/java/app/module/admin/usecase/researcher/adpaters/web/model/ResearchersVisitDetailReqVO.java @@ -12,8 +12,9 @@ import java.time.LocalDateTime; @Setter public class ResearchersVisitDetailReqVO extends AuditCommand { private Integer id; + private Long householdSeq; private LocalDate visitDate; private ManagementType managementType; private String content; - private String isGiftSent; + private Boolean isGiftSent; } diff --git a/admin/src/main/resources/mappers/household/GetHouseholdVisitInfosMapper.xml b/admin/src/main/resources/mappers/household/GetHouseholdVisitInfosMapper.xml index f5186220..d7397d73 100644 --- a/admin/src/main/resources/mappers/household/GetHouseholdVisitInfosMapper.xml +++ b/admin/src/main/resources/mappers/household/GetHouseholdVisitInfosMapper.xml @@ -17,6 +17,6 @@ WHERE household_seq = #{householdSeq} AND TO_CHAR(visit_date, 'YYYYMM') = #{recordMonth} AND hv.is_deleted = false - ORDER BY hv.created_at + ORDER BY hv.visit_date \ No newline at end of file diff --git a/admin/src/main/resources/mappers/household/SaveHouseholdVisitInfoMapper.xml b/admin/src/main/resources/mappers/household/SaveHouseholdVisitInfoMapper.xml index b6f15d51..cd9f2cca 100644 --- a/admin/src/main/resources/mappers/household/SaveHouseholdVisitInfoMapper.xml +++ b/admin/src/main/resources/mappers/household/SaveHouseholdVisitInfoMapper.xml @@ -37,6 +37,17 @@ WHERE id = #{visitInfoId} + + /* updateGiftSentToFalse : 동일 household_seq 의 다른 방문 중 전달여부 true → false */ + UPDATE household_visit + SET is_gift_sent = false + WHERE household_seq = #{householdSeq} + AND TO_CHAR(visit_date, 'YYYYMM') = TO_CHAR(TO_DATE(#{visitDate}, 'YYYY-MM-DD'), 'YYYYMM') + AND is_gift_sent = true + AND (#{visitInfoId} IS NULL OR id != #{visitInfoId}) + AND is_deleted = false + + + + /* updateGiftSentToFalse : 동일 household_seq 의 다른 방문 중 전달여부 true → false */ + UPDATE household_visit + SET is_gift_sent = false + WHERE household_seq = #{householdSeq} + AND TO_CHAR(visit_date, 'YYYYMM') = TO_CHAR(#{visitDate}, 'YYYYMM') + AND is_gift_sent = true + AND (#{id} IS NULL OR id != #{id}) + AND is_deleted = false + + update household_visit set visit_date = #{visitDate}, diff --git a/admin/src/main/resources/templates/common/modal-household-mapping.html b/admin/src/main/resources/templates/common/modal-household-mapping.html index 5e250e2a..073890fb 100644 --- a/admin/src/main/resources/templates/common/modal-household-mapping.html +++ b/admin/src/main/resources/templates/common/modal-household-mapping.html @@ -121,7 +121,7 @@ -
+
@@ -133,7 +133,7 @@
- +
@@ -215,7 +215,7 @@ `); }); // Pagination 구성하기 - const paging = $('.paging'); + const paging = $('.mapping-paging'); paging.empty(); paging.append( uiUtil.getPagingUI(pageNo, response.size, response.totalPages, @@ -257,6 +257,7 @@ function (response) { if (response === selectedIds.length) { alert('맵핑 완료되었습니다.'); + getHouseholdList(0); } document.querySelector(".modal01").ui.close(); }, diff --git a/admin/src/main/resources/templates/communication/notice/notices.html b/admin/src/main/resources/templates/communication/notice/notices.html index 9d463823..f620d145 100644 --- a/admin/src/main/resources/templates/communication/notice/notices.html +++ b/admin/src/main/resources/templates/communication/notice/notices.html @@ -20,27 +20,21 @@

- 검색필드 + 공지사항

-
- -
-
- -
-
-

- 검색필드 -

-
-
-
- +
+
+ +
+
+
+ +
@@ -48,18 +42,17 @@

- 검색필드 + 노출여부

-
-
diff --git a/admin/src/main/resources/templates/communication/suggestions/{id}.html b/admin/src/main/resources/templates/communication/suggestions/{id}.html index 77298298..78a0e569 100644 --- a/admin/src/main/resources/templates/communication/suggestions/{id}.html +++ b/admin/src/main/resources/templates/communication/suggestions/{id}.html @@ -54,7 +54,7 @@

내용

- +
diff --git a/admin/src/main/resources/templates/households/modal/modal-visit-info.html b/admin/src/main/resources/templates/households/modal/modal-visit-info.html index 5f5f997e..759b0f0d 100644 --- a/admin/src/main/resources/templates/households/modal/modal-visit-info.html +++ b/admin/src/main/resources/templates/households/modal/modal-visit-info.html @@ -36,7 +36,7 @@
+ placeholder="방문일을 입력해주세요" /> 달력 diff --git a/admin/src/main/resources/templates/households/tab/household-visit.html b/admin/src/main/resources/templates/households/tab/household-visit.html index 28398083..59b357cc 100644 --- a/admin/src/main/resources/templates/households/tab/household-visit.html +++ b/admin/src/main/resources/templates/households/tab/household-visit.html @@ -13,7 +13,7 @@ -
@@ -54,6 +54,7 @@ const tbody = $('.tab-content.household-visit tbody'); tbody.empty(); + $('#visitAddBtn').toggle(response.length < 2); if(response.length === 0) { tbody.append(`등록이 필요합니다.`); diff --git a/admin/src/main/resources/templates/researcher/detail.html b/admin/src/main/resources/templates/researcher/detail.html index 30c474ec..872f6851 100644 --- a/admin/src/main/resources/templates/researcher/detail.html +++ b/admin/src/main/resources/templates/researcher/detail.html @@ -177,6 +177,12 @@ + +
\ No newline at end of file