260812_01_ENH: 배정·진행 현황 개선 및 예약/이벤트 이력 기능 추가
- 프로젝트별 외주사·필드워커 배정 현황 API 추가 - 진행 현황을 리스트 배정 기준으로 변경 및 미배정 집계 추가 - 마지막 이벤트 일자 필터·정렬 추가 - 예약 알림·기간 조회·확인 API 추가 - 이벤트 이력 단건 삭제 기능 추가 - 일반 리스트 헤더 ID를 101부터 생성 - 비밀번호 검증 규칙 완화
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package com.kri.contact.server.dto.assign;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Builder;
|
||||
import lombok.Getter;
|
||||
|
||||
@Getter
|
||||
@Builder
|
||||
@Schema(description = "외주사별 리스트 배정 현황")
|
||||
public class CompanyAssignSummaryItemDto {
|
||||
|
||||
private String cmpnId;
|
||||
private String cmpnAlias;
|
||||
private long assignedCount;
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.kri.contact.server.dto.assign;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Builder;
|
||||
import lombok.Getter;
|
||||
|
||||
@Getter
|
||||
@Builder
|
||||
@Schema(description = "필드워커별 리스트 배정 현황")
|
||||
public class FieldworkAssignSummaryItemDto {
|
||||
|
||||
private String userId;
|
||||
private String userName;
|
||||
private String userCmpn;
|
||||
private long assignedCount;
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.kri.contact.server.dto.assign;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import java.util.List;
|
||||
import lombok.Builder;
|
||||
import lombok.Getter;
|
||||
|
||||
@Getter
|
||||
@Builder
|
||||
@Schema(description = "프로젝트 외주사 리스트 배정 요약")
|
||||
public class ProjectCompanyAssignSummaryDto {
|
||||
|
||||
private long totalCount;
|
||||
private long unassignedCount;
|
||||
private List<CompanyAssignSummaryItemDto> assignees;
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.kri.contact.server.dto.assign;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import java.util.List;
|
||||
import lombok.Builder;
|
||||
import lombok.Getter;
|
||||
|
||||
@Getter
|
||||
@Builder
|
||||
@Schema(description = "프로젝트 필드워커 리스트 배정 요약")
|
||||
public class ProjectFieldworkAssignSummaryDto {
|
||||
|
||||
private long totalCount;
|
||||
private long unassignedCount;
|
||||
private List<FieldworkAssignSummaryItemDto> assignees;
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package com.kri.contact.server.dto.list;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.kri.contact.server.common.enums.ResultCodeType;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.AssertTrue;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import java.time.LocalDateTime;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
@NoArgsConstructor
|
||||
@Schema(description = "마지막 이벤트 일자 필터 조건")
|
||||
public class LastEventDateRangeDto {
|
||||
|
||||
@NotNull
|
||||
@Schema(description = "결과 코드 타입")
|
||||
private ResultCodeType resultCodeType;
|
||||
|
||||
@Schema(description = "프로젝트 설문 고유번호. SURVEY 타입인 경우 필수")
|
||||
private Long prjctSurveyIdx;
|
||||
|
||||
@Schema(description = "시작 일시")
|
||||
private LocalDateTime startDate;
|
||||
|
||||
@Schema(description = "종료 일시")
|
||||
private LocalDateTime endDate;
|
||||
|
||||
@JsonIgnore
|
||||
@AssertTrue(message = "SURVEY 타입은 prjctSurveyIdx가 필요합니다.")
|
||||
public boolean isSurveyTargetValid() {
|
||||
return resultCodeType != ResultCodeType.SURVEY || prjctSurveyIdx != null;
|
||||
}
|
||||
}
|
||||
@@ -47,6 +47,9 @@ public class ListFilterDto {
|
||||
@Schema(description = "List 결과값 필터 key: ResultCodeType code, value: result code list")
|
||||
private Map<ResultCodeType, Set<Integer>> resultCodeMap;
|
||||
|
||||
@Schema(description = "마지막 이벤트 일자 필터 조건")
|
||||
private List<@Valid LastEventDateRangeDto> lastEventDateRange;
|
||||
|
||||
@Schema(description = "설문별 결과 필터 조건")
|
||||
private List<@Valid ListSurveyResultFilterConditionDto> surveyResultConditions;
|
||||
|
||||
|
||||
@@ -16,6 +16,8 @@ public class ListReserveDto {
|
||||
private Long listResveIdx;
|
||||
@Schema(description = "prjctIdx")
|
||||
private Long prjctIdx;
|
||||
@Schema(description = "프로젝트명")
|
||||
private String prjctName;
|
||||
@Schema(description = "sid")
|
||||
private String sid;
|
||||
@Schema(description = "memo")
|
||||
@@ -32,9 +34,14 @@ public class ListReserveDto {
|
||||
private LocalDateTime regDt;
|
||||
|
||||
public static ListReserveDto from(TListResveEntity entity) {
|
||||
return from(entity, null);
|
||||
}
|
||||
|
||||
public static ListReserveDto from(TListResveEntity entity, String prjctName) {
|
||||
return ListReserveDto.builder()
|
||||
.listResveIdx(entity.getListResveIdx())
|
||||
.prjctIdx(entity.getPrjctIdx())
|
||||
.prjctName(prjctName)
|
||||
.sid(entity.getSid())
|
||||
.memo(entity.getMemo())
|
||||
.cnfirm(entity.getCnfirm())
|
||||
|
||||
Reference in New Issue
Block a user