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
69f2a90e
Commit
69f2a90e
authored
Feb 26, 2025
by
Lambertliu
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop_tzs_register_test' into develop_tzs_register_test
parents
17856b4c
2385740f
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
37 additions
and
13 deletions
+37
-13
JgUseRegistrationMapper.xml
...api/src/main/resources/mapper/JgUseRegistrationMapper.xml
+3
-1
SafetyProblemTracingMapper.xml
.../src/main/resources/mapper/SafetyProblemTracingMapper.xml
+1
-1
CommonServiceImpl.java
...os/boot/module/jg/biz/service/impl/CommonServiceImpl.java
+22
-2
JgUseRegistrationServiceImpl.java
...ule/jg/biz/service/impl/JgUseRegistrationServiceImpl.java
+9
-7
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-api/src/main/resources/mapper/JgUseRegistrationMapper.xml
View file @
69f2a90e
...
@@ -514,6 +514,7 @@
...
@@ -514,6 +514,7 @@
NEXT_INSPECT_DATE as nextInspectDate,
NEXT_INSPECT_DATE as nextInspectDate,
INSPECT_REPORT as inspectReport,
INSPECT_REPORT as inspectReport,
INSPECT_ORG_CODE as inspectOrgCode,
INSPECT_ORG_CODE as inspectOrgCode,
INSPECT_REPORT_NO as inspectReportNo,
SEQUENCE_NBR as jySeq
SEQUENCE_NBR as jySeq
from idx_biz_jg_inspection_detection_info
from idx_biz_jg_inspection_detection_info
where
where
...
@@ -596,7 +597,8 @@
...
@@ -596,7 +597,8 @@
INSPECT_DATE as inspectDate,
INSPECT_DATE as inspectDate,
INSPECT_STAFF as inspectStaff,
INSPECT_STAFF as inspectStaff,
NEXT_INSPECT_DATE as nextInspectDate,
NEXT_INSPECT_DATE as nextInspectDate,
INSPECT_REPORT as inspectReport
INSPECT_REPORT as inspectReport,
INSPECT_REPORT_NO as inspectReportNo
FROM "idx_biz_jg_inspection_detection_info"
FROM "idx_biz_jg_inspection_detection_info"
where
where
RECORD = #{id}
RECORD = #{id}
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/SafetyProblemTracingMapper.xml
View file @
69f2a90e
...
@@ -55,7 +55,7 @@
...
@@ -55,7 +55,7 @@
and spt.principal_unit like CONCAT('%', #{problemModel.principalUnit}, '%')
and spt.principal_unit like CONCAT('%', #{problemModel.principalUnit}, '%')
</if>
</if>
<if
test=
"problemModel.principalUnitType != null and problemModel.principalUnitType != ''"
>
<if
test=
"problemModel.principalUnitType != null and problemModel.principalUnitType != ''"
>
and spt.principal_unit_type =
#{problemModel.principalUnitType}
and spt.principal_unit_type =
like CONCAT('%', #{problemModel.principalUnitType}, '%')
</if>
</if>
<if
test=
"problemModel.hiddenDangersLevel != null and problemModel.hiddenDangersLevel != ''"
>
<if
test=
"problemModel.hiddenDangersLevel != null and problemModel.hiddenDangersLevel != ''"
>
and spt.problem_status_code = #{problemModel.hiddenDangersLevel}
and spt.problem_status_code = #{problemModel.hiddenDangersLevel}
...
...
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 @
69f2a90e
...
@@ -2280,7 +2280,7 @@ public class CommonServiceImpl implements ICommonService {
...
@@ -2280,7 +2280,7 @@ public class CommonServiceImpl implements ICommonService {
formData
.
put
(
"productName"
,
formData
.
getString
(
"projectContraption"
));
formData
.
put
(
"productName"
,
formData
.
getString
(
"projectContraption"
));
}
}
//单位模版 部分字段需从设备列表中获取
//单位模版 部分字段需从设备列表中获取
if
(
formData
.
containsKey
(
"equipmentLists"
)
&&
manageType
.
equals
(
UNIT
)
){
if
(
formData
.
containsKey
(
"equipmentLists"
)
){
JSONArray
equipmentLists
=
formData
.
getJSONArray
(
"equipmentLists"
);
JSONArray
equipmentLists
=
formData
.
getJSONArray
(
"equipmentLists"
);
List
<
Map
<
String
,
Object
>>
equips
=
equipmentLists
.
stream
()
List
<
Map
<
String
,
Object
>>
equips
=
equipmentLists
.
stream
()
.
filter
(
obj
->
obj
instanceof
Map
)
.
filter
(
obj
->
obj
instanceof
Map
)
...
@@ -2290,7 +2290,27 @@ public class CommonServiceImpl implements ICommonService {
...
@@ -2290,7 +2290,27 @@ public class CommonServiceImpl implements ICommonService {
formData
.
put
(
"equNum"
,
equipmentLists
.
size
());
formData
.
put
(
"equNum"
,
equipmentLists
.
size
());
//设备品种
//设备品种
formData
.
put
(
"equDefine"
,
equips
.
get
(
0
).
get
(
"equDefineName"
));
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
());
formData
.
put
(
"gasNum"
,
equips
.
size
());
//设备品种
//设备品种
...
...
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/JgUseRegistrationServiceImpl.java
View file @
69f2a90e
...
@@ -2830,10 +2830,15 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
...
@@ -2830,10 +2830,15 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
// 基本信息 + 制造信息 + 设计信息
// 基本信息 + 制造信息 + 设计信息
fillLastEquipBaseInfo
(
jsonObject
,
record
);
fillLastEquipBaseInfo
(
jsonObject
,
record
);
// 安装信息
// 安装信息
Map
<
String
,
Object
>
installDetail
=
this
.
baseMapper
.
getiInstallDetail
(
record
);
if
(!
jsonObject
.
containsKey
(
"installationIsComplete"
))
{
// 历史设备登记来的数据没有安装业务信息 从一码通数据拿
Map
<
String
,
Object
>
installDetail
=
this
.
baseMapper
.
getiInstallDetail
(
record
);
if
(
ValidationUtil
.
isEmpty
(
installDetail
))
{
// 历史设备登记来的数据没有安装业务信息 从一码通数据拿
installDetail
=
this
.
baseMapper
.
getiInstallDetailByIdx
(
record
);
if
(
ValidationUtil
.
isEmpty
(
installDetail
))
{
installDetail
=
this
.
baseMapper
.
getiInstallDetailByIdx
(
record
);
}
if
(!
ObjectUtils
.
isEmpty
(
installDetail
))
{
jsonObject
.
putAll
(
installDetail
);
}
}
}
// 维保信息
// 维保信息
Map
<
String
,
Object
>
maintenanceDetail
=
this
.
baseMapper
.
getMaintenanceDetail
(
record
);
Map
<
String
,
Object
>
maintenanceDetail
=
this
.
baseMapper
.
getMaintenanceDetail
(
record
);
...
@@ -2844,9 +2849,6 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
...
@@ -2844,9 +2849,6 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
if
(!
ObjectUtils
.
isEmpty
(
maintenanceDetail
))
{
if
(!
ObjectUtils
.
isEmpty
(
maintenanceDetail
))
{
jsonObject
.
putAll
(
maintenanceDetail
);
jsonObject
.
putAll
(
maintenanceDetail
);
}
}
if
(!
ObjectUtils
.
isEmpty
(
installDetail
))
{
jsonObject
.
putAll
(
installDetail
);
}
}
}
public
void
fillLastEquipBaseInfo
(
JSONObject
jsonObject
,
String
record
)
{
public
void
fillLastEquipBaseInfo
(
JSONObject
jsonObject
,
String
record
)
{
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/resources/templates/use-registration-form-set.ftl
View file @
69f2a90e
...
@@ -2191,7 +2191,7 @@
...
@@ -2191,7 +2191,7 @@
<w:spacing
w:val=
"-1"
/>
<w:spacing
w:val=
"-1"
/>
<w:lang
w:val=
"en-US"
w:eastAsia=
"zh-CN"
/>
<w:lang
w:val=
"en-US"
w:eastAsia=
"zh-CN"
/>
</w:rPr>
</w:rPr>
<w:t>
${(
resul
tNo)!''}
</w:t>
<w:t>
${(
inspectRepor
tNo)!''}
</w:t>
</w:r>
</w:r>
</w:p>
</w:p>
</w:tc>
</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 @
69f2a90e
...
@@ -543,7 +543,7 @@
...
@@ -543,7 +543,7 @@
<w:sz
w:val=
"21"
/>
<w:sz
w:val=
"21"
/>
<w:sz-cs
w:val=
"21"
/>
<w:sz-cs
w:val=
"21"
/>
</w:rPr>
</w:rPr>
<w:t>
${(registrationType)!''}
</w:t>
<w:t>
${(registrationType)!'
新设备首次启用
'}
</w:t>
</w:r>
</w:r>
</w:p>
</w:p>
<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