Commit 8f8ba1bb by manxiaoqiang

location

parent 407f1ae7
......@@ -29,7 +29,11 @@
<profiles>
<profile>
<id>dev</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<label>dev</label>
<!--数据源配置-->
<datasource.driver>com.mysql.jdbc.Driver</datasource.driver>
<!--//office-->
......@@ -81,7 +85,7 @@
<profile>
<id>test</id>
<properties>
<label>product</label>
<!--数据源配置-->
<datasource.driver>com.mysql.jdbc.Driver</datasource.driver>
<!--//office-->
......@@ -146,6 +150,7 @@
<profile>
<id>aws</id>
<properties>
<label>product</label>
<!--数据源配置-->
<datasource.driver>com.mysql.jdbc.Driver</datasource.driver>
<!--//office-->
......
......@@ -150,13 +150,15 @@ public class SyncAppDataTask
}*/
public void syncAppDeviceNum() {
String ds = DateUtil.getBeforeDays(1);
String ds = DateUtil.getBeforeDays(2);
//ds = "2017-12-22";
System.out.println(ds);
String skey = "export/pkg_dev_stats/ds=" + ds + "/";
final AwsS3Util s3Util = AwsS3Util.getInstance();
List itemList = AwsS3Util.getInstance().getS3Keys("reyunbpu", skey);
if (itemList == null || itemList.size() == 0) {
System.out.println("pkg_dev_stats null");
return;
}
......@@ -164,6 +166,7 @@ public class SyncAppDataTask
String s3key = String.valueOf(itemList.get(i));
readS3File(s3Util, s3key, "deviceNum");
}
System.out.println("pkg_dev_stats end");
}
public void syncAppInfo() {
......
......@@ -127,6 +127,6 @@ public class AwsS3Util
public static void main(String[] args) {
OpenApiServiceImpl openApiService = new OpenApiServiceImpl();
openApiService.listInfo4AppData("2017-12-21");
openApiService.listInfo4AppData("2018-01-08");
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment