From eccc22ef54bf9f1e6d29726ef71415a17c2145c3 Mon Sep 17 00:00:00 2001 From: wangwenyan Date: Tue, 22 Jul 2025 17:47:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=B0=8F=E5=8C=BA=E5=9D=87?= =?UTF-8?q?=E4=BB=B7=E8=AE=A1=E7=AE=97=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../script/averager/InsertMonitorCalcCommandBatch.groovy | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/projects/fangjia-script/src/main/groovy/com/fangjia/script/averager/InsertMonitorCalcCommandBatch.groovy b/projects/fangjia-script/src/main/groovy/com/fangjia/script/averager/InsertMonitorCalcCommandBatch.groovy index a29e9d1b8..9ca80f620 100644 --- a/projects/fangjia-script/src/main/groovy/com/fangjia/script/averager/InsertMonitorCalcCommandBatch.groovy +++ b/projects/fangjia-script/src/main/groovy/com/fangjia/script/averager/InsertMonitorCalcCommandBatch.groovy @@ -2,6 +2,7 @@ package com.fangjia.script.averager import com.fangjia.core.Constants import com.fangjia.core.util.DateUtil +import com.fangjia.core.util.DingDingMessageUtil import com.fangjia.core.util.MongoUtils import com.fangjia.datastore.driver.DSCursor import com.fangjia.script.BaseBatch @@ -44,6 +45,7 @@ class InsertMonitorCalcCommandBatch extends BaseBatch { void process(Object args) { def cities = ServerAreaMap.findAllCities() + cities = ['宁德'] println cities Date weekend = getCalcWeekend() println weekend @@ -204,7 +206,7 @@ class InsertMonitorCalcCommandBatch extends BaseBatch { blockCount = REGION_STAT_COLL.count(query); def msg = "本周小区均价计算量:" + districtCount + ";本周城市均价计算量:" + cityCount + ";本周区域均价计算量:" + regionCount + ";本周板块均价计算量:" + blockCount + ";本周小区均价涨跌幅超过4%小区数量:" + appliesCount + ";计算均价超过10%小区量:" + bigMarkupCount+ ";运行时间:" + secondToTime(time) + "."; //发送钉钉提示 - sendDingDingMsg(TOKEN, msg); + DingDingMessageUtil.sendTextMessage(TOKEN, msg) EmailTemplate sd = new EmailTemplate("mixedZone.ftl") Map map = new HashMap() map.put('applies', applies) @@ -356,6 +358,7 @@ class InsertMonitorCalcCommandBatch extends BaseBatch { DBObject q = new BasicDBObject() q.put("city", city) q.put("cat", "district") + q.put("region", "福安") q.put("status", 0) DBObject fields = new BasicDBObject()