Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
manager
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
reyun
manager
Commits
8f8ba1bb
Commit
8f8ba1bb
authored
Jan 10, 2018
by
manxiaoqiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
location
parent
407f1ae7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
3 deletions
+12
-3
workspace.xml
.idea/workspace.xml
+0
-0
pom.xml
pom.xml
+6
-1
SyncAppDataTask.java
src/main/java/common/task/SyncAppDataTask.java
+4
-1
AwsS3Util.java
src/main/java/util/AwsS3Util.java
+2
-1
No files found.
.idea/workspace.xml
View file @
8f8ba1bb
This diff is collapsed.
Click to expand it.
pom.xml
View file @
8f8ba1bb
...
...
@@ -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-->
...
...
src/main/java/common/task/SyncAppDataTask.java
View file @
8f8ba1bb
...
...
@@ -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
()
{
...
...
src/main/java/util/AwsS3Util.java
View file @
8f8ba1bb
...
...
@@ -127,6 +127,6 @@ public class AwsS3Util
public
static
void
main
(
String
[]
args
)
{
OpenApiServiceImpl
openApiService
=
new
OpenApiServiceImpl
();
openApiService
.
listInfo4AppData
(
"201
7-12-21
"
);
openApiService
.
listInfo4AppData
(
"201
8-01-08
"
);
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment