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
c30859fa
Commit
c30859fa
authored
Mar 21, 2024
by
韩桐桐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(jg):设备详情接口 设备业务数据添加
parent
e5370260
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
7 deletions
+16
-7
IdxBizJgRegisterInfoServiceImpl.java
.../jg/biz/service/impl/IdxBizJgRegisterInfoServiceImpl.java
+16
-7
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/IdxBizJgRegisterInfoServiceImpl.java
View file @
c30859fa
...
...
@@ -753,7 +753,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
}
}
objMap
.
put
(
"completedBusinessTypes"
,
judgeTheBusinessAccordingByRecord
(
record
));
objMap
.
put
(
"completedBusinessTypes"
,
judgeTheBusinessAccordingByRecord
(
record
,
objMap
));
return
objMap
;
}
...
...
@@ -762,18 +762,27 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
* 根据record判断设备完成了哪些业务(安装告知/维保备案/使用登记)
* @return
*/
public
List
<
String
>
judgeTheBusinessAccordingByRecord
(
String
record
){
List
<
String
>
l
ist
=
new
ArrayList
<>();
public
List
<
String
>
judgeTheBusinessAccordingByRecord
(
String
record
,
Map
<
String
,
Object
>
objMap
){
List
<
String
>
businessL
ist
=
new
ArrayList
<>();
// 安装告知
Map
<
String
,
Object
>
installDetail
=
jgUseRegistrationMapper
.
getiInstallDetail
(
record
);
list
.
add
(!
ObjectUtils
.
isEmpty
(
installDetail
)
?
"安装告知"
:
null
);
if
(!
ObjectUtils
.
isEmpty
(
installDetail
)){
businessList
.
add
(
"安装告知"
);
objMap
.
putAll
(
installDetail
);
}
// 维保备案
Map
<
String
,
Object
>
maintenanceDetail
=
jgUseRegistrationMapper
.
getMaintenanceDetail
(
record
);
list
.
add
(!
ObjectUtils
.
isEmpty
(
maintenanceDetail
)
?
"维保备案"
:
null
);
if
(!
ObjectUtils
.
isEmpty
(
maintenanceDetail
)){
businessList
.
add
(
"维保备案"
);
objMap
.
putAll
(
maintenanceDetail
);
}
// 使用登记
Map
<
String
,
Object
>
useRegistrationDetail
=
jgUseRegistrationMapper
.
getUseRegistrationDetail
(
record
);
list
.
add
(!
ObjectUtils
.
isEmpty
(
useRegistrationDetail
)
?
"使用登记"
:
null
);
return
list
;
if
(!
ObjectUtils
.
isEmpty
(
useRegistrationDetail
)){
businessList
.
add
(
"使用登记"
);
objMap
.
putAll
(
useRegistrationDetail
);
}
return
businessList
;
}
/**
...
...
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