260716_03_ENH: 프로젝트 정보에 발신번호 추가
This commit is contained in:
@@ -16,6 +16,7 @@ public final class ContactConstant {
|
|||||||
public static final String SYSTEM_USER_NAME = "SYSTEM";
|
public static final String SYSTEM_USER_NAME = "SYSTEM";
|
||||||
public static final String DEFAULT_COMPANY_NAME = "KRI";
|
public static final String DEFAULT_COMPANY_NAME = "KRI";
|
||||||
public static final String DEFAULT_USER_TEAM = "S101";
|
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 OUTSOURCE_USER_ROLE = 4000;
|
||||||
public static final int FIELDWORK_USER_ROLE = 9000;
|
public static final int FIELDWORK_USER_ROLE = 9000;
|
||||||
|
|||||||
@@ -56,6 +56,11 @@ public class ProjectInfoDto {
|
|||||||
@Schema(description = "담당 실사")
|
@Schema(description = "담당 실사")
|
||||||
private String ownerFw;
|
private String ownerFw;
|
||||||
|
|
||||||
|
@Size(max = 16)
|
||||||
|
@NotBlank
|
||||||
|
@Schema(description = "발신번호")
|
||||||
|
private String callerTelNum;
|
||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
@Schema(description = "설문지 타입")
|
@Schema(description = "설문지 타입")
|
||||||
private SurveyType surveyTy;
|
private SurveyType surveyTy;
|
||||||
@@ -110,6 +115,7 @@ public class ProjectInfoDto {
|
|||||||
.itrntPrjctCd(entity.getItrntPrjctCd())
|
.itrntPrjctCd(entity.getItrntPrjctCd())
|
||||||
.ownerDept(entity.getOwnerDept())
|
.ownerDept(entity.getOwnerDept())
|
||||||
.ownerFw(entity.getOwnerFw())
|
.ownerFw(entity.getOwnerFw())
|
||||||
|
.callerTelNum(entity.getCallerTelNum())
|
||||||
.surveyTy(SurveyType.fromCode(entity.getSurveyTy()))
|
.surveyTy(SurveyType.fromCode(entity.getSurveyTy()))
|
||||||
.surveyPrjctCd(entity.getSurveyPrjctCd())
|
.surveyPrjctCd(entity.getSurveyPrjctCd())
|
||||||
.surveyUrl(entity.getSurveyUrl())
|
.surveyUrl(entity.getSurveyUrl())
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
package com.kri.contact.server.persistence.entity;
|
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.common.feature.datetime.DateTimeUtil;
|
||||||
import com.kri.contact.server.common.enums.ProjectStatus;
|
import com.kri.contact.server.common.enums.ProjectStatus;
|
||||||
import com.kri.contact.server.common.enums.SurveyType;
|
import com.kri.contact.server.common.enums.SurveyType;
|
||||||
@@ -66,6 +68,11 @@ public class TPrjctEntity {
|
|||||||
@Column(name = "owner_fw", nullable = false, length = 16)
|
@Column(name = "owner_fw", nullable = false, length = 16)
|
||||||
private String ownerFw;
|
private String ownerFw;
|
||||||
|
|
||||||
|
@Size(max = 16)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "caller_telnum", nullable = false, length = 16)
|
||||||
|
private String callerTelNum;
|
||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
@ColumnDefault("0")
|
@ColumnDefault("0")
|
||||||
@Column(name = "survey_ty", nullable = false)
|
@Column(name = "survey_ty", nullable = false)
|
||||||
@@ -134,6 +141,7 @@ public class TPrjctEntity {
|
|||||||
.itrntPrjctCd(dto.getItrntPrjctCd())
|
.itrntPrjctCd(dto.getItrntPrjctCd())
|
||||||
.ownerDept(dto.getOwnerDept())
|
.ownerDept(dto.getOwnerDept())
|
||||||
.ownerFw(dto.getOwnerFw())
|
.ownerFw(dto.getOwnerFw())
|
||||||
|
.callerTelNum(dto.getCallerTelNum())
|
||||||
.surveyTy(dto.getSurveyTy().getCode())
|
.surveyTy(dto.getSurveyTy().getCode())
|
||||||
.surveyPrjctCd(dto.getSurveyPrjctCd())
|
.surveyPrjctCd(dto.getSurveyPrjctCd())
|
||||||
.surveyUrl(dto.getSurveyUrl())
|
.surveyUrl(dto.getSurveyUrl())
|
||||||
@@ -155,6 +163,7 @@ public class TPrjctEntity {
|
|||||||
.itrntPrjctCd(req.getItrntPrjctCd())
|
.itrntPrjctCd(req.getItrntPrjctCd())
|
||||||
.ownerDept(req.getOwnerDept())
|
.ownerDept(req.getOwnerDept())
|
||||||
.ownerFw(req.getOwnerFw())
|
.ownerFw(req.getOwnerFw())
|
||||||
|
.callerTelNum(DEFAULT_CALLER_TELNUM)
|
||||||
.surveyTy(SurveyType.NONE.getCode())
|
.surveyTy(SurveyType.NONE.getCode())
|
||||||
.ff(false)
|
.ff(false)
|
||||||
.useContactSenario(false)
|
.useContactSenario(false)
|
||||||
@@ -169,6 +178,7 @@ public class TPrjctEntity {
|
|||||||
this.prjctStatus = dto.getPrjctStatus().getCode();
|
this.prjctStatus = dto.getPrjctStatus().getCode();
|
||||||
this.ownerDept = dto.getOwnerDept();
|
this.ownerDept = dto.getOwnerDept();
|
||||||
this.ownerFw = dto.getOwnerFw();
|
this.ownerFw = dto.getOwnerFw();
|
||||||
|
this.callerTelNum = dto.getCallerTelNum();
|
||||||
this.surveyTy = dto.getSurveyTy().getCode();
|
this.surveyTy = dto.getSurveyTy().getCode();
|
||||||
this.surveyPrjctCd = dto.getSurveyPrjctCd();
|
this.surveyPrjctCd = dto.getSurveyPrjctCd();
|
||||||
this.surveyUrl = dto.getSurveyUrl();
|
this.surveyUrl = dto.getSurveyUrl();
|
||||||
|
|||||||
Reference in New Issue
Block a user