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
b776606f
Commit
b776606f
authored
Jan 23, 2024
by
zhangsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
移装告知 和 安装告知 详情API修改
parent
58fa46ac
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
32 deletions
+12
-32
JgInstallationNoticeMapper.xml
.../src/main/resources/mapper/JgInstallationNoticeMapper.xml
+3
-2
JgTransferNoticeMapper.xml
...-api/src/main/resources/mapper/JgTransferNoticeMapper.xml
+3
-2
JgInstallationNoticeServiceImpl.java
.../jg/biz/service/impl/JgInstallationNoticeServiceImpl.java
+6
-28
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgInstallationNoticeMapper.xml
View file @
b776606f
...
@@ -94,7 +94,7 @@
...
@@ -94,7 +94,7 @@
ri.brand_name AS brandName,
ri.brand_name AS brandName,
ri.equ_type AS equType,
ri.equ_type AS equType,
ri.equ_price AS equPrice,
ri.equ_price AS equPrice,
ri.product_photo AS pro
d
uctPhoto,
ri.product_photo AS pro
D
uctPhoto,
di.design_unit_credit_code AS designUnitCreditCode,
di.design_unit_credit_code AS designUnitCreditCode,
di.design_unit_name AS designUnitName,
di.design_unit_name AS designUnitName,
di.design_license_num AS designLicenseNum,
di.design_license_num AS designLicenseNum,
...
@@ -119,7 +119,8 @@
...
@@ -119,7 +119,8 @@
ei.legal_phone AS safetyManagerPhone,
ei.legal_phone AS safetyManagerPhone,
ei.address AS address,
ei.address AS address,
ei.use_code AS useCode,
ei.use_code AS useCode,
isn.install_unit_credit_code AS installUnitCreditCode
isn.install_unit_credit_code AS installUnitCreditCode,
idi.INSPECT_REPORT as inspectReport
FROM
FROM
tzs_jg_installation_notice isn
tzs_jg_installation_notice isn
LEFT JOIN tzs_jg_installation_notice_eq re ON re.equip_transfer_id = isn.sequence_nbr
LEFT JOIN tzs_jg_installation_notice_eq re ON re.equip_transfer_id = isn.sequence_nbr
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgTransferNoticeMapper.xml
View file @
b776606f
...
@@ -125,7 +125,7 @@
...
@@ -125,7 +125,7 @@
ri.brand_name AS brandName,
ri.brand_name AS brandName,
ri.equ_type AS equType,
ri.equ_type AS equType,
ri.equ_price AS equPrice,
ri.equ_price AS equPrice,
ri.product_photo AS pro
d
uctPhoto,
ri.product_photo AS pro
D
uctPhoto,
di.design_unit_credit_code AS designUnitCreditCode,
di.design_unit_credit_code AS designUnitCreditCode,
di.design_unit_name AS designUnitName,
di.design_unit_name AS designUnitName,
di.design_license_num AS designLicenseNum,
di.design_license_num AS designLicenseNum,
...
@@ -152,7 +152,8 @@
...
@@ -152,7 +152,8 @@
ui.CITY_NAME AS useUnitCityName,
ui.CITY_NAME AS useUnitCityName,
ui.COUNTY_NAME AS useUnitCountyName,
ui.COUNTY_NAME AS useUnitCountyName,
ui.ADDRESS AS useUnitAddress,
ui.ADDRESS AS useUnitAddress,
eio.use_code AS useCode
eio.use_code AS useCode,
idi.INSPECT_REPORT as inspectReport
FROM
FROM
tzs_jg_transfer_notice tjtn
tzs_jg_transfer_notice tjtn
LEFT JOIN tzs_jg_transfer_notice_eq re ON re.equip_transfer_id = tjtn.sequence_nbr
LEFT JOIN tzs_jg_transfer_notice_eq re ON re.equip_transfer_id = tjtn.sequence_nbr
...
...
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/JgInstallationNoticeServiceImpl.java
View file @
b776606f
...
@@ -194,42 +194,20 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
...
@@ -194,42 +194,20 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
String
[]
fields
=
{
"productPhoto"
,
"designDoc"
,
"designStandard"
,
"factoryStandard"
,
String
[]
fields
=
{
"productPhoto"
,
"designDoc"
,
"designStandard"
,
"factoryStandard"
,
"productQualityYieldProve"
,
"insUseMaintainExplain"
,
"inspectReport"
,
"productQualityYieldProve"
,
"insUseMaintainExplain"
,
"inspectReport"
,
"proxyStatementAttachment"
,
"installContractAttachment"
};
"proxyStatementAttachment"
,
"installContractAttachment"
};
// 设备信息
// 设备信息
// List<Map<String, Object>> equipmentInfos = jgInstallationNoticeMapper.queryEquipInformation(sequenceNbr);
List
<
Map
<
String
,
Object
>>
equipmentInfos
=
jgInstallationNoticeMapper
.
queryEquipInformation
(
sequenceNbr
);
for
(
String
s:
fields
)
{
for
(
String
s:
fields
)
{
if
(
installationInfo
.
containsKey
(
s
))
{
if
(
installationInfo
.
containsKey
(
s
))
{
installationInfo
.
put
(
s
,
ObjectUtils
.
isEmpty
(
installationInfo
.
get
(
s
))
?
new
JSONArray
()
:
parseArray
(
installationInfo
.
get
(
s
).
toString
()));
installationInfo
.
put
(
s
,
ObjectUtils
.
isEmpty
(
installationInfo
.
get
(
s
))
?
new
JSONArray
()
:
parseArray
(
installationInfo
.
get
(
s
).
toString
()));
}
}
if
(
equipmentInfos
.
get
(
0
).
containsKey
(
s
))
{
equipmentInfos
.
get
(
0
).
put
(
s
,
ObjectUtils
.
isEmpty
(
equipmentInfos
.
get
(
0
).
get
(
s
))
?
new
JSONArray
()
:
parseArray
(
equipmentInfos
.
get
(
0
).
get
(
s
).
toString
()));
}
}
QueryWrapper
<
JgInstallationNoticeEq
>
wrapper
=
new
QueryWrapper
<>();
wrapper
.
lambda
().
eq
(
JgInstallationNoticeEq:
:
getEquipTransferId
,
notice
.
getSequenceNbr
());
JgInstallationNoticeEq
jgInstallationNoticeEq
=
jgInstallationNoticeEqMapper
.
selectOne
(
wrapper
);
Map
<
String
,
Object
>
detail
=
jgUseRegistrationMapper
.
getDetail
(
jgInstallationNoticeEq
.
getEquId
());
Map
<
String
,
Object
>
inspectDetail
=
jgUseRegistrationMapper
.
getInspectDetail
(
jgInstallationNoticeEq
.
getEquId
());
Map
<
String
,
Object
>
useDetail
=
jgUseRegistrationMapper
.
getUseDetail
(
jgInstallationNoticeEq
.
getEquId
());
Map
<
String
,
Object
>
useDestail
=
jgUseRegistrationMapper
.
getDesDetail
(
jgInstallationNoticeEq
.
getEquId
());
if
(!
ObjectUtils
.
isEmpty
(
inspectDetail
))
{
detail
.
putAll
(
inspectDetail
);
}
if
(!
ObjectUtils
.
isEmpty
(
useDetail
))
{
detail
.
putAll
(
useDetail
);
}
}
if
(!
ObjectUtils
.
isEmpty
(
useDestail
))
{
Map
<
String
,
Object
>
map
=
equipmentInfos
.
get
(
0
);
detail
.
putAll
(
useDestail
);
BeanUtil
.
copyProperties
(
installationInfo
,
map
,
"equList"
,
"supervisoryCode"
,
"factoryNum"
);
}
detail
.
put
(
"proDuctPhoto"
,
JSON
.
parse
(
String
.
valueOf
(
detail
.
get
(
"proDuctPhoto"
))));
detail
.
put
(
"factoryStandard"
,
JSON
.
parse
(
String
.
valueOf
(
detail
.
get
(
"factoryStandard"
))));
detail
.
put
(
"productQualityYieldProve"
,
JSON
.
parse
(
String
.
valueOf
(
detail
.
get
(
"productQualityYieldProve"
))));
detail
.
put
(
"insUseMaintainExplain"
,
JSON
.
parse
(
String
.
valueOf
(
detail
.
get
(
"insUseMaintainExplain"
))));
detail
.
put
(
"inspectReport"
,
JSON
.
parse
(
String
.
valueOf
(
detail
.
get
(
"inspectReport"
))));
detail
.
put
(
"designStandard"
,
JSON
.
parse
(
String
.
valueOf
(
detail
.
get
(
"designStandard"
))));
detail
.
put
(
"designDoc"
,
JSON
.
parse
(
String
.
valueOf
(
detail
.
get
(
"designDoc"
))));
BeanUtil
.
copyProperties
(
installationInfo
,
detail
,
"equList"
,
"supervisoryCode"
,
"factoryNum"
);
return
new
HashMap
<
String
,
Map
<
String
,
Object
>>()
{{
return
new
HashMap
<
String
,
Map
<
String
,
Object
>>()
{{
this
.
put
(
"installationInfo"
,
detail
);
this
.
put
(
"installationInfo"
,
map
);
}};
}};
}
}
...
...
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