Merge branch 'script_gj' into 'master'

导出数据时间自动

See merge request !373
This commit is contained in:
2022-08-19 18:12:42 +08:00
2 changed files with 4 additions and 4 deletions
@@ -23,6 +23,7 @@ class ExportOracleData {
def run() { def run() {
// def curMonth = Integer.parseInt(DateUtils.addMonth(DateUtils.formatDateByPattern(new Date(), "yyyyMM"), 0, "yyyyMM")); // 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 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 = [] def new_dists = []
//不会变 //不会变
exportEvaluationRateData() exportEvaluationRateData()
@@ -38,9 +39,8 @@ class ExportOracleData {
exportCommunityBuileType() exportCommunityBuileType()
exportThirdPartyPrice2(lastMonth, new_dists) exportThirdPartyPrice2(lastMonth, new_dists)
exportBigdataForsale("2022-06-19", new_dists) exportBigdataForsale(lastMonthStr +"-19", new_dists) //2022-07-19
exportBigdataDeal("2022-06-01", new_dists) exportBigdataDeal(lastMonthStr + "-01", new_dists) //2022-07-01
//第三方网站权重表 //第三方网站权重表
exportWebsiteRate(); exportWebsiteRate();
@@ -24,7 +24,7 @@ class SynchDistrictPrice {
//,"城市房产":"城市房产" //,"城市房产":"城市房产"
//"365淘房":"365淘房","贝壳":"贝壳找房","链家":"链家","Q房":"Q房","我爱我家":"我爱我家","麦田":"麦田","中原地产":"中原地产","安居客小程序":"安居客","搜房":"搜房", //"365淘房":"365淘房","贝壳":"贝壳找房","链家":"链家","Q房":"Q房","我爱我家":"我爱我家","麦田":"麦田","中原地产":"中原地产","安居客小程序":"安居客","搜房":"搜房",
def esSources = ["我爱我家":"我爱我家","安居客小程序":"安居客","搜房":"搜房","贝壳找房":"贝壳找房",]//"吉屋":"吉屋","365淘房":"365淘房" def esSources = ["乐有家":"乐有家","安居客小程序":"安居客"]//"吉屋":"吉屋","365淘房":"365淘房"
static main(args) { static main(args) {
def task = new SynchDistrictPrice() def task = new SynchDistrictPrice()
// task.run() // task.run()