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
2385740f
Commit
2385740f
authored
Feb 26, 2025
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改使用登记表bug
parent
9a092c40
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
4 deletions
+24
-4
CommonServiceImpl.java
...os/boot/module/jg/biz/service/impl/CommonServiceImpl.java
+22
-2
use-registration-form-set.ftl
...rc/main/resources/templates/use-registration-form-set.ftl
+1
-1
use-registration-form-unit.ftl
...c/main/resources/templates/use-registration-form-unit.ftl
+1
-1
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/CommonServiceImpl.java
View file @
2385740f
...
...
@@ -2280,7 +2280,7 @@ public class CommonServiceImpl implements ICommonService {
formData
.
put
(
"productName"
,
formData
.
getString
(
"projectContraption"
));
}
//单位模版 部分字段需从设备列表中获取
if
(
formData
.
containsKey
(
"equipmentLists"
)
&&
manageType
.
equals
(
UNIT
)
){
if
(
formData
.
containsKey
(
"equipmentLists"
)
){
JSONArray
equipmentLists
=
formData
.
getJSONArray
(
"equipmentLists"
);
List
<
Map
<
String
,
Object
>>
equips
=
equipmentLists
.
stream
()
.
filter
(
obj
->
obj
instanceof
Map
)
...
...
@@ -2290,7 +2290,27 @@ public class CommonServiceImpl implements ICommonService {
formData
.
put
(
"equNum"
,
equipmentLists
.
size
());
//设备品种
formData
.
put
(
"equDefine"
,
equips
.
get
(
0
).
get
(
"equDefineName"
));
}
else
if
(
manageType
.
equals
(
UNIT
)
&&
!
CollectionUtils
.
isEmpty
(
equips
)){
Set
<
String
>
productNameSet
=
equips
.
stream
()
.
filter
(
Objects:
:
nonNull
)
// 过滤掉equip为null的情况
.
map
(
e
->
e
.
get
(
"productName"
))
// 获取productName
.
filter
(
Objects:
:
nonNull
)
// 过滤掉productName为null的情况
.
map
(
Object:
:
toString
)
// 转换为String类型
.
collect
(
Collectors
.
toSet
());
// 收集到Set中
// 将set转成字符串逗号拼接
String
productName
=
""
;
List
<
String
>
sortedProductNameList
=
new
ArrayList
<>(
productNameSet
);
if
(
sortedProductNameList
.
size
()
>
3
)
{
productName
=
String
.
join
(
","
,
sortedProductNameList
.
subList
(
0
,
3
))
+
",..."
;
}
else
{
productName
=
String
.
join
(
","
,
sortedProductNameList
);
}
formData
.
put
(
"productName"
,
equips
.
get
(
0
).
get
(
"productName"
));
}
else
if
(
manageType
.
equals
(
VEHICLE
)
&&
!
CollectionUtils
.
isEmpty
(
equips
)){
//气瓶数量
formData
.
put
(
"gasNum"
,
equips
.
size
());
//设备品种
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/resources/templates/use-registration-form-set.ftl
View file @
2385740f
...
...
@@ -2191,7 +2191,7 @@
<w:spacing
w:val=
"-1"
/>
<w:lang
w:val=
"en-US"
w:eastAsia=
"zh-CN"
/>
</w:rPr>
<w:t>
${(
resul
tNo)!''}
</w:t>
<w:t>
${(
inspectRepor
tNo)!''}
</w:t>
</w:r>
</w:p>
</w:tc>
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/resources/templates/use-registration-form-unit.ftl
View file @
2385740f
...
...
@@ -543,7 +543,7 @@
<w:sz
w:val=
"21"
/>
<w:sz-cs
w:val=
"21"
/>
</w:rPr>
<w:t>
${(registrationType)!''}
</w:t>
<w:t>
${(registrationType)!'
新设备首次启用
'}
</w:t>
</w:r>
</w:p>
<w:p>
...
...
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