임산물현황 달 리스트
This commit is contained in:
@@ -7,8 +7,8 @@ import lombok.RequiredArgsConstructor;
|
||||
@RequiredArgsConstructor
|
||||
public enum MonthStatus {
|
||||
NONE("미등록"), // 미등록
|
||||
NOTHING("데이터없음으로 등록"), // 등록할것이 없음
|
||||
REGISTERED("데이터등록"); // 등록됨
|
||||
NOTHING("등록없음"), // 등록할것이 없음
|
||||
REGISTERED("등록완료"); // 등록됨
|
||||
|
||||
private final String desc;
|
||||
}
|
||||
|
||||
@@ -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 "";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -13,4 +13,5 @@ public class GetMonthlyInputStatussCmd {
|
||||
|
||||
private String searchField;
|
||||
private String searchValue;
|
||||
private Long householdSeq;
|
||||
}
|
||||
|
||||
@@ -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'">
|
||||
|
||||
Reference in New Issue
Block a user