Commit 8a7a56be authored by maoying's avatar maoying

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
...@@ -109,7 +109,17 @@ public class EquipmentSpecificAlarmServiceImpl extends ServiceImpl<EquipmentSpec ...@@ -109,7 +109,17 @@ public class EquipmentSpecificAlarmServiceImpl extends ServiceImpl<EquipmentSpec
if (0 == list.size()) { if (0 == list.size()) {
throw new RuntimeException("导出数据列表无数据!"); throw new RuntimeException("导出数据列表无数据!");
} }
ExcelUtil.createTemplate(response, "设备告警信息", "设备告警信息", equipmentDownloads, EquipmentAlarmDownloadVO.class, null, false);
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);
}
} }
......
...@@ -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);
} // }
//
//
} // }
......
...@@ -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'
......
...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment