임산물현황 달 리스트

This commit is contained in:
주우성
2025-06-14 20:39:34 +09:00
parent 944b9475b1
commit cffe52132a
6 changed files with 30 additions and 20 deletions

View File

@@ -7,8 +7,8 @@ import lombok.RequiredArgsConstructor;
@RequiredArgsConstructor
public enum MonthStatus {
NONE("미등록"), // 미등록
NOTHING("데이터없음으로 등록"), // 등록할것이 없음
REGISTERED("데이터등록"); // 등록됨
NOTHING("등록없음"), // 등록할것이 없음
REGISTERED("등록완료"); // 등록됨
private final String desc;
}

View File

@@ -25,4 +25,13 @@ public class GetMonthlyInputStatuss {
private String createdBy;
private LocalDateTime updatedAt;
private String updatedBy;
public String getKoreanMonth() {
if (month != null && month.contains("-")) {
String[] parts = month.split("-");
return parts[0] + "년 " + Integer.parseInt(parts[1]) + "월";
}
return "";
}
}

View File

@@ -13,4 +13,5 @@ public class GetMonthlyInputStatussCmd {
private String searchField;
private String searchValue;
private Long householdSeq;
}

View File

@@ -22,6 +22,11 @@
FROM monthly_input_status a
WHERE a.is_deleted = false
<if test="cmd.householdSeq != null">
AND a.household_seq = ${cmd.householdSeq}
</if>
<if test="cmd.searchField != null and cmd.searchField != ''">
<choose>
<when test="cmd.searchField eq 'month'">