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
084cdf80
Commit
084cdf80
authored
Jan 10, 2024
by
刘凡
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
移装变更登记,详情返回设备详情
parent
4aa3637c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
JgChangeRegistrationTransferServiceImpl.java
...service/impl/JgChangeRegistrationTransferServiceImpl.java
+10
-3
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/JgChangeRegistrationTransferServiceImpl.java
View file @
084cdf80
...
@@ -455,6 +455,7 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang
...
@@ -455,6 +455,7 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang
public
Map
<
String
,
Map
<
String
,
Object
>>
getTransferDetail
(
String
sequenceNbr
,
String
equipId
)
{
public
Map
<
String
,
Map
<
String
,
Object
>>
getTransferDetail
(
String
sequenceNbr
,
String
equipId
)
{
Map
<
String
,
Map
<
String
,
Object
>>
pageDataMap
=
new
HashMap
<>();
Map
<
String
,
Map
<
String
,
Object
>>
pageDataMap
=
new
HashMap
<>();
Map
<
String
,
Object
>
resultDataMap
=
new
HashMap
<>();
Map
<
String
,
Object
>
resultDataMap
=
new
HashMap
<>();
String
record
=
""
;
//移装变更详情
//移装变更详情
JgChangeRegistrationTransfer
transferById
=
this
.
getById
(
sequenceNbr
);
JgChangeRegistrationTransfer
transferById
=
this
.
getById
(
sequenceNbr
);
...
@@ -462,6 +463,7 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang
...
@@ -462,6 +463,7 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang
Map
<
String
,
Object
>
transferToMap
=
Bean
.
BeantoMap
(
transferById
);
Map
<
String
,
Object
>
transferToMap
=
Bean
.
BeantoMap
(
transferById
);
resultDataMap
.
putAll
(
transferToMap
);
resultDataMap
.
putAll
(
transferToMap
);
}
}
//判断流程是否执行完成,
//判断流程是否执行完成,
// 1、未执行完成时查询历史表
// 1、未执行完成时查询历史表
// 2、执行完成后查询使用信息表
// 2、执行完成后查询使用信息表
...
@@ -469,7 +471,7 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang
...
@@ -469,7 +471,7 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang
JgRegistrationHistory
historyData
=
jgRegistrationHistoryService
.
getDteailByRecord
(
equipId
,
transferById
.
getApplyNo
());
JgRegistrationHistory
historyData
=
jgRegistrationHistoryService
.
getDteailByRecord
(
equipId
,
transferById
.
getApplyNo
());
if
(!
ValidationUtil
.
isEmpty
(
historyData
))
{
if
(!
ValidationUtil
.
isEmpty
(
historyData
))
{
JSONObject
newPosition
=
JSON
.
parseObject
(
historyData
.
getChangeData
());
JSONObject
newPosition
=
JSON
.
parseObject
(
historyData
.
getChangeData
());
String
record
=
newPosition
.
getString
(
"record"
);
record
=
newPosition
.
getString
(
"record"
);
String
receiveOrgCode
=
newPosition
.
getString
(
"receiveOrgCode"
);
String
receiveOrgCode
=
newPosition
.
getString
(
"receiveOrgCode"
);
String
equCode
=
newPosition
.
getString
(
"equCode"
);
String
equCode
=
newPosition
.
getString
(
"equCode"
);
String
province
=
newPosition
.
getString
(
"province"
);
String
province
=
newPosition
.
getString
(
"province"
);
...
@@ -516,7 +518,8 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang
...
@@ -516,7 +518,8 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang
if
(!
ValidationUtil
.
isEmpty
(
useInfoByRecord
))
{
if
(!
ValidationUtil
.
isEmpty
(
useInfoByRecord
))
{
Map
<
String
,
Object
>
useInfoToMap
=
Bean
.
BeantoMap
(
useInfoByRecord
);
Map
<
String
,
Object
>
useInfoToMap
=
Bean
.
BeantoMap
(
useInfoByRecord
);
resultDataMap
.
put
(
"record"
,
useInfoByRecord
.
getRecord
());
record
=
useInfoByRecord
.
getRecord
();
resultDataMap
.
put
(
"record"
,
record
);
resultDataMap
.
putAll
(
useInfoToMap
);
resultDataMap
.
putAll
(
useInfoToMap
);
// 省市区街道字段
// 省市区街道字段
resultDataMap
.
put
(
"province"
,
useInfoByRecord
.
getProvince
()
+
"_"
+
useInfoByRecord
.
getProvinceName
());
resultDataMap
.
put
(
"province"
,
useInfoByRecord
.
getProvince
()
+
"_"
+
useInfoByRecord
.
getProvinceName
());
...
@@ -533,7 +536,11 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang
...
@@ -533,7 +536,11 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang
}
}
resultDataMap
.
put
(
"receiveOrgCode"
,
transferById
.
getReceiveOrgCode
()
+
"_"
+
transferById
.
getReceiveOrgName
());
resultDataMap
.
put
(
"receiveOrgCode"
,
transferById
.
getReceiveOrgCode
()
+
"_"
+
transferById
.
getReceiveOrgName
());
}
}
//查询设备详情
if
(!
ValidationUtil
.
isEmpty
(
record
)){
Map
<
String
,
Object
>
equipDetailMap
=
idxBizJgRegisterInfoService
.
getDetailFieldCamelCaseByRecord
(
record
);
resultDataMap
.
putAll
(
equipDetailMap
);
}
if
(!
resultDataMap
.
isEmpty
())
{
if
(!
resultDataMap
.
isEmpty
())
{
pageDataMap
.
put
(
TABLE_PAGE_ID
,
resultDataMap
);
pageDataMap
.
put
(
TABLE_PAGE_ID
,
resultDataMap
);
}
}
...
...
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