Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
3e6fc723
Commit
3e6fc723
authored
Jul 05, 2021
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
动态表单,增加select 访问外系统 地址
parent
89ba96b3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
5 deletions
+12
-5
AlertFormInitDto.java
...eejoin/amos/boot/module/jcs/api/dto/AlertFormInitDto.java
+7
-1
AlertForm.java
...om/yeejoin/amos/boot/module/jcs/api/entity/AlertForm.java
+3
-0
AlertFormServiceImpl.java
...oot/module/jcs/biz/service/impl/AlertFormServiceImpl.java
+2
-4
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs/api/dto/AlertFormInitDto.java
View file @
3e6fc723
...
@@ -37,16 +37,22 @@ public class AlertFormInitDto implements Serializable{
...
@@ -37,16 +37,22 @@ public class AlertFormInitDto implements Serializable{
@ApiModelProperty
(
value
=
"提交表单附加字段"
)
@ApiModelProperty
(
value
=
"提交表单附加字段"
)
private
AlertFormValue
formItemDescr
;
private
AlertFormValue
formItemDescr
;
@ApiModelProperty
(
value
=
"接口地址"
)
private
String
url
;
public
AlertFormInitDto
()
{
public
AlertFormInitDto
()
{
super
();
super
();
}
}
public
AlertFormInitDto
(
String
key
,
String
label
,
String
type
,
Items
data
)
{
public
AlertFormInitDto
(
String
key
,
String
label
,
String
type
,
Items
data
,
String
url
)
{
super
();
super
();
this
.
key
=
key
;
this
.
key
=
key
;
this
.
label
=
label
;
this
.
label
=
label
;
this
.
type
=
type
;
this
.
type
=
type
;
this
.
data
=
data
;
this
.
data
=
data
;
this
.
url
=
url
;
}
}
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs/api/entity/AlertForm.java
View file @
3e6fc723
...
@@ -48,4 +48,7 @@ public class AlertForm extends BaseEntity {
...
@@ -48,4 +48,7 @@ public class AlertForm extends BaseEntity {
//新加排序字段
//新加排序字段
@ApiModelProperty
(
value
=
"排序字段"
)
@ApiModelProperty
(
value
=
"排序字段"
)
private
int
sortNum
;
private
int
sortNum
;
@ApiModelProperty
(
value
=
"接口地址"
)
private
String
url
;
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/service/impl/AlertFormServiceImpl.java
View file @
3e6fc723
...
@@ -45,7 +45,7 @@ public class AlertFormServiceImpl extends BaseService<AlertFormDto,AlertForm,Ale
...
@@ -45,7 +45,7 @@ public class AlertFormServiceImpl extends BaseService<AlertFormDto,AlertForm,Ale
if
(
alertFrom
.
getFieldType
().
equals
(
"string"
)||
alertFrom
.
getFieldType
().
equals
(
"datetime"
)||
alertFrom
.
getFieldType
().
equals
(
"textarea"
)||
alertFrom
.
getFieldType
().
equals
(
"inputBitmap"
))
{
if
(
alertFrom
.
getFieldType
().
equals
(
"string"
)||
alertFrom
.
getFieldType
().
equals
(
"datetime"
)||
alertFrom
.
getFieldType
().
equals
(
"textarea"
)||
alertFrom
.
getFieldType
().
equals
(
"inputBitmap"
))
{
AlertFormInitDto
vo
=
new
AlertFormInitDto
(
alertFrom
.
getFieldCode
(),
alertFrom
.
getFieldName
(),
alertFrom
.
getFieldType
(),
null
);
AlertFormInitDto
vo
=
new
AlertFormInitDto
(
alertFrom
.
getFieldCode
(),
alertFrom
.
getFieldName
(),
alertFrom
.
getFieldType
(),
null
,
alertFrom
.
getUrl
()
);
AlertFormValue
alertFormValu
=
new
AlertFormValue
(
alertFrom
.
getSequenceNbr
(),
alertFrom
.
getFieldName
(),
alertFrom
.
getFieldCode
(),
alertFrom
.
getBlock
(),
alertFrom
.
getAlertTypeCode
(),
null
,
null
);
AlertFormValue
alertFormValu
=
new
AlertFormValue
(
alertFrom
.
getSequenceNbr
(),
alertFrom
.
getFieldName
(),
alertFrom
.
getFieldCode
(),
alertFrom
.
getBlock
(),
alertFrom
.
getAlertTypeCode
(),
null
,
null
);
if
(
alertFrom
.
getFieldType
().
equals
(
"datetime"
))
{
if
(
alertFrom
.
getFieldType
().
equals
(
"datetime"
))
{
...
@@ -64,10 +64,8 @@ public class AlertFormServiceImpl extends BaseService<AlertFormDto,AlertForm,Ale
...
@@ -64,10 +64,8 @@ public class AlertFormServiceImpl extends BaseService<AlertFormDto,AlertForm,Ale
queryWrappercolumnMap
.
orderByAsc
(
"sort_num"
);
queryWrappercolumnMap
.
orderByAsc
(
"sort_num"
);
Collection
<
DataDictionary
>
listDataDictionary
=
iDataDictionaryService
.
list
(
queryWrappercolumnMap
);
Collection
<
DataDictionary
>
listDataDictionary
=
iDataDictionaryService
.
list
(
queryWrappercolumnMap
);
List
<
AlertListvalue
>
list
=
getdata
(
listDataDictionary
);
List
<
AlertListvalue
>
list
=
getdata
(
listDataDictionary
);
AlertFormInitDto
vo
=
new
AlertFormInitDto
(
alertFrom
.
getFieldCode
(),
alertFrom
.
getFieldName
(),
alertFrom
.
getFieldType
(),
new
Items
(
list
));
AlertFormInitDto
vo
=
new
AlertFormInitDto
(
alertFrom
.
getFieldCode
(),
alertFrom
.
getFieldName
(),
alertFrom
.
getFieldType
(),
new
Items
(
list
),
alertFrom
.
getUrl
());
AlertFormValue
alertFormValu
=
new
AlertFormValue
(
alertFrom
.
getSequenceNbr
(),
alertFrom
.
getFieldName
(),
alertFrom
.
getFieldCode
(),
alertFrom
.
getBlock
(),
alertFrom
.
getAlertTypeCode
(),
null
,
null
);
AlertFormValue
alertFormValu
=
new
AlertFormValue
(
alertFrom
.
getSequenceNbr
(),
alertFrom
.
getFieldName
(),
alertFrom
.
getFieldCode
(),
alertFrom
.
getBlock
(),
alertFrom
.
getAlertTypeCode
(),
null
,
null
);
if
(
alertFrom
.
getFieldType
().
equals
(
"radio"
)){
if
(
alertFrom
.
getFieldType
().
equals
(
"radio"
)){
vo
.
setDefaultValue
(
list
.
get
(
0
).
getValue
());
vo
.
setDefaultValue
(
list
.
get
(
0
).
getValue
());
alertFormValu
.
setFieldValue
(
list
.
get
(
0
).
getLabel
());
alertFormValu
.
setFieldValue
(
list
.
get
(
0
).
getLabel
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment