[FO] 일계부 최근등록일 일괄 수정

This commit is contained in:
김현주
2025-06-23 15:53:35 +09:00
parent 510ea5ec65
commit e3a5f73d77
14 changed files with 106 additions and 42 deletions

View File

@@ -114,4 +114,15 @@
]]>
</select>
<select id="getLatestDate"
resultType="app.module.front.usecase.daily.calendar.adapters.persistence.model.DailyRecordStatusDto">
select dr.id as daily_id
, dr.day_group_no, dr.start_date, dr.end_date
from daily_record dr
where dr.is_deleted = false
and dr.household_seq = #{householdSeq}
order by dr.record_month desc, dr.day_group_no desc
limit 1
</select>
</mapper>

View File

@@ -36,8 +36,8 @@ kri.menu.open = function() {
'/menu',
{},
function(rstData, status) {
if (rstData != null && rstData.daily !== undefined && rstData.daily !== null) {
$('.menuModal').find('.date').html('최근등록 : <span>' + rstData.daily + '</span>');
if (rstData != null && rstData.dailyLatest !== undefined && rstData.dailyLatest !== null) {
$('.menuModal').find('.date').html('최근등록 : <span>' + rstData.dailyLatest + '</span>');
} else {
$('.menuModal').find('.date').html('등록된 일계부가 없습니다.');
}

View File

@@ -5,18 +5,19 @@
<div layout:fragment="content" th:classappend="'mypage-wrap bg-gray'">
<main id="content" role="main">
<!-- alert-box 클래스 리스트
<!--/* alert-box 클래스 리스트
fail : 실패(빨강)
warning : 경고(노랑)
success : 성공(초록)
info : 인포(파랑)
-->
<article class="alert-box warning" > <!-- TODO Controller 단에서 처리 필요. 임시 항상 노출로 수정 -->
*/-->
<article class="alert-box warning"
th:if="${dailyDataNone}">
<p class="tit"><strong th:text="${userInfo?.ownerName}">홍길동</strong>님,</p>
<span class="txt">
일계부를 등록하지 않은 날짜가 있습니다. <br>
정확한 조사를 위해 꾸준히 입력해 주세요.
</span>
일계부를 등록하지 않은 날짜가 있습니다. <br>
정확한 조사를 위해 꾸준히 입력해 주세요.
</span>
</article>
<section class="info-top-area">
@@ -24,9 +25,9 @@
<dl class="info-card">
<dt class="name" th:text="${userInfo?.ownerName}"></dt>
<dd class="location" th:text="${userInfo?.address}"></dd><!-- TODO 임가 주소 위치 임시로 . 처리함. -->
<dd class="date" th:if="${userInfo.latestRegisterStartDate != null or !#strings.isEmpty(userInfo.latestRegisterStartDate)}">
최근등록 :<span th:text="${#temporals.format(userInfo.latestRegisterStartDate, 'M월 d일')+'-'+#temporals.format(userInfo.latestRegisterEndDate, 'd일')}"></span></dd>
<dd class="date" th:if="${userInfo.latestRegisterStartDate == null or #strings.isEmpty(userInfo.latestRegisterStartDate)}">등록된 일계부가 없습니다.</dd>
<dd class="date" th:if="${not #strings.isEmpty(dailyLatest)}">
최근등록 : <span th:text="${dailyLatest}"></span></dd>
<dd class="date" th:if="${#strings.isEmpty(dailyLatest)}">등록된 일계부가 없습니다.</dd>
</dl>
<th:block th:if="${notice != null}">
<a th:href="@{'/info/notice/' + ${notice.id}}" class="notice-box">

View File

@@ -11,7 +11,7 @@
info : 인포(파랑)
*/-->
<article class="alert-box warning"
th:if="${dataNone}">
th:if="${dailyDataNone}">
<p class="tit"
sec:authorize="isAuthenticated()"><strong th:text="${#authentication.principal.ownerName}">홍길동</strong>님,</p>
<span class="txt">