diff --git a/hzims-service/equipment/src/main/java/com/hnac/hzims/fdp/service/impl/FdpListTableDataServiceImpl.java b/hzims-service/equipment/src/main/java/com/hnac/hzims/fdp/service/impl/FdpListTableDataServiceImpl.java index a67970a..31765d8 100644 --- a/hzims-service/equipment/src/main/java/com/hnac/hzims/fdp/service/impl/FdpListTableDataServiceImpl.java +++ b/hzims-service/equipment/src/main/java/com/hnac/hzims/fdp/service/impl/FdpListTableDataServiceImpl.java @@ -85,7 +85,7 @@ public class FdpListTableDataServiceImpl implements IFdpListTableDataService { page.setCurrent(req.getPageIndex() + 1); req.setDisplay(1); req.setIsRoot(0); - req.setOrderBy("NAME"); + req.setOrderBy("STATION,ORD,NAME"); req.setOrderKind("desc"); String result = HttpRequestUtil.postCallObjectParam(req, getNeoFaultTableData, "POST"); log.info("FdpFaultTableListEntity接口:"+result.toString()); diff --git a/hzims-service/hzims-scheduled/src/main/java/com/hnac/hzims/scheduled/service/operation/monitor/impl/MonitorServiceImpl.java b/hzims-service/hzims-scheduled/src/main/java/com/hnac/hzims/scheduled/service/operation/monitor/impl/MonitorServiceImpl.java index fc3478e..b2131d8 100644 --- a/hzims-service/hzims-scheduled/src/main/java/com/hnac/hzims/scheduled/service/operation/monitor/impl/MonitorServiceImpl.java +++ b/hzims-service/hzims-scheduled/src/main/java/com/hnac/hzims/scheduled/service/operation/monitor/impl/MonitorServiceImpl.java @@ -205,7 +205,7 @@ public class MonitorServiceImpl implements MonitorService { List objects = redisClient.getBatchRealDataByRealId(stationReal.getStation(),realIds); for(int i = 0; i < realIds.size() ;i++){ if(ObjectUtil.isEmpty(objects.get(i))){ - log.error(realIds.get(i) + "is null"); +// log.error(realIds.get(i) + "is null"); }else{ Map attribute = (Map) JSONObject.parse(objects.get(i)); attribute.put("realId",attribute.get("k")); diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/duty/service/impl/ImsDutyRecServiceImpl.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/duty/service/impl/ImsDutyRecServiceImpl.java index 26b4944..cfd18ef 100644 --- a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/duty/service/impl/ImsDutyRecServiceImpl.java +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/duty/service/impl/ImsDutyRecServiceImpl.java @@ -1571,7 +1571,7 @@ public class ImsDutyRecServiceImpl extends BaseServiceImpl paramMap = new HashMap<>(); paramMap.put("startDate", startTime); paramMap.put("endDate", endTime); - paramMap.put("deptList", deptId); + paramMap.put("deptList", Arrays.asList(deptId)); R> workTicketInfo = ticketInfoClient.getWorkTicketInfo(paramMap); if(workTicketInfo.isSuccess()&& cn.hutool.core.util.ObjectUtil.isNotEmpty(workTicketInfo.getData())){ List ticketInfoData = workTicketInfo.getData(); @@ -1583,10 +1583,9 @@ public class ImsDutyRecServiceImpl extends BaseServiceImpl invalidList = ticketInfoData.stream().filter(item -> "废票".equals(item.getFlowTaskName())) .collect(Collectors.toList()); dutyLogEntity.setWorkCancel(String.valueOf(invalidList.size())); - Integer i=0; //工作票未执行数量 List unExecutedList = ticketInfoData.stream() - .filter(item -> i.equals(item.getImplementStatus())) + .filter(item -> "0".equals(item.getImplementStatus())) .collect(Collectors.toList()); dutyLogEntity.setWorkUnFinish(String.valueOf(unExecutedList.size())); // 工作票执行数量 diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/utils/BaseUtil.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/utils/BaseUtil.java index 1f275a7..0695530 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/utils/BaseUtil.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/utils/BaseUtil.java @@ -78,6 +78,7 @@ public class BaseUtil { BaseUtil.exportWord(res, wordPath); } catch (Exception e) { log.error("文件导出异常: {}", e.getMessage()); + e.printStackTrace(); } AsposeUtil.wordToPdf(wordPath, pdfPath); BaseUtil.readPdf(response,pdfPath); @@ -138,6 +139,7 @@ public class BaseUtil { JSONObject jsonObject = jsonArray.getJSONObject(i); String name = jsonObject.getString("name"); String url = jsonObject.getString("url"); + url = URLEncoder.encode(url, "UTF-8"); String id = paragraph.getDocument().getPackagePart().addExternalRelationship(url, XWPFRelation.HYPERLINK.getRelation()).getId(); CTHyperlink cLink = paragraph.getCTP().addNewHyperlink(); cLink.setId(id); @@ -146,7 +148,7 @@ public class BaseUtil { CTR ctr = CTR.Factory.newInstance(); ctr.setTArray(new CTText[]{ctText}); cLink.setRArray(new CTR[]{ctr}); - if(i