所有房源

This commit is contained in:
2021-10-14 18:35:43 +08:00
parent 619b8ef89d
commit afb2fe6666
2 changed files with 6 additions and 2 deletions
@@ -55,7 +55,7 @@ class BigdataForsaleBatch extends BaseBatch{
}
public static final String[] TAGS = ["独栋", "联排", "叠加", "双拼", "花园面积", "泳池", "别墅", "带花园", "洋房", "叠拼", "独院", "联体", "微墅", "大平墅"];
public static ExecutorService fixedThreadPool = Executors.newFixedThreadPool(80)
public static ExecutorService fixedThreadPool = Executors.newFixedThreadPool(60)
def sqlInstance = Sql.newInstance("jdbc:oracle:thin:@192.168.0.100:31521:orcl",
"GOOJIA", "GOOJIA", "oracle.jdbc.driver.OracleDriver")
@@ -66,7 +66,7 @@ class BigdataForsaleBatch extends BaseBatch{
@Override
public void process(Object args) {
def citys = ["杭州"]//CcbCommonUtils.citys;
def citys = CcbCommonUtils.citys;
def index = 0
def cityCodeDataMap = CcbCommonUtils.findCityCodeValue()
for(def city : citys){
@@ -283,6 +283,7 @@ class BigdataForsaleBatch extends BaseBatch{
def rets = []
def houses = ElasticUtils.executeSimpleQuery("192.168.0.206", "seawater-20*", queryBuilder);
if(houses){
for (int k=0;k<houses.size();k++) {
def map = houses[k];
@@ -412,6 +413,8 @@ class BigdataForsaleBatch extends BaseBatch{
rets << rowMap
}
}
println name +" "+houses.size()+" last:"+rets.size()
return rets;
}
@@ -230,6 +230,7 @@ class CcbCommonUtils {
q.put("visible",0)
q.put("cat", cat);
q.put("city", city);
// q.put("name","御海阳光")
// q.put("name_cat", 0);
// q.put("estate_type2", new BasicDBObject('$in', ["普通住宅","商住"]))