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
aa91ec6d
Commit
aa91ec6d
authored
Jun 29, 2021
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加默认值
parent
37d65431
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
AlertFormVo.java
.../com/yeejoin/amos/boot/module/jcs/api/vo/AlertFormVo.java
+4
-1
AlertFormServiceImpl.java
...oot/module/jcs/biz/service/impl/AlertFormServiceImpl.java
+5
-1
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/vo/AlertFormVo.java
View file @
aa91ec6d
...
...
@@ -24,6 +24,9 @@ public class AlertFormVo{
@ApiModelProperty
(
value
=
"表单类型"
)
private
String
type
;
@ApiModelProperty
(
value
=
"表单默认值"
)
private
Object
defaultValue
;
@ApiModelProperty
(
value
=
"表单值"
)
private
Items
data
;
...
...
@@ -34,7 +37,7 @@ public class AlertFormVo{
super
();
}
public
AlertFormVo
(
String
key
,
String
label
,
String
type
,
Items
data
,
AlertFormValue
formItemDescr
)
{
super
();
super
();
this
.
key
=
key
;
this
.
label
=
label
;
this
.
type
=
type
;
...
...
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 @
aa91ec6d
...
...
@@ -2,6 +2,7 @@ package com.yeejoin.amos.boot.module.jcs.biz.service.impl;
import
java.util.ArrayList
;
import
java.util.Collection
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
...
...
@@ -43,9 +44,12 @@ public class AlertFormServiceImpl extends BaseService<AlertFromDto,AlertForm,Ale
List
<
AlertFormVo
>
listfrom
=
new
ArrayList
<
AlertFormVo
>();
// 组装数据
for
(
AlertForm
alertFrom
:
alertFormValue
)
{
if
(
alertFrom
.
getFieldType
().
equals
(
"string"
)||
alertFrom
.
getFieldType
().
equals
(
"
date"
)||
alertFrom
.
getFieldType
().
equals
(
"textarea"
))
{
if
(
alertFrom
.
getFieldType
().
equals
(
"string"
)||
alertFrom
.
getFieldType
().
equals
(
"
inputDateTime"
)||
alertFrom
.
getFieldType
().
equals
(
"textarea"
))
{
AlertFormVo
vo
=
new
AlertFormVo
(
alertFrom
.
getFieldCode
(),
alertFrom
.
getFieldName
(),
alertFrom
.
getFieldType
(),
null
,
new
AlertFormValue
(
alertFrom
.
getSequenceNbr
(),
alertFrom
.
getFieldName
(),
alertFrom
.
getFieldCode
(),
alertFrom
.
getBlock
(),
alertFrom
.
getAlertTypeCode
()));
if
(
alertFrom
.
getFieldType
().
equals
(
"inputDateTime"
))
{
vo
.
setDefaultValue
(
new
Date
());
}
listfrom
.
add
(
vo
);
}
else
{
// 查询数据项
...
...
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