|
@@ -245,7 +245,7 @@ public class CostHourProcess extends KeyedProcessFunction<Long, AdStatOfHourDWD,
|
|
|
if (lastThreeHourMapping != null && !lastThreeHourMapping.isEmpty()) {
|
|
|
AdStatOfHourDWD lastThreeHourDWD = lastThreeHourMapping.get(lastThreeHour);
|
|
|
if (lastThreeHourDWD != null) {
|
|
|
- costLastThreeTrend = lastThreeHourDWD.getCostHour();
|
|
|
+ costLastThreeTrend = costLastHourDiff > 0 && costDiff > 0 ? 1 : 0;
|
|
|
costLastTwoHourDiff = costLastTwoHour - lastThreeHourDWD.getCostHour();
|
|
|
}
|
|
|
}
|