中信保诚添加角色导入
Showing
5 changed files
with
15 additions
and
2 deletions
| ... | @@ -23,7 +23,9 @@ public enum ColDesc { | ... | @@ -23,7 +23,9 @@ public enum ColDesc { |
| 23 | COL_CERTIFICATE_TYPE("identityType", "证件类别(1=身份证信息面,2=身份证国徽面,3=执业证正面,4=执业正反面)"), | 23 | COL_CERTIFICATE_TYPE("identityType", "证件类别(1=身份证信息面,2=身份证国徽面,3=执业证正面,4=执业正反面)"), |
| 24 | COL_OCR("idcardOcrSwitch", "OCR开启(1=开启,2=关闭)"), | 24 | COL_OCR("idcardOcrSwitch", "OCR开启(1=开启,2=关闭)"), |
| 25 | COL_POPUP("popup", "文件弹出(1=开启,2=关闭)"), | 25 | COL_POPUP("popup", "文件弹出(1=开启,2=关闭)"), |
| 26 | COL_PRD_CODE("docPrdCode", "文档产品代码"); | 26 | COL_PRD_CODE("docPrdCode", "文档产品代码"), |
| 27 | COL_ROLE("userRole", "角色(1=销售人员,2=投保人,3=被保人)"), | ||
| 28 | ; | ||
| 27 | private String attr; | 29 | private String attr; |
| 28 | private String col; | 30 | private String col; |
| 29 | 31 | ... | ... |
| ... | @@ -91,6 +91,7 @@ public class PhaseUtil { | ... | @@ -91,6 +91,7 @@ public class PhaseUtil { |
| 91 | int identityType = 0; | 91 | int identityType = 0; |
| 92 | int idcardOcrSwitch = 0; | 92 | int idcardOcrSwitch = 0; |
| 93 | int popup = 2; | 93 | int popup = 2; |
| 94 | int userRole = 1; | ||
| 94 | try { | 95 | try { |
| 95 | fileType = Integer.parseInt(orgPhase.get(ColDesc.COL_DOCTYPE.getCol())); | 96 | fileType = Integer.parseInt(orgPhase.get(ColDesc.COL_DOCTYPE.getCol())); |
| 96 | } catch (NumberFormatException e) { | 97 | } catch (NumberFormatException e) { |
| ... | @@ -107,6 +108,10 @@ public class PhaseUtil { | ... | @@ -107,6 +108,10 @@ public class PhaseUtil { |
| 107 | popup = Integer.parseInt(orgPhase.get(ColDesc.COL_POPUP.getCol())); | 108 | popup = Integer.parseInt(orgPhase.get(ColDesc.COL_POPUP.getCol())); |
| 108 | } catch (NumberFormatException e) { | 109 | } catch (NumberFormatException e) { |
| 109 | } | 110 | } |
| 111 | try { | ||
| 112 | userRole = Integer.parseInt(orgPhase.get(ColDesc.COL_ROLE.getCol())); | ||
| 113 | } catch (NumberFormatException e) { | ||
| 114 | } | ||
| 110 | String prdCode = orgPhase.get(ColDesc.COL_PRD_CODE.getCol()); | 115 | String prdCode = orgPhase.get(ColDesc.COL_PRD_CODE.getCol()); |
| 111 | String ttsContent = orgPhase.get(ColDesc.COL_TTS.getCol()); | 116 | String ttsContent = orgPhase.get(ColDesc.COL_TTS.getCol()); |
| 112 | String littlePhaseTitle = orgPhase.get(ColDesc.COL_HINT_TITLE.getCol()); | 117 | String littlePhaseTitle = orgPhase.get(ColDesc.COL_HINT_TITLE.getCol()); |
| ... | @@ -128,6 +133,7 @@ public class PhaseUtil { | ... | @@ -128,6 +133,7 @@ public class PhaseUtil { |
| 128 | .bindUnique(UUID.randomUUID().toString()) | 133 | .bindUnique(UUID.randomUUID().toString()) |
| 129 | .popup(popup) | 134 | .popup(popup) |
| 130 | .docPrdCode(prdCode) | 135 | .docPrdCode(prdCode) |
| 136 | .userRole(userRole) | ||
| 131 | .build(); | 137 | .build(); |
| 132 | 138 | ||
| 133 | } | 139 | } | ... | ... |
| ... | @@ -54,6 +54,8 @@ public class SpeechLittlePhaseAddDTO { | ... | @@ -54,6 +54,8 @@ public class SpeechLittlePhaseAddDTO { |
| 54 | 54 | ||
| 55 | private Integer popup; | 55 | private Integer popup; |
| 56 | 56 | ||
| 57 | private Integer userRole; | ||
| 58 | |||
| 57 | /** | 59 | /** |
| 58 | * 弹出文档对应的product_code | 60 | * 弹出文档对应的product_code |
| 59 | */ | 61 | */ |
| ... | @@ -62,7 +64,7 @@ public class SpeechLittlePhaseAddDTO { | ... | @@ -62,7 +64,7 @@ public class SpeechLittlePhaseAddDTO { |
| 62 | public SpeechLittlePhaseEditDTO transToVO() { | 64 | public SpeechLittlePhaseEditDTO transToVO() { |
| 63 | return SpeechLittlePhaseEditDTO.builder().hintNum(this.littlePhaseSerialNum).hintName(this.littlePhaseName) | 65 | return SpeechLittlePhaseEditDTO.builder().hintNum(this.littlePhaseSerialNum).hintName(this.littlePhaseName) |
| 64 | .hintTitle(this.littlePhaseTitle).tts(this.ttsContent).condition(getConditionMap()).hintType(getHintType()) | 66 | .hintTitle(this.littlePhaseTitle).tts(this.ttsContent).condition(getConditionMap()).hintType(getHintType()) |
| 65 | .bindBefore(this.bindBefore).bindAfter(this.bindAfter).bindUnique(this.bindUnique) | 67 | .bindBefore(this.bindBefore).bindAfter(this.bindAfter).bindUnique(this.bindUnique).userRole(this.userRole) |
| 66 | .classIndex(0).build(); | 68 | .classIndex(0).build(); |
| 67 | } | 69 | } |
| 68 | 70 | ... | ... |
江苏非自保件.xlsx
0 → 100644
No preview for this file type
-
Please register or sign in to post a comment