Merge branch 'script_gj' into 'master'
Script gj See merge request !129
This commit is contained in:
-1
@@ -782,7 +782,6 @@ class DataStandardBatch extends BaseBatch{
|
|||||||
def findAllNoMatchData(){
|
def findAllNoMatchData(){
|
||||||
DBObject qdata = new BasicDBObject();
|
DBObject qdata = new BasicDBObject();
|
||||||
qdata.put("s_date", SHORT_DATE)
|
qdata.put("s_date", SHORT_DATE)
|
||||||
// qdata.put("name", "银河湾花园(别墅)")
|
|
||||||
qdata.put("status", new BasicDBObject(QueryOperators.EXISTS, false));
|
qdata.put("status", new BasicDBObject(QueryOperators.EXISTS, false));
|
||||||
def ret = []
|
def ret = []
|
||||||
try{
|
try{
|
||||||
|
|||||||
+2
-1
@@ -19,7 +19,7 @@ import java.util.concurrent.Executors
|
|||||||
@BatchOwner(Watcher.GaoJuan)
|
@BatchOwner(Watcher.GaoJuan)
|
||||||
class ThirdDataToGatherBatch extends BaseBatch{
|
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();
|
def static final DBCollection dataProcessColl = CrawalDBUtil.getDataProcessCol();
|
||||||
//MongoUtils.getMongoDBByAuth().getCollection("data_process")
|
//MongoUtils.getMongoDBByAuth().getCollection("data_process")
|
||||||
def static final DBCollection AVERAGE_STATISTICS_OFFLINE = CrawalDBUtil.getAverage_statistics_col();
|
def static final DBCollection AVERAGE_STATISTICS_OFFLINE = CrawalDBUtil.getAverage_statistics_col();
|
||||||
@@ -43,6 +43,7 @@ class ThirdDataToGatherBatch extends BaseBatch{
|
|||||||
void process(Object args) {
|
void process(Object args) {
|
||||||
def citys = CommonDatautils.findAllCity();
|
def citys = CommonDatautils.findAllCity();
|
||||||
def weekend = DateUtils.getFirstDayOfWeek(new Date());
|
def weekend = DateUtils.getFirstDayOfWeek(new Date());
|
||||||
|
//def weekend = DateUtils.getFirstDayOfWeek(DateUtils.parseFromTightYYYYMMDD("2021-07-15"));
|
||||||
def cityIndex = 0;
|
def cityIndex = 0;
|
||||||
final CountDownLatch latch = new CountDownLatch(citys.size())
|
final CountDownLatch latch = new CountDownLatch(citys.size())
|
||||||
citys.each { city ->
|
citys.each { city ->
|
||||||
|
|||||||
Reference in New Issue
Block a user