[BO] 일계부 등록 현황의 금일 데이터 없음
This commit is contained in:
@@ -27,6 +27,8 @@ public class AuditCommand {
|
||||
public void update() {
|
||||
this.updatedAt = LocalDateTime.now();
|
||||
this.updatedBy = getCurrentUsername();
|
||||
this.deletedAt = LocalDateTime.now();
|
||||
this.deletedBy = getCurrentUsername();
|
||||
}
|
||||
|
||||
public void delete() {
|
||||
|
||||
@@ -77,6 +77,7 @@ public class DailyRecordDao implements DailyRecordPortOut {
|
||||
);
|
||||
|
||||
if ("ALL".equals(targetType)) {
|
||||
// 전체 입력상태 변경
|
||||
String allStatus = this.getUpdateAllStatus(recordMonth, dayGroupNo, householdSeq);
|
||||
if (allStatus != null) {
|
||||
command.setAllStatus(allStatus);
|
||||
@@ -88,7 +89,11 @@ public class DailyRecordDao implements DailyRecordPortOut {
|
||||
}
|
||||
|
||||
} else {
|
||||
// 항목 입력상태 변경
|
||||
dailyRecordMapper.updateDailyRecordStatus(command);
|
||||
|
||||
// 전체 입력상태 변경
|
||||
this.updateByAllStatus(command.getRecordMonth(), command.getDayGroupNo(), command.getHouseholdSeq());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -8,8 +8,10 @@ public interface DailyRecordPortIn {
|
||||
/**
|
||||
* 일계부 항목 조회
|
||||
*
|
||||
* @param reqVO 검색 조건
|
||||
* @return 항목 상세
|
||||
* @param recordMonth
|
||||
* @param dayGroupNo
|
||||
* @param householdSeq
|
||||
* @return 항목 상세
|
||||
*/
|
||||
DailyRecordDto detail(String recordMonth, Integer dayGroupNo, Long householdSeq);
|
||||
|
||||
|
||||
@@ -15,7 +15,16 @@ public class UpdateDailyRecordStatusCmd extends AuditCommand {
|
||||
private Integer dayGroupNo;
|
||||
private Long householdSeq;
|
||||
|
||||
/**
|
||||
* 전체 입력상태
|
||||
*/
|
||||
private String allStatus;
|
||||
/**
|
||||
* 변경 대상
|
||||
*/
|
||||
private String targetType;
|
||||
/**
|
||||
* 변경 대상 입력상태
|
||||
*/
|
||||
private String targetStatus;
|
||||
}
|
||||
|
||||
@@ -87,7 +87,6 @@
|
||||
, all_status = #{allStatus}
|
||||
</if>
|
||||
<if test="targetType != null and targetType != ''">
|
||||
/* TODO 개별 상태값 변경 */
|
||||
<choose>
|
||||
<when test="targetType eq 'INCOME'">
|
||||
, income_status = #{targetStatus}
|
||||
|
||||
Reference in New Issue
Block a user