From c241012fe0af2bd98354de45f7937f36a82312fc Mon Sep 17 00:00:00 2001 From: gaojuan1 Date: Fri, 28 Feb 2025 18:50:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E5=8F=91=E9=82=AE=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../script/dataAna/CityInfoAnaBatch.groovy | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/projects/fangjia-script/src/main/groovy/com/fangjia/script/dataAna/CityInfoAnaBatch.groovy b/projects/fangjia-script/src/main/groovy/com/fangjia/script/dataAna/CityInfoAnaBatch.groovy index d008b0f48..8511662a1 100644 --- a/projects/fangjia-script/src/main/groovy/com/fangjia/script/dataAna/CityInfoAnaBatch.groovy +++ b/projects/fangjia-script/src/main/groovy/com/fangjia/script/dataAna/CityInfoAnaBatch.groovy @@ -343,21 +343,21 @@ class CityInfoAnaBatch extends BaseBatch { def totalDbhouseloudongCount = HOUSE_LOUDONG_CONN.count(findObj) datas << ['', totalDistrictCount, totalLoudongCount, df.format(totalLoudongCount * 1.0/ totalDistrictCount), totalFanghaoCount, df.format(totalFanghaoCount * 1.0/ totalDistrictCount), totalDbLoudongCount, totalDbhouseloudongCount] - ExcelUtils.write(fileName, datas, resultTitle) - String id = ObjectId.get().toString() - BasicDBObject file = new BasicDBObject() - file.put("t", "upload") - file.put("content_type", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet") - file.put("c_date", new Date()) - file.put("_id", idGenerator(id, "o")) - file.put("data", new File(fileName).getBytes()) - fsDB.save(file) - def href = DataUtil.encodePicUrl(id, "o", "upload") - href = "点击下载附件" - receivers.each {receiver-> - jms.sendMail(receiver, resultTitle, href) - } - new File(fileName).deleteOnExit() +// ExcelUtils.write(fileName, datas, resultTitle) +// String id = ObjectId.get().toString() +// BasicDBObject file = new BasicDBObject() +// file.put("t", "upload") +// file.put("content_type", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet") +// file.put("c_date", new Date()) +// file.put("_id", idGenerator(id, "o")) +// file.put("data", new File(fileName).getBytes()) +// fsDB.save(file) +// def href = DataUtil.encodePicUrl(id, "o", "upload") +// href = "点击下载附件" +// receivers.each {receiver-> +// jms.sendMail(receiver, resultTitle, href) +// } +// new File(fileName).deleteOnExit() } private String idGenerator(String url, String size) {