Merge branch 'script_gj' into 'master'

Script gj

See merge request !129
This commit is contained in:
2021-09-26 09:39:14 +08:00
2 changed files with 2 additions and 2 deletions
@@ -782,7 +782,6 @@ class DataStandardBatch extends BaseBatch{
def findAllNoMatchData(){
DBObject qdata = new BasicDBObject();
qdata.put("s_date", SHORT_DATE)
// qdata.put("name", "银河湾花园(别墅)")
qdata.put("status", new BasicDBObject(QueryOperators.EXISTS, false));
def ret = []
try{
@@ -19,7 +19,7 @@ import java.util.concurrent.Executors
@BatchOwner(Watcher.GaoJuan)
class ThirdDataToGatherBatch extends BaseBatch{
def static final SHORT_DATE = Utils.getLastMonth()
def static final SHORT_DATE = 202107//Utils.getLastMonth()
def static final DBCollection dataProcessColl = CrawalDBUtil.getDataProcessCol();
//MongoUtils.getMongoDBByAuth().getCollection("data_process")
def static final DBCollection AVERAGE_STATISTICS_OFFLINE = CrawalDBUtil.getAverage_statistics_col();
@@ -43,6 +43,7 @@ class ThirdDataToGatherBatch extends BaseBatch{
void process(Object args) {
def citys = CommonDatautils.findAllCity();
def weekend = DateUtils.getFirstDayOfWeek(new Date());
//def weekend = DateUtils.getFirstDayOfWeek(DateUtils.parseFromTightYYYYMMDD("2021-07-15"));
def cityIndex = 0;
final CountDownLatch latch = new CountDownLatch(citys.size())
citys.each { city ->