|
|
|
@ -277,8 +277,6 @@ public class IMesYfBoardServiceImpl implements IMesYfBoardService {
|
|
|
|
|
//最新的点检单结果为 NOK
|
|
|
|
|
//结果设置为“异常”
|
|
|
|
|
resultModel.setInspectionResults(MesExtEnumUtil.INSPECTION_RESULTS.ABNORMAL.getValue());
|
|
|
|
|
} else {
|
|
|
|
|
resultModel.setInspectionResults(MesExtEnumUtil.INSPECTION_RESULTS.NOT_DONE.getValue());
|
|
|
|
|
}
|
|
|
|
|
}else {
|
|
|
|
|
//不存在该种点检类型的点检单数据
|
|
|
|
@ -418,7 +416,7 @@ public class IMesYfBoardServiceImpl implements IMesYfBoardService {
|
|
|
|
|
* @return 当前时间前指定小时数内的每个小时区间的开始与结束时间
|
|
|
|
|
*/
|
|
|
|
|
private Map<String, Map<String, String>> getLastHoursTimeZoneMap(Integer designatedQuantity) {
|
|
|
|
|
Map<String, Map<String, String>> timeZoneMap = new TreeMap<>();
|
|
|
|
|
Map<String, Map<String, String>> timeZoneMap = new LinkedHashMap<>();
|
|
|
|
|
DateTimeFormatter hourFormatter = DateTimeFormatter.ofPattern("HH");
|
|
|
|
|
DateTimeFormatter dayFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd ");
|
|
|
|
|
LocalDateTime nowTime = LocalDateTime.now();
|
|
|
|
@ -452,7 +450,14 @@ public class IMesYfBoardServiceImpl implements IMesYfBoardService {
|
|
|
|
|
timeZoneMap.put(START_TIME, map);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return timeZoneMap;
|
|
|
|
|
//倒序处理
|
|
|
|
|
Map<String, Map<String, String>> collectResult = new LinkedHashMap<>();
|
|
|
|
|
ListIterator<Map.Entry> i = new ArrayList<Map.Entry>(timeZoneMap.entrySet()).listIterator(timeZoneMap.size());
|
|
|
|
|
while (i.hasPrevious()) {
|
|
|
|
|
Map.Entry entry = i.previous();
|
|
|
|
|
collectResult.put(String.valueOf(entry.getKey()), (HashMap<String, String>) entry.getValue());
|
|
|
|
|
}
|
|
|
|
|
return collectResult;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|