260716_03_ENH: 프로젝트 정보에 발신번호 추가 #3

Merged
gitadmin merged 1 commits from develop into master 2026-07-16 15:21:20 +09:00
3 changed files with 17 additions and 0 deletions
Showing only changes of commit 08ba14c808 - Show all commits

View File

@@ -16,6 +16,7 @@ public final class ContactConstant {
public static final String SYSTEM_USER_NAME = "SYSTEM";
public static final String DEFAULT_COMPANY_NAME = "KRI";
public static final String DEFAULT_USER_TEAM = "S101";
public static final String DEFAULT_CALLER_TELNUM = "0234155100";
public static final int OUTSOURCE_USER_ROLE = 4000;
public static final int FIELDWORK_USER_ROLE = 9000;

View File

@@ -56,6 +56,11 @@ public class ProjectInfoDto {
@Schema(description = "담당 실사")
private String ownerFw;
@Size(max = 16)
@NotBlank
@Schema(description = "발신번호")
private String callerTelNum;
@NotNull
@Schema(description = "설문지 타입")
private SurveyType surveyTy;
@@ -110,6 +115,7 @@ public class ProjectInfoDto {
.itrntPrjctCd(entity.getItrntPrjctCd())
.ownerDept(entity.getOwnerDept())
.ownerFw(entity.getOwnerFw())
.callerTelNum(entity.getCallerTelNum())
.surveyTy(SurveyType.fromCode(entity.getSurveyTy()))
.surveyPrjctCd(entity.getSurveyPrjctCd())
.surveyUrl(entity.getSurveyUrl())

View File

@@ -1,5 +1,7 @@
package com.kri.contact.server.persistence.entity;
import static com.kri.contact.server.common.consts.ContactConstant.DEFAULT_CALLER_TELNUM;
import com.kri.common.feature.datetime.DateTimeUtil;
import com.kri.contact.server.common.enums.ProjectStatus;
import com.kri.contact.server.common.enums.SurveyType;
@@ -66,6 +68,11 @@ public class TPrjctEntity {
@Column(name = "owner_fw", nullable = false, length = 16)
private String ownerFw;
@Size(max = 16)
@NotNull
@Column(name = "caller_telnum", nullable = false, length = 16)
private String callerTelNum;
@NotNull
@ColumnDefault("0")
@Column(name = "survey_ty", nullable = false)
@@ -134,6 +141,7 @@ public class TPrjctEntity {
.itrntPrjctCd(dto.getItrntPrjctCd())
.ownerDept(dto.getOwnerDept())
.ownerFw(dto.getOwnerFw())
.callerTelNum(dto.getCallerTelNum())
.surveyTy(dto.getSurveyTy().getCode())
.surveyPrjctCd(dto.getSurveyPrjctCd())
.surveyUrl(dto.getSurveyUrl())
@@ -155,6 +163,7 @@ public class TPrjctEntity {
.itrntPrjctCd(req.getItrntPrjctCd())
.ownerDept(req.getOwnerDept())
.ownerFw(req.getOwnerFw())
.callerTelNum(DEFAULT_CALLER_TELNUM)
.surveyTy(SurveyType.NONE.getCode())
.ff(false)
.useContactSenario(false)
@@ -169,6 +178,7 @@ public class TPrjctEntity {
this.prjctStatus = dto.getPrjctStatus().getCode();
this.ownerDept = dto.getOwnerDept();
this.ownerFw = dto.getOwnerFw();
this.callerTelNum = dto.getCallerTelNum();
this.surveyTy = dto.getSurveyTy().getCode();
this.surveyPrjctCd = dto.getSurveyPrjctCd();
this.surveyUrl = dto.getSurveyUrl();