导出数据时间自动
This commit is contained in:
+3
-3
@@ -23,6 +23,7 @@ class ExportOracleData {
|
||||
def run() {
|
||||
// def curMonth = Integer.parseInt(DateUtils.addMonth(DateUtils.formatDateByPattern(new Date(), "yyyyMM"), 0, "yyyyMM"));
|
||||
def lastMonth = Integer.parseInt(DateUtils.addMonth(DateUtils.formatDateByPattern(new Date(), "yyyyMM"), -1, "yyyyMM"));
|
||||
def lastMonthStr = DateUtils.addMonth(DateUtils.formatDateByPattern(new Date(), "yyyy-MM"), -1, "yyyy-MM")
|
||||
def new_dists = []
|
||||
//不会变
|
||||
exportEvaluationRateData()
|
||||
@@ -38,9 +39,8 @@ class ExportOracleData {
|
||||
exportCommunityBuileType()
|
||||
|
||||
exportThirdPartyPrice2(lastMonth, new_dists)
|
||||
exportBigdataForsale("2022-06-19", new_dists)
|
||||
exportBigdataDeal("2022-06-01", new_dists)
|
||||
|
||||
exportBigdataForsale(lastMonthStr +"-19", new_dists) //2022-07-19
|
||||
exportBigdataDeal(lastMonthStr + "-01", new_dists) //2022-07-01
|
||||
|
||||
//第三方网站权重表
|
||||
exportWebsiteRate();
|
||||
|
||||
+1
-1
@@ -24,7 +24,7 @@ class SynchDistrictPrice {
|
||||
|
||||
//,"城市房产":"城市房产"
|
||||
//"365淘房":"365淘房","贝壳":"贝壳找房","链家":"链家","Q房":"Q房","我爱我家":"我爱我家","麦田":"麦田","中原地产":"中原地产","安居客小程序":"安居客","搜房":"搜房",
|
||||
def esSources = ["我爱我家":"我爱我家","安居客小程序":"安居客","搜房":"搜房","贝壳找房":"贝壳找房",]//"吉屋":"吉屋","365淘房":"365淘房"
|
||||
def esSources = ["乐有家":"乐有家","安居客小程序":"安居客"]//"吉屋":"吉屋","365淘房":"365淘房"
|
||||
static main(args) {
|
||||
def task = new SynchDistrictPrice()
|
||||
// task.run()
|
||||
|
||||
Reference in New Issue
Block a user