|
@@ -79,7 +79,7 @@ public class RemoteOpcLogServiceImpl extends BaseServiceImpl<RemoteOpcLogMapper,
|
|
|
public List<RemoteOpcLogHistoryVO> selectListHistory(RemoteOpcLogDTO remoteOpcLogDTO) {
|
|
|
List<RemoteOpcLogHistoryVO> voList = new ArrayList<>();
|
|
|
LocalDateTime createdTimeEnd = remoteOpcLogDTO.getCreatedTimeEnd();
|
|
|
- String timeA = DateUtils.dateToString(createdTimeEnd);
|
|
|
+ String timeA = DateUtils.dateToString(createdTimeEnd, DateUtils.PATTERN_HMS);
|
|
|
int year = createdTimeEnd.getYear();
|
|
|
int month = createdTimeEnd.getMonthValue();
|
|
|
int day = createdTimeEnd.getDayOfMonth();
|
|
@@ -95,16 +95,16 @@ public class RemoteOpcLogServiceImpl extends BaseServiceImpl<RemoteOpcLogMapper,
|
|
|
String timeB = null;
|
|
|
if (remoteOpcLogDTO.getSearchType() == 1) {// 1小时
|
|
|
LocalDateTime createdTimeStart = createdTimeEnd.plusHours(-1);
|
|
|
- timeB = DateUtils.dateToString(createdTimeStart);
|
|
|
+ timeB = DateUtils.dateToString(createdTimeStart, DateUtils.PATTERN_HMS);
|
|
|
} else if (remoteOpcLogDTO.getSearchType() == 2) {// 2小时
|
|
|
LocalDateTime createdTimeStart = createdTimeEnd.plusHours(-2);
|
|
|
- timeB = DateUtils.dateToString(createdTimeStart);
|
|
|
+ timeB = DateUtils.dateToString(createdTimeStart, DateUtils.PATTERN_HMS);
|
|
|
} else if (remoteOpcLogDTO.getSearchType() == 3) {// 3小时
|
|
|
LocalDateTime createdTimeStart = createdTimeEnd.plusHours(-3);
|
|
|
- timeB = DateUtils.dateToString(createdTimeStart);
|
|
|
+ timeB = DateUtils.dateToString(createdTimeStart, DateUtils.PATTERN_HMS);
|
|
|
} else {// 1小时 默认
|
|
|
LocalDateTime createdTimeStart = createdTimeEnd.plusHours(-1);
|
|
|
- timeB = DateUtils.dateToString(createdTimeStart);
|
|
|
+ timeB = DateUtils.dateToString(createdTimeStart, DateUtils.PATTERN_HMS);
|
|
|
}
|
|
|
RemoteOpcLogVO vo = remoteOpcLogList.get(0);
|
|
|
String result = vo.getRemark();
|