From 6c7f45871b93ef26d353a5a3596701ac2f39ed9c Mon Sep 17 00:00:00 2001 From: feiyu02 <risaku@163.com> Date: 星期二, 10 九月 2024 17:48:27 +0800 Subject: [PATCH] 1. 新增问题更新接口 --- src/main/kotlin/cn/flightfeather/supervision/business/location/UtilFile.kt | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/src/main/kotlin/cn/flightfeather/supervision/business/location/UtilFile.kt b/src/main/kotlin/cn/flightfeather/supervision/business/location/UtilFile.kt index 04e78b4..aee975c 100644 --- a/src/main/kotlin/cn/flightfeather/supervision/business/location/UtilFile.kt +++ b/src/main/kotlin/cn/flightfeather/supervision/business/location/UtilFile.kt @@ -33,6 +33,7 @@ ExcelUtil.MyCell("鍗曚綅鍦板潃", colSpan = 1), ExcelUtil.MyCell("缁忓害", colSpan = 1), ExcelUtil.MyCell("绾害", colSpan = 1), + ExcelUtil.MyCell("鍖哄幙", colSpan = 1), ExcelUtil.MyCell("琛楅亾", colSpan = 1), ExcelUtil.MyCell("甯哥敤鑱旂郴浜�", colSpan = 1), ExcelUtil.MyCell("鑱旂郴鏂瑰紡", colSpan = 1), @@ -66,6 +67,7 @@ scense.location ?: "", scense.longitude?.toDouble() ?: .0, scense.latitude?.toDouble() ?: .0, + scense.districtname ?: "", scense.townname ?: "", scense.contacts ?: "", scense.contactst ?: "" @@ -77,7 +79,7 @@ fun outPutToFile(distance: Double? = null) { val workbook = HSSFWorkbook() val tag = if (distance == null) "" else "${distance}绫�" - val fileName = "鍛ㄨ竟${tag}鐐逛綅-${DateUtil().DateToString(Date(), "yyyy-MM-ddhhmmss")}.xls" + val fileName = "鍛ㄨ竟${tag}鐐逛綅-${DateUtil.DateToString(Date(), "yyyy-MM-ddhhmmss")}.xls" val filePath = "C:\\work\\宸ヤ綔\\绗笁鏂圭洃绠\鍛ㄨ竟鐐逛綅\\$fileName" val out = FileOutputStream(File(filePath)) ExcelUtil.write(heads, contents, workbook) -- Gitblit v1.9.3