509b2294 by 余德军

中信保诚添加角色导入

1 parent d6ee6183
......@@ -23,7 +23,9 @@ public enum ColDesc {
COL_CERTIFICATE_TYPE("identityType", "证件类别(1=身份证信息面,2=身份证国徽面,3=执业证正面,4=执业正反面)"),
COL_OCR("idcardOcrSwitch", "OCR开启(1=开启,2=关闭)"),
COL_POPUP("popup", "文件弹出(1=开启,2=关闭)"),
COL_PRD_CODE("docPrdCode", "文档产品代码");
COL_PRD_CODE("docPrdCode", "文档产品代码"),
COL_ROLE("userRole", "角色(1=销售人员,2=投保人,3=被保人)"),
;
private String attr;
private String col;
......
......@@ -91,6 +91,7 @@ public class PhaseUtil {
int identityType = 0;
int idcardOcrSwitch = 0;
int popup = 2;
int userRole = 1;
try {
fileType = Integer.parseInt(orgPhase.get(ColDesc.COL_DOCTYPE.getCol()));
} catch (NumberFormatException e) {
......@@ -107,6 +108,10 @@ public class PhaseUtil {
popup = Integer.parseInt(orgPhase.get(ColDesc.COL_POPUP.getCol()));
} catch (NumberFormatException e) {
}
try {
userRole = Integer.parseInt(orgPhase.get(ColDesc.COL_ROLE.getCol()));
} catch (NumberFormatException e) {
}
String prdCode = orgPhase.get(ColDesc.COL_PRD_CODE.getCol());
String ttsContent = orgPhase.get(ColDesc.COL_TTS.getCol());
String littlePhaseTitle = orgPhase.get(ColDesc.COL_HINT_TITLE.getCol());
......@@ -128,6 +133,7 @@ public class PhaseUtil {
.bindUnique(UUID.randomUUID().toString())
.popup(popup)
.docPrdCode(prdCode)
.userRole(userRole)
.build();
}
......
......@@ -54,6 +54,8 @@ public class SpeechLittlePhaseAddDTO {
private Integer popup;
private Integer userRole;
/**
* 弹出文档对应的product_code
*/
......@@ -62,7 +64,7 @@ public class SpeechLittlePhaseAddDTO {
public SpeechLittlePhaseEditDTO transToVO() {
return SpeechLittlePhaseEditDTO.builder().hintNum(this.littlePhaseSerialNum).hintName(this.littlePhaseName)
.hintTitle(this.littlePhaseTitle).tts(this.ttsContent).condition(getConditionMap()).hintType(getHintType())
.bindBefore(this.bindBefore).bindAfter(this.bindAfter).bindUnique(this.bindUnique)
.bindBefore(this.bindBefore).bindAfter(this.bindAfter).bindUnique(this.bindUnique).userRole(this.userRole)
.classIndex(0).build();
}
......
......@@ -33,4 +33,7 @@ public class SpeechLittlePhaseEditDTO {
private Integer classIndex;
private Integer userRole;
}
......
No preview for this file type
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!