|
@@ -67,9 +67,9 @@ public class OfflineAdOutSamplesLoader {
|
|
|
|
|
|
|
|
|
// 主处理逻辑
|
|
|
- public static void mutiplyParser(String table, String dt) {
|
|
|
- String sql = String.format("select * from %s where ad_ornot = '0' and apptype != '13' and dt ='%s';", table, dt);
|
|
|
- TunnelRecordReader reader = FeatureConstructor.loadDataFromOSSSession(sql, table, dt);
|
|
|
+ public static void mutiplyParser(String table, String startDay, String endDay) {
|
|
|
+ String sql = String.format("select * from %s where ad_ornot = '0' and apptype != '13' and dt >='%s' and dt <='%s';", table, startDay, endDay);
|
|
|
+ TunnelRecordReader reader = FeatureConstructor.loadDataFromOSSSession(sql);
|
|
|
Record record;
|
|
|
try {
|
|
|
while ((record = reader.read()) != null) {
|
|
@@ -87,7 +87,7 @@ public class OfflineAdOutSamplesLoader {
|
|
|
System.out.println("--------args 缺失---------");
|
|
|
return;
|
|
|
}
|
|
|
- OfflineAdOutSamplesLoader.mutiplyParser(args[0], args[1]);
|
|
|
+ OfflineAdOutSamplesLoader.mutiplyParser(args[0], args[1], args[1]);
|
|
|
}
|
|
|
|
|
|
}
|