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
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
AlertFormVo.java
.../com/yeejoin/amos/boot/module/jcs/api/vo/AlertFormVo.java
+3
-0
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{
...
@@ -24,6 +24,9 @@ public class AlertFormVo{
@ApiModelProperty
(
value
=
"表单类型"
)
@ApiModelProperty
(
value
=
"表单类型"
)
private
String
type
;
private
String
type
;
@ApiModelProperty
(
value
=
"表单默认值"
)
private
Object
defaultValue
;
@ApiModelProperty
(
value
=
"表单值"
)
@ApiModelProperty
(
value
=
"表单值"
)
private
Items
data
;
private
Items
data
;
...
...
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;
...
@@ -2,6 +2,7 @@ package com.yeejoin.amos.boot.module.jcs.biz.service.impl;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Collection
;
import
java.util.Collection
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -43,9 +44,12 @@ public class AlertFormServiceImpl extends BaseService<AlertFromDto,AlertForm,Ale
...
@@ -43,9 +44,12 @@ public class AlertFormServiceImpl extends BaseService<AlertFromDto,AlertForm,Ale
List
<
AlertFormVo
>
listfrom
=
new
ArrayList
<
AlertFormVo
>();
List
<
AlertFormVo
>
listfrom
=
new
ArrayList
<
AlertFormVo
>();
// 组装数据
// 组装数据
for
(
AlertForm
alertFrom
:
alertFormValue
)
{
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
,
AlertFormVo
vo
=
new
AlertFormVo
(
alertFrom
.
getFieldCode
(),
alertFrom
.
getFieldName
(),
alertFrom
.
getFieldType
(),
null
,
new
AlertFormValue
(
alertFrom
.
getSequenceNbr
(),
alertFrom
.
getFieldName
(),
alertFrom
.
getFieldCode
(),
alertFrom
.
getBlock
(),
alertFrom
.
getAlertTypeCode
()));
new
AlertFormValue
(
alertFrom
.
getSequenceNbr
(),
alertFrom
.
getFieldName
(),
alertFrom
.
getFieldCode
(),
alertFrom
.
getBlock
(),
alertFrom
.
getAlertTypeCode
()));
if
(
alertFrom
.
getFieldType
().
equals
(
"inputDateTime"
))
{
vo
.
setDefaultValue
(
new
Date
());
}
listfrom
.
add
(
vo
);
listfrom
.
add
(
vo
);
}
else
{
}
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