diff --git a/projects/fangjia-script/src/main/groovy/com/fangjia/script/gj/data_handle/DevProcess.groovy b/projects/fangjia-script/src/main/groovy/com/fangjia/script/gj/data_handle/DevProcess.groovy index 648d1df2a..168c6fab7 100644 --- a/projects/fangjia-script/src/main/groovy/com/fangjia/script/gj/data_handle/DevProcess.groovy +++ b/projects/fangjia-script/src/main/groovy/com/fangjia/script/gj/data_handle/DevProcess.groovy @@ -94,22 +94,22 @@ class DevProcess { def aiDevTown(){ ExcelUtils.multiThreadingModify("D:\\数据\\数据建设\\开发区\\河北省开发区-ai结果.xlsx", { d -> -// def res = FangjiaClientUtils.aiResult("河北省哪些乡镇街道完全隶属于"+d['E']+",有则以逗号隔开方式输出,无则输出无,其它信息不输出") -// def message = res.data.replaceAll("\n", "") -// d['F'] = res.code -// d['G'] = message -// println d['E'] +" "+res.code + " "+message - def q = new BasicDBObject("name", d['E']).append("type","乡镇街道") - def dbcursor = DEV_MAPPING_CONN.find(q) - if(dbcursor.count()>0){ - def list = [] - for(def db : dbcursor){ - list << db.township - } - - d['H']= list.join(",") - } - + def res = FangjiaClientUtils.aiResult("河北省哪些乡镇街道完全隶属于"+d['E']+",有则以逗号隔开方式输出,无则输出无,其它信息不输出") + def message = res.data.replaceAll("\n", "") + d['F'] = res.code + d['G'] = message + println d['E'] +" "+res.code + " "+message +// def q = new BasicDBObject("name", d['E']).append("type","乡镇街道") +// def dbcursor = DEV_MAPPING_CONN.find(q) +// if(dbcursor.count()>0){ +// def list = [] +// for(def db : dbcursor){ +// list << db.township +// } +// +// d['H']= list.join(",") +// } +// }) }