251210_01_ENH: Project CRUD 구현 및 테스트 진행중

This commit is contained in:
2025-12-10 16:23:10 +09:00
parent 47ce0fffbb
commit 49f4e69372
31 changed files with 1024 additions and 35 deletions

View File

@@ -0,0 +1,95 @@
package com.kri.contact.server.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.kri.contact.server.common.enums.ProjectStatus;
import com.kri.contact.server.common.enums.SurveyType;
import com.kri.contact.server.persistence.entity.TPrjctEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.time.LocalDateTime;
@Getter
@Setter
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "프로젝트 정보")
public class ProjectInfoDto {
@Schema(description = "프로젝트 고유 번호")
private Long prjctIdx;
@Schema(description = "프로젝트 코드")
private String prjctCd;
@Schema(description = "프로젝트 진행 상태")
private ProjectStatus prjctStatus;
@Schema(description = "프로젝트 명")
private String prjctName;
@Schema(description = "인트라넷 프로젝트 코드")
private String itrntPrjctCd;
@Schema(description = "담당 그룹")
private String ownerDept;
@Schema(description = "담당 실사")
private String ownerFw;
@Schema(description = "설문지 타입")
private SurveyType surveyTy;
@Schema(description = "내부 설문 시스템 프로젝트 코드")
private String surveyPrjctCd;
@Schema(description = "설문 URL")
private String surveyUrl;
@Schema(description = "면접원 확인사항 여부")
private Boolean ff;
@Schema(description = "컨택 시나리오 사용 여부")
private Boolean useContactSenario;
@Schema(description = "컨택 시나리오")
private String contactSenario;
@Schema(description = "등록자", accessMode = Schema.AccessMode.READ_ONLY)
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
private String regUser;
@Schema(description = "등록일시", accessMode = Schema.AccessMode.READ_ONLY)
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
private LocalDateTime regDt;
@Schema(description = "수정자", accessMode = Schema.AccessMode.READ_ONLY)
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
private String modUser;
@Schema(description = "수정일시", accessMode = Schema.AccessMode.READ_ONLY)
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
private LocalDateTime modDt;
public static ProjectInfoDto from(TPrjctEntity entity){
return ProjectInfoDto.builder()
.prjctIdx(entity.getPrjctIdx())
.prjctCd(entity.getPrjctCd())
.prjctStatus(ProjectStatus.fromCode(entity.getPrjctStatus()))
.prjctName(entity.getPrjctNm())
.itrntPrjctCd(entity.getItrntPrjctCd())
.ownerDept(entity.getOwnerDept())
.ownerFw(entity.getOwnerFw())
.surveyTy(SurveyType.fromCode(entity.getSurveyTy()))
.surveyPrjctCd(entity.getSurveyPrjctCd())
.surveyUrl(entity.getSurveyUrl())
.ff(entity.getFf())
.useContactSenario(entity.getUseContactSenario())
.contactSenario(entity.getContactSenario())
.regUser(entity.getRegUser())
.regDt(entity.getRegDt())
.modUser(entity.getModUser())
.modDt(entity.getModDt())
.build();
}
}