Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
sunchenjie
/
ImportSpeechPhaseByExcel
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
509b2294
authored
2021-02-23 12:15:40 +0800
by
余德军
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
中信保诚添加角色导入
1 parent
d6ee6183
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
2 deletions
src/main/java/com/phase/ColDesc.java
src/main/java/com/phase/PhaseUtil.java
src/main/java/com/phase/SpeechLittlePhaseAddDTO.java
src/main/java/com/phase/SpeechLittlePhaseEditDTO.java
江苏非自保件.xlsx
src/main/java/com/phase/ColDesc.java
View file @
509b229
...
...
@@ -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
;
...
...
src/main/java/com/phase/PhaseUtil.java
View file @
509b229
...
...
@@ -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
();
}
...
...
src/main/java/com/phase/SpeechLittlePhaseAddDTO.java
View file @
509b229
...
...
@@ -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
();
}
...
...
src/main/java/com/phase/SpeechLittlePhaseEditDTO.java
View file @
509b229
...
...
@@ -33,4 +33,7 @@ public class SpeechLittlePhaseEditDTO {
private
Integer
classIndex
;
private
Integer
userRole
;
}
...
...
江苏非自保件.xlsx
0 → 100644
View file @
509b229
No preview for this file type
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment