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
10f9f66b
authored
2020-07-29 20:11:12 +0800
by
sunchenjie
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
create:"文档产品代码"
1 parent
e75138fb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 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/ColDesc.java
View file @
10f9f66
...
...
@@ -22,8 +22,8 @@ public enum ColDesc {
COL_DOCTYPE
(
"fileType"
,
"文件识别类别(1=通用文件)"
),
COL_CERTIFICATE_TYPE
(
"identityType"
,
"证件类别(1=身份证信息面,2=身份证国徽面,3=执业证正面,4=执业正反面)"
),
COL_OCR
(
"idcardOcrSwitch"
,
"OCR开启(1=开启,2=关闭)"
),
COL_POPUP
(
"popup"
,
"文件弹出(1=开启,2=关闭)"
)
;
COL_POPUP
(
"popup"
,
"文件弹出(1=开启,2=关闭)"
)
,
COL_PRD_CODE
(
"docPrdCode"
,
"文档产品代码"
);
private
String
attr
;
private
String
col
;
...
...
src/main/java/com/phase/PhaseUtil.java
View file @
10f9f66
...
...
@@ -107,6 +107,7 @@ public class PhaseUtil {
popup
=
Integer
.
parseInt
(
orgPhase
.
get
(
ColDesc
.
COL_POPUP
.
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
());
String
sure
=
orgPhase
.
get
(
ColDesc
.
COL_SURE
.
getCol
());
...
...
@@ -126,6 +127,7 @@ public class PhaseUtil {
.
littlePhaseTitle
(
littlePhaseTitle
)
.
bindUnique
(
""
)
.
popup
(
popup
)
.
docPrdCode
(
prdCode
)
.
build
();
}
...
...
src/main/java/com/phase/SpeechLittlePhaseAddDTO.java
View file @
10f9f66
...
...
@@ -54,6 +54,11 @@ public class SpeechLittlePhaseAddDTO {
private
Integer
popup
;
/**
* 弹出文档对应的product_code
*/
private
String
docPrdCode
;
public
SpeechLittlePhaseEditDTO
transToVO
()
{
return
SpeechLittlePhaseEditDTO
.
builder
().
hintNum
(
this
.
littlePhaseSerialNum
).
hintName
(
this
.
littlePhaseName
)
.
hintTitle
(
this
.
littlePhaseTitle
).
tts
(
this
.
ttsContent
).
condition
(
getConditionMap
()).
hintType
(
getHintType
())
...
...
@@ -83,6 +88,7 @@ public class SpeechLittlePhaseAddDTO {
}
else
if
(
this
.
phaseType
==
3
)
{
hintTypeMap
.
put
(
"docType"
,
this
.
fileType
);
hintTypeMap
.
put
(
"popup"
,
this
.
popup
);
hintTypeMap
.
put
(
"docPrdCode"
,
this
.
docPrdCode
);
}
else
if
(
this
.
phaseType
==
4
)
{
hintTypeMap
.
put
(
"certificateType"
,
this
.
identityType
);
if
(
this
.
identityType
==
1
||
this
.
identityType
==
2
)
{
...
...
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