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
ad452a20
Commit
ad452a20
authored
Jul 29, 2022
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.代码错误return 导致后续代码不执行bug
parent
ba515f01
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
14 deletions
+6
-14
EqEqDynamicFormServiceImpl.java
.../equipmanage/service/impl/EqEqDynamicFormServiceImpl.java
+4
-8
FireFightingSystemServiceImpl.java
...uipmanage/service/impl/FireFightingSystemServiceImpl.java
+2
-6
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/EqEqDynamicFormServiceImpl.java
View file @
ad452a20
...
@@ -147,20 +147,16 @@ public class EqEqDynamicFormServiceImpl implements IEqDynamicFormService {
...
@@ -147,20 +147,16 @@ public class EqEqDynamicFormServiceImpl implements IEqDynamicFormService {
//3.处理子分组数据
//3.处理子分组数据
List
<
DynamicFormGroup
>
groupList
=
iEqDynamicFormGroupService
.
list
(
new
LambdaQueryWrapper
<
DynamicFormGroup
>()
List
<
DynamicFormGroup
>
groupList
=
iEqDynamicFormGroupService
.
list
(
new
LambdaQueryWrapper
<
DynamicFormGroup
>()
.
eq
(
DynamicFormGroup:
:
getParentId
,
dynamicFormGroupVo
.
getId
()).
eq
(
DynamicFormGroup:
:
getParentId
,
dynamicFormGroupVo
.
getId
()).
orderByAsc
(
DynamicFormGroup:
:
getSort
));
.
eq
(
DynamicFormGroup:
:
getParentId
,
dynamicFormGroupVo
.
getId
()).
eq
(
DynamicFormGroup:
:
getParentId
,
dynamicFormGroupVo
.
getId
()).
orderByAsc
(
DynamicFormGroup:
:
getSort
));
List
<
DynamicFormGroupVo
>
formGroupVos
=
new
ArrayList
<>();
List
<
DynamicFormGroupVo
>
formGroupVos
=
new
ArrayList
<>();
List
<
DynamicFormGroupVo
>
formGroupVos1
=
groupList
.
stream
().
map
(
s
->
{
groupList
.
forEach
(
s
->
{
this
.
stringToJsonGroupConfig
(
s
);
this
.
stringToJsonGroupConfig
(
s
);
JSONObject
jsonObject
=
s
.
getGroupConfig
();
JSONObject
jsonObject
=
s
.
getGroupConfig
();
if
(
(
jsonObject
.
get
(
"isSelect"
).
toString
()).
equals
(
"true"
)){
if
(
jsonObject
.
get
(
"isSelect"
)
!=
null
&&
"true"
.
equals
(
jsonObject
.
get
(
"isSelect"
).
toString
()
)){
DynamicFormGroupVo
target
=
new
DynamicFormGroupVo
();
DynamicFormGroupVo
target
=
new
DynamicFormGroupVo
();
Bean
.
copyExistPropertis
(
s
,
target
);
Bean
.
copyExistPropertis
(
s
,
target
);
formGroupVos
.
add
(
target
);
formGroupVos
.
add
(
target
);
return
target
;
}
}
});
return
null
;
}).
collect
(
Collectors
.
toList
());
formGroupVos
.
forEach
(
v
->
{
formGroupVos
.
forEach
(
v
->
{
this
.
fillFormColumnWithFiledValue
(
v
,
formInstanceMap
);
this
.
fillFormColumnWithFiledValue
(
v
,
formInstanceMap
);
buildGroupsAndColumnsTreeWithValue
(
v
,
dynamicFormInstances
);
buildGroupsAndColumnsTreeWithValue
(
v
,
dynamicFormInstances
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/FireFightingSystemServiceImpl.java
View file @
ad452a20
...
@@ -226,8 +226,6 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
...
@@ -226,8 +226,6 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
// AST数据同步
// AST数据同步
List
<
FireFightingSystem
>
fireFightingSystemDetail
=
getFireFightingSystemDetail
(
vo
);
List
<
FireFightingSystem
>
fireFightingSystemDetail
=
getFireFightingSystemDetail
(
vo
);
syncDataService
.
syncCreatedFireFightingSystem
(
fireFightingSystemDetail
);
syncDataService
.
syncCreatedFireFightingSystem
(
fireFightingSystemDetail
);
}
else
{
return
s
;
}
}
// 3.保存图片数据
// 3.保存图片数据
this
.
insertFiles
(
vo
);
this
.
insertFiles
(
vo
);
...
@@ -241,8 +239,8 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
...
@@ -241,8 +239,8 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
}
}
// 验证必填项 BUG 2725 by kongfm 2021-09-09
// 验证必填项 BUG 2725 by kongfm 2021-09-09
List
<
DynamicFormInstance
>
formInstance
=
vo
.
getFormInstances
();
List
<
DynamicFormInstance
>
formInstance
=
vo
.
getFormInstances
();
formInstance
.
stream
().
forEach
(
item
->
{
formInstance
.
forEach
(
item
->
{
if
(
item
.
getNotNull
()
==
true
&&
StringUtils
.
isEmpty
(
item
.
getFieldValue
()))
{
if
(
item
.
getNotNull
()
&&
StringUtils
.
isEmpty
(
item
.
getFieldValue
()))
{
throw
new
BadRequest
(
item
.
getFieldLabel
()
+
"为必填项,请确认"
);
throw
new
BadRequest
(
item
.
getFieldLabel
()
+
"为必填项,请确认"
);
}
}
});
});
...
@@ -262,8 +260,6 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
...
@@ -262,8 +260,6 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
// AST数据同步
// AST数据同步
List
<
FireFightingSystem
>
fireFightingSystemDetail
=
getFireFightingSystemDetail
(
vo
);
List
<
FireFightingSystem
>
fireFightingSystemDetail
=
getFireFightingSystemDetail
(
vo
);
syncDataService
.
syncCreatedFireFightingSystem
(
fireFightingSystemDetail
);
syncDataService
.
syncCreatedFireFightingSystem
(
fireFightingSystemDetail
);
}
else
{
return
null
;
}
}
// 1.更新消防系统数据
// 1.更新消防系统数据
String
sequenceNbr
=
vo
.
getId
();
String
sequenceNbr
=
vo
.
getId
();
...
...
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