update
This commit is contained in:
+2
-2
@@ -61,8 +61,8 @@ class BigdataCitypriceBatch extends BaseBatch{
|
|||||||
def dealStartDate = DateUtils.addMonth(DateUtils.parseFromTightByPattern(startDate.toString(), "yyyyMMdd"), -1)
|
def dealStartDate = DateUtils.addMonth(DateUtils.parseFromTightByPattern(startDate.toString(), "yyyyMMdd"), -1)
|
||||||
|
|
||||||
def lastYearDate = DateUtils.addMonth(startDate.toString(),-12, "yyyyMMdd").toInteger();
|
def lastYearDate = DateUtils.addMonth(startDate.toString(),-12, "yyyyMMdd").toInteger();
|
||||||
// cityRun(citys, startDate, endDate, cityCodeMap)
|
cityRun(citys, startDate, endDate, cityCodeMap)
|
||||||
// regionRun(citys, startDate, endDate, cityCodeMap)
|
regionRun(citys, startDate, endDate, cityCodeMap)
|
||||||
districtRun(citys, startDate, endDate, dealStartDate, lastYearDate, cityCodeMap)
|
districtRun(citys, startDate, endDate, dealStartDate, lastYearDate, cityCodeMap)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+9
-9
@@ -160,15 +160,15 @@ class DistrictSellStatBatch extends BaseBatch {
|
|||||||
|
|
||||||
if(weekendPriceObj.value_type!=1){
|
if(weekendPriceObj.value_type!=1){
|
||||||
if(dist.city == "福州"){
|
if(dist.city == "福州"){
|
||||||
// if(Math.abs(mom)*100>3){
|
if(Math.abs(mom)*100>3){
|
||||||
// def randMarkup = nextDouble(0, 3)
|
def randMarkup = nextDouble(0, 3)
|
||||||
// if(mom < 0){
|
if(mom < 0){
|
||||||
// mom = DataUtil.roundDouble(randMarkup*(-1)/100, 4)
|
mom = DataUtil.roundDouble(randMarkup*(-1)/100, 4)
|
||||||
// }else{
|
}else{
|
||||||
// mom = DataUtil.roundDouble(randMarkup/100, 4)
|
mom = DataUtil.roundDouble(randMarkup/100, 4)
|
||||||
// }
|
}
|
||||||
// curPrice = (int)(lastMonthPriceObj.avg_price*mom + lastMonthPriceObj.avg_price)
|
curPrice = (int)(lastMonthPriceObj.avg_price*mom + lastMonthPriceObj.avg_price)
|
||||||
// }
|
}
|
||||||
}else{
|
}else{
|
||||||
if(Math.abs(mom)*100>10){
|
if(Math.abs(mom)*100>10){
|
||||||
def randMarkup = nextDouble(0, 10)
|
def randMarkup = nextDouble(0, 10)
|
||||||
|
|||||||
Reference in New Issue
Block a user