临时修改
This commit is contained in:
+4
-4
@@ -31,7 +31,7 @@ class ThirdPriceMappingBatch extends BaseBatch{
|
|||||||
|
|
||||||
final DBCollection dataProcessColl = MongoUtils.getCollectionByName("fangjia_craw", "data_process", "192.168.0.235", 27018)
|
final DBCollection dataProcessColl = MongoUtils.getCollectionByName("fangjia_craw", "data_process", "192.168.0.235", 27018)
|
||||||
|
|
||||||
def curDate = Integer.parseInt(DateUtils.addMonth(DateUtils.formatDateByPattern(new Date(), "yyyyMM"), -1, "yyyyMM"));
|
def curDate = Integer.parseInt(DateUtils.addMonth(DateUtils.formatDateByPattern(new Date(), "yyyyMM"), -2, "yyyyMM"));
|
||||||
|
|
||||||
static main(args) {
|
static main(args) {
|
||||||
runBatch(new ThirdPriceMappingBatch(), args);
|
runBatch(new ThirdPriceMappingBatch(), args);
|
||||||
@@ -40,7 +40,7 @@ class ThirdPriceMappingBatch extends BaseBatch{
|
|||||||
@Override
|
@Override
|
||||||
public void process(Object args) {
|
public void process(Object args) {
|
||||||
// //将新增数据同步过来
|
// //将新增数据同步过来
|
||||||
// addNemCommunity()
|
addNemCommunity()
|
||||||
//// //接口进行匹配
|
//// //接口进行匹配
|
||||||
match()
|
match()
|
||||||
|
|
||||||
@@ -48,7 +48,7 @@ class ThirdPriceMappingBatch extends BaseBatch{
|
|||||||
}
|
}
|
||||||
|
|
||||||
def match(){
|
def match(){
|
||||||
def citys = CommonUtils.findAllCity()
|
def citys = ["北京","厦门","泉州","安顺"]//CommonUtils.findAllCity()
|
||||||
def index = 0
|
def index = 0
|
||||||
for(def c : citys){
|
for(def c : citys){
|
||||||
index ++
|
index ++
|
||||||
@@ -115,7 +115,7 @@ class ThirdPriceMappingBatch extends BaseBatch{
|
|||||||
}
|
}
|
||||||
|
|
||||||
def addNemCommunity(){
|
def addNemCommunity(){
|
||||||
def citys = CommonUtils.findAllCity()
|
def citys = ["北京","厦门","泉州","安顺"] //CommonUtils.findAllCity()
|
||||||
def total = 0
|
def total = 0
|
||||||
def index = 0
|
def index = 0
|
||||||
for(def c : citys){
|
for(def c : citys){
|
||||||
|
|||||||
Reference in New Issue
Block a user