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
8a7a56be
Commit
8a7a56be
authored
Jan 07, 2023
by
maoying
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop_dl_plan6_temp' of…
Merge branch 'develop_dl_plan6_temp' of
http://39.98.45.134:8090/moa/amos-boot-biz
into develop_dl_plan6_temp
parents
ebfac679
15380d69
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
40 additions
and
30 deletions
+40
-30
EquipmentSpecificAlarmServiceImpl.java
...anage/service/impl/EquipmentSpecificAlarmServiceImpl.java
+10
-0
PointServiceImpl.java
...n/amos/patrol/business/service/impl/PointServiceImpl.java
+28
-28
dbTemplate_input_item.xml
...ol/src/main/resources/db/mapper/dbTemplate_input_item.xml
+1
-1
pointMapper.xml
...ystem-patrol/src/main/resources/db/mapper/pointMapper.xml
+1
-1
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/EquipmentSpecificAlarmServiceImpl.java
View file @
8a7a56be
...
@@ -109,10 +109,20 @@ public class EquipmentSpecificAlarmServiceImpl extends ServiceImpl<EquipmentSpec
...
@@ -109,10 +109,20 @@ public class EquipmentSpecificAlarmServiceImpl extends ServiceImpl<EquipmentSpec
if
(
0
==
list
.
size
())
{
if
(
0
==
list
.
size
())
{
throw
new
RuntimeException
(
"导出数据列表无数据!"
);
throw
new
RuntimeException
(
"导出数据列表无数据!"
);
}
}
if
(
alarmType
.
equals
(
"FIREALARM"
)){
ExcelUtil
.
createTemplate
(
response
,
"设备火灾报警信息"
,
"设备火灾报警信息"
,
equipmentDownloads
,
EquipmentAlarmDownloadVO
.
class
,
null
,
false
);
}
else
if
(
alarmType
.
equals
(
"BREAKDOWN"
)){
ExcelUtil
.
createTemplate
(
response
,
"设备故障告警信息"
,
"设备故障告警信息"
,
equipmentDownloads
,
EquipmentAlarmDownloadVO
.
class
,
null
,
false
);
}
else
{
ExcelUtil
.
createTemplate
(
response
,
"设备告警信息"
,
"设备告警信息"
,
equipmentDownloads
,
EquipmentAlarmDownloadVO
.
class
,
null
,
false
);
ExcelUtil
.
createTemplate
(
response
,
"设备告警信息"
,
"设备告警信息"
,
equipmentDownloads
,
EquipmentAlarmDownloadVO
.
class
,
null
,
false
);
}
}
}
public
List
<
EquipmentAlarmDownloadVO
>
handleExportData
(
List
<
Long
>
ids
,
List
<
HashMap
<
String
,
Object
>>
list
)
{
public
List
<
EquipmentAlarmDownloadVO
>
handleExportData
(
List
<
Long
>
ids
,
List
<
HashMap
<
String
,
Object
>>
list
)
{
List
<
EquipmentAlarmDownloadVO
>
equipmentDownloads
=
new
ArrayList
<>();
List
<
EquipmentAlarmDownloadVO
>
equipmentDownloads
=
new
ArrayList
<>();
if
(!
ObjectUtils
.
isEmpty
(
ids
)
&&
0
<
ids
.
size
())
{
if
(!
ObjectUtils
.
isEmpty
(
ids
)
&&
0
<
ids
.
size
())
{
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/service/impl/PointServiceImpl.java
View file @
8a7a56be
...
@@ -1133,36 +1133,36 @@ public class PointServiceImpl implements IPointService {
...
@@ -1133,36 +1133,36 @@ public class PointServiceImpl implements IPointService {
Map
<
String
,
Object
>
resp
=
new
HashMap
<
String
,
Object
>();
Map
<
String
,
Object
>
resp
=
new
HashMap
<
String
,
Object
>();
Map
<
String
,
Object
>
point
=
pointMapper
.
getPointById
(
id
);
Map
<
String
,
Object
>
point
=
pointMapper
.
getPointById
(
id
);
if
(
StringUtil
.
isNotEmpty
(
point
.
get
(
"depid"
)))
{
//
if (StringUtil.isNotEmpty(point.get("depid"))) {
List
<
LinkedHashMap
>
departmentBos
=
remoteSecurityService
.
listDepartmentByDeptIds
(
toke
,
product
,
appKey
,
point
.
get
(
"depid"
)
+
""
);
//
List<LinkedHashMap> departmentBos = remoteSecurityService.listDepartmentByDeptIds(toke, product, appKey, point.get("depid") + "");
if
(
departmentBos
!=
null
&&
departmentBos
.
size
()
>
0
)
{
//
if (departmentBos != null && departmentBos.size() > 0) {
for
(
int
i
=
0
;
i
<
departmentBos
.
size
();
i
++)
{
//
for (int i = 0; i < departmentBos.size(); i++) {
point
.
put
(
"departmentName"
,
departmentBos
.
get
(
i
).
get
(
"departmentName"
));
//
point.put("departmentName", departmentBos.get(i).get("departmentName"));
//
//
}
//
}
}
//
}
//
}
//
}
// deptName = checkPointBo.getExecuteDeptId();
// deptName = checkPointBo.getExecuteDeptId();
if
(
StringUtil
.
isNotEmpty
(
point
.
get
(
"userName"
)))
{
//
if (StringUtil.isNotEmpty(point.get("userName"))) {
List
<
AgencyUserModel
>
userModels
=
remoteSecurityService
.
listUserByUserIds
(
toke
,
product
,
appKey
,
point
.
get
(
"userName"
)
+
""
);
//
List<AgencyUserModel> userModels = remoteSecurityService.listUserByUserIds(toke, product, appKey, point.get("userName") + "");
String
userName
=
""
;
//
String userName = "";
if
(
userModels
!=
null
&&
userModels
.
size
()
>
0
)
{
//
if (userModels != null && userModels.size() > 0) {
for
(
int
i
=
0
;
i
<
userModels
.
size
();
i
++)
{
//
for (int i = 0; i < userModels.size(); i++) {
if
(
i
==
userModels
.
size
()
-
1
)
{
//
if (i == userModels.size() - 1) {
userName
=
userName
+
userModels
.
get
(
i
).
getRealName
();
//
userName = userName + userModels.get(i).getRealName();
}
else
{
//
} else {
userName
=
userName
+
userModels
.
get
(
i
).
getRealName
()
+
","
;
//
userName = userName + userModels.get(i).getRealName() + ",";
}
//
}
//
}
//
}
point
.
put
(
"userName"
,
userName
);
//
point.put("userName", userName);
}
//
}
//
//
}
//
}
...
...
amos-boot-system-patrol/src/main/resources/db/mapper/dbTemplate_input_item.xml
View file @
8a7a56be
...
@@ -212,7 +212,7 @@
...
@@ -212,7 +212,7 @@
<!-- ,prpi.id as routePointItemId-->
<!-- ,prpi.id as routePointItemId-->
FROM
FROM
p_point_classify ppc
p_point_classify ppc
LEFT JOIN p_point_inputitem ppi ON ppi.classify_ids = ppc.id
LEFT JOIN p_point_inputitem ppi ON ppi.classify_ids = ppc.id
and ppc.point_id=ppi.point_id
LEFT JOIN p_input_item pii ON pii.id = ppi.input_item_id
LEFT JOIN p_input_item pii ON pii.id = ppi.input_item_id
<!-- lEFT JOIN p_route_point_item prpi ON prpi.point_input_item_id = pii.id-->
<!-- lEFT JOIN p_route_point_item prpi ON prpi.point_input_item_id = pii.id-->
WHERE pii.is_delete = '0'
WHERE pii.is_delete = '0'
...
...
amos-boot-system-patrol/src/main/resources/db/mapper/pointMapper.xml
View file @
8a7a56be
...
@@ -335,7 +335,7 @@
...
@@ -335,7 +335,7 @@
'移动点'
'移动点'
END) fixed,
END) fixed,
p.charge_person_name userName,
p.charge_person_name userName,
p.charge_dept_id depid
,
p.biz_org_name departmentName
,
IFNULL(p.risk_source_id, '') as buildingId,
IFNULL(p.risk_source_id, '') as buildingId,
p.remark,
p.remark,
p.offline
p.offline
...
...
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