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
b3dcd50f
Commit
b3dcd50f
authored
Jan 23, 2024
by
zhangsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
移装告知 和 安装告知 详情API修改
parent
4e18ceb2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
33 additions
and
41 deletions
+33
-41
JgInstallationNoticeMapper.xml
.../src/main/resources/mapper/JgInstallationNoticeMapper.xml
+6
-6
JgTransferNoticeMapper.xml
...-api/src/main/resources/mapper/JgTransferNoticeMapper.xml
+6
-6
JgInstallationNoticeServiceImpl.java
.../jg/biz/service/impl/JgInstallationNoticeServiceImpl.java
+10
-6
JgTransferNoticeServiceImpl.java
...dule/jg/biz/service/impl/JgTransferNoticeServiceImpl.java
+11
-23
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgInstallationNoticeMapper.xml
View file @
b3dcd50f
...
@@ -88,13 +88,13 @@
...
@@ -88,13 +88,13 @@
tec1.name AS equList,
tec1.name AS equList,
tec.name AS equDefine,
tec.name AS equDefine,
i
sn.equ_register_code
AS equRegisterCode,
i
f(isn.equ_register_code is null or isn.equ_register_code = 'null', '', isn.equ_register_code)
AS equRegisterCode,
ri.
product_name
AS productName,
ri.
PRODUCT_NAME
AS productName,
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 proDuctPhoto,
ri.
PRODUCT_PHOTO
AS proDuctPhoto,
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,
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgTransferNoticeMapper.xml
View file @
b3dcd50f
...
@@ -120,12 +120,12 @@
...
@@ -120,12 +120,12 @@
oi.SUPERVISORY_CODE as supervisoryCode,
oi.SUPERVISORY_CODE as supervisoryCode,
tjtn.construction_manager AS installLeaderName,
tjtn.construction_manager AS installLeaderName,
tjtn.construction_manager_phone AS installLeaderPhone,
tjtn.construction_manager_phone AS installLeaderPhone,
ri.
equ_code
AS equRegisterCode,
ri.
EQU_CODE
AS equRegisterCode,
ri.
product_name
AS productName,
ri.
PRODUCT_NAME
AS productName,
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 proDuctPhoto,
ri.
PRODUCT_PHOTO
AS proDuctPhoto,
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,
...
...
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 @
b3dcd50f
...
@@ -200,14 +200,18 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
...
@@ -200,14 +200,18 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
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
()));
}
}
}
Map
<
String
,
Object
>
map
=
equipmentInfos
.
get
(
0
);
Map
<
String
,
Object
>
detail
=
equipmentInfos
.
get
(
0
);
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"
,
"equRegisterCode"
);
return
new
HashMap
<
String
,
Map
<
String
,
Object
>>()
{{
return
new
HashMap
<
String
,
Map
<
String
,
Object
>>()
{{
this
.
put
(
"installationInfo"
,
map
);
this
.
put
(
"installationInfo"
,
detail
);
}};
}};
}
}
...
...
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/JgTransferNoticeServiceImpl.java
View file @
b3dcd50f
...
@@ -127,29 +127,8 @@ public class JgTransferNoticeServiceImpl extends BaseService<JgTransferNoticeDto
...
@@ -127,29 +127,8 @@ public class JgTransferNoticeServiceImpl extends BaseService<JgTransferNoticeDto
"productQualityYieldProve"
,
"insUseMaintainExplain"
,
"inspectReport"
,
"productQualityYieldProve"
,
"insUseMaintainExplain"
,
"inspectReport"
,
"proxyStatementAttachment"
,
"installContractAttachment"
,
"powerOfAttorney"
,
"constructionContract"
};
"proxyStatementAttachment"
,
"installContractAttachment"
,
"powerOfAttorney"
,
"constructionContract"
};
// 设备信息
// 设备信息
QueryWrapper
<
JgTransferNoticeEq
>
wrapper
=
new
QueryWrapper
<>();
List
<
Map
<
String
,
Object
>>
equipmentInfos
=
jgTransferNoticeMapper
.
queryEquipInformation
(
sequenceNbr
);
wrapper
.
lambda
().
eq
(
JgTransferNoticeEq:
:
getEquipTransferId
,
notice
.
getSequenceNbr
());
JgTransferNoticeEq
jgTransferNoticeEq
=
jgTransferNoticeEqMapper
.
selectOne
(
wrapper
);
Map
<
String
,
Object
>
detail
=
jgUseRegistrationMapper
.
getDetail
(
jgTransferNoticeEq
.
getEquId
());
Map
<
String
,
Object
>
inspectDetail
=
jgUseRegistrationMapper
.
getInspectDetail
(
jgTransferNoticeEq
.
getEquId
());
Map
<
String
,
Object
>
useDetail
=
jgUseRegistrationMapper
.
getUseDetail
(
jgTransferNoticeEq
.
getEquId
());
Map
<
String
,
Object
>
useDestail
=
jgUseRegistrationMapper
.
getDesDetail
(
jgTransferNoticeEq
.
getEquId
());
if
(!
ObjectUtils
.
isEmpty
(
inspectDetail
))
{
detail
.
putAll
(
inspectDetail
);
}
if
(!
ObjectUtils
.
isEmpty
(
useDetail
))
{
detail
.
putAll
(
useDetail
);
}
if
(!
ObjectUtils
.
isEmpty
(
useDestail
))
{
detail
.
putAll
(
useDestail
);
}
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"
))));
for
(
String
s
:
fields
)
{
for
(
String
s
:
fields
)
{
if
(
transferNotice
.
containsKey
(
s
))
{
if
(
transferNotice
.
containsKey
(
s
))
{
if
(
"powerOfAttorney"
.
equalsIgnoreCase
(
s
))
{
if
(
"powerOfAttorney"
.
equalsIgnoreCase
(
s
))
{
...
@@ -161,10 +140,19 @@ public class JgTransferNoticeServiceImpl extends BaseService<JgTransferNoticeDto
...
@@ -161,10 +140,19 @@ public class JgTransferNoticeServiceImpl extends BaseService<JgTransferNoticeDto
}
}
}
}
}
}
Map
<
String
,
Object
>
detail
=
equipmentInfos
.
get
(
0
);
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
(
transferNotice
,
detail
,
"equList"
,
"supervisoryCode"
);
BeanUtil
.
copyProperties
(
transferNotice
,
detail
,
"equList"
,
"supervisoryCode"
);
return
new
HashMap
<
String
,
Map
<
String
,
Object
>>()
{{
return
new
HashMap
<
String
,
Map
<
String
,
Object
>>()
{{
this
.
put
(
"transferNoticeInfo"
,
detail
);
this
.
put
(
"transferNoticeInfo"
,
detail
);
}};
}};
}
}
@Override
@Override
...
...
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