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
7404c550
Commit
7404c550
authored
Jan 11, 2024
by
suhuiguang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop_tzs_register' of…
Merge branch 'develop_tzs_register' of
http://36.40.66.175:5000/moa/amos-boot-biz
into develop_tzs_register
parents
cd72d680
edc38296
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
JgChangeRegistrationTransferServiceImpl.java
...service/impl/JgChangeRegistrationTransferServiceImpl.java
+12
-10
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 @
7404c550
...
...
@@ -309,13 +309,13 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang
}
//发起流程
if
(
!
ObjectUtils
.
isEmpty
(
map
.
get
(
"submit"
)
))
{
if
(
"1"
.
equals
(
submitType
))
{
String
instanceId
=
""
;
if
(
map
.
containsKey
(
"instanceId"
))
{
instanceId
=
map
.
get
(
"instanceId"
).
toString
();
}
else
{
// 如果是新启动的流程开启自动访问
String
equipListName
=
this
.
getBaseMapper
().
getEquiplistNameByEquiplist
(
Optional
.
ofNullable
(
map
.
get
(
"equList"
).
toString
()).
orElse
(
" "
));
String
equipListName
=
this
.
getBaseMapper
().
getEquiplistNameByEquiplist
(
Optional
.
ofNullable
(
tableData
.
get
(
"equList"
).
toString
()).
orElse
(
" "
));
oldTransfer
.
setEquipListName
(
equipListName
);
oldTransfer
.
setCreateUserId
(
reginParams
.
getUserModel
().
getUserId
());
oldTransfer
.
setCreateUserName
(
reginParams
.
getUserModel
().
getRealName
());
...
...
@@ -466,7 +466,12 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang
public
Map
<
String
,
Map
<
String
,
Object
>>
getTransferDetail
(
String
sequenceNbr
,
String
equipId
)
{
Map
<
String
,
Map
<
String
,
Object
>>
pageDataMap
=
new
HashMap
<>();
Map
<
String
,
Object
>
resultDataMap
=
new
HashMap
<>();
String
record
=
""
;
//查询设备详情
if
(!
ValidationUtil
.
isEmpty
(
equipId
))
{
Map
<
String
,
Object
>
equipDetailMap
=
idxBizJgRegisterInfoService
.
getDetailFieldCamelCaseByRecord
(
equipId
);
resultDataMap
.
putAll
(
equipDetailMap
);
}
//移装变更详情
JgChangeRegistrationTransfer
transferById
=
this
.
getById
(
sequenceNbr
);
...
...
@@ -482,7 +487,7 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang
JgRegistrationHistory
historyData
=
jgRegistrationHistoryService
.
getDteailByRecord
(
equipId
,
transferById
.
getApplyNo
());
if
(!
ValidationUtil
.
isEmpty
(
historyData
))
{
JSONObject
newPosition
=
JSON
.
parseObject
(
historyData
.
getChangeData
());
record
=
newPosition
.
getString
(
"record"
);
String
record
=
newPosition
.
getString
(
"record"
);
String
receiveOrgCode
=
newPosition
.
getString
(
"receiveOrgCode"
);
String
equCode
=
newPosition
.
getString
(
"equCode"
);
String
province
=
newPosition
.
getString
(
"province"
);
...
...
@@ -529,7 +534,7 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang
if
(!
ValidationUtil
.
isEmpty
(
useInfoByRecord
))
{
Map
<
String
,
Object
>
useInfoToMap
=
Bean
.
BeantoMap
(
useInfoByRecord
);
record
=
useInfoByRecord
.
getRecord
();
String
record
=
useInfoByRecord
.
getRecord
();
resultDataMap
.
put
(
"record"
,
record
);
resultDataMap
.
putAll
(
useInfoToMap
);
// 省市区街道字段
...
...
@@ -547,11 +552,7 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang
}
resultDataMap
.
put
(
"receiveOrgCode"
,
transferById
.
getReceiveOrgCode
()
+
"_"
+
transferById
.
getReceiveOrgName
());
}
//查询设备详情
if
(!
ValidationUtil
.
isEmpty
(
record
))
{
Map
<
String
,
Object
>
equipDetailMap
=
idxBizJgRegisterInfoService
.
getDetailFieldCamelCaseByRecord
(
record
);
resultDataMap
.
putAll
(
equipDetailMap
);
}
if
(!
resultDataMap
.
isEmpty
())
{
pageDataMap
.
put
(
TABLE_PAGE_ID
,
resultDataMap
);
}
...
...
@@ -1059,6 +1060,7 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang
toDoTask
.
setStartUser
(
transfer
.
getCreateUserName
());
toDoTask
.
setStartUserCompanyName
(
transfer
.
getCreateUserCompanyName
());
toDoTask
.
setStartDate
(
new
Date
());
toDoTask
.
setNextExecuteUser
(
transfer
.
getNextExecutorIds
());
toDoTasklist
.
add
(
toDoTask
);
}
commonService
.
buildTaskModel
(
toDoTasklist
);
...
...
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