From 3e2159e45e12b2b8af058b68eafeaf082cf3fe85 Mon Sep 17 00:00:00 2001 From: feiyu02 <risaku@163.com> Date: 星期四, 15 九月 2022 09:30:31 +0800 Subject: [PATCH] 2022.9.15 1. 根据微信小程序前端需求,添加各对应后台逻辑 --- src/main/kotlin/cn/flightfeather/supervision/timingtask/FetchVOC.kt | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/cn/flightfeather/supervision/timingtask/FetchVOC.kt b/src/main/kotlin/cn/flightfeather/supervision/timingtask/FetchVOC.kt index 846650b..5e4c86b 100644 --- a/src/main/kotlin/cn/flightfeather/supervision/timingtask/FetchVOC.kt +++ b/src/main/kotlin/cn/flightfeather/supervision/timingtask/FetchVOC.kt @@ -60,9 +60,9 @@ set(Calendar.MINUTE, 0) set(Calendar.SECOND, 0) } - val endTime = DateUtil().DateToString(cal.time, "yyyy-MM-dd HH:mm:ss") ?: "" + val endTime = DateUtil.DateToString(cal.time, "yyyy-MM-dd HH:mm:ss") ?: "" cal.add(Calendar.HOUR_OF_DAY, -1) - val startTime = DateUtil().DateToString(cal.time, "yyyy-MM-dd HH:mm:ss") ?: "" + val startTime = DateUtil.DateToString(cal.time, "yyyy-MM-dd HH:mm:ss") ?: "" deviceCodeList.forEach { val deviceInfo = VOCHttpService.DeviceInfo(listOf(it), startTime, endTime) @@ -78,7 +78,7 @@ hourValue.vocStatCode = o["deviceCode"].asString val collectTime = o["collectTime"].asString - hourValue.vocDataTime = DateUtil().StringToDate(collectTime) + hourValue.vocDataTime = DateUtil.StringToDate(collectTime) o["minuteHourDayValueBeans"].asJsonArray.forEach {e1 -> e1.asJsonObject.let {o1 -> -- Gitblit v1.9.3