Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
change4weixin
Overview
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
shenjinzhu
change4weixin
Commits
001eca12
Commit
001eca12
authored
Jul 09, 2018
by
zhiwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改金融组数据推送邮箱地址及处理mongo升级导致的36数据库不能读取问题
parent
73a9d36a
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
6 deletions
+7
-6
bin/src/main/resources/datasource.properties
+3
-2
src/main/java/com/zhiwei/chendong/FileThread.java
+1
-1
src/main/java/com/zhiwei/finance/PushFinanceByTime.java
+1
-1
src/main/java/com/zhiwei/util/MongoConnection.java
+1
-1
src/main/resources/datasource.properties
+1
-1
No files found.
bin/src/main/resources/datasource.properties
View file @
001eca12
...
...
@@ -7,8 +7,8 @@ timefileUrl=/home/nbzhiwei/upload
#password=1q2w3e4r
#user=zhiweidata
dbName
=
TmpData
host
=
192.168.0.
36
port
=
2
60
17
host
=
192.168.0.
11
port
=
2
72
17
socketIp
=
192.168.0.11
socketPort
=
10201
\ No newline at end of file
src/main/java/com/zhiwei/chendong/FileThread.java
View file @
001eca12
...
...
@@ -32,7 +32,7 @@ public class FileThread extends Thread {
public
void
run
()
{
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
while
(
true
)
{
System
.
out
.
println
(
"执行
"
);
log
.
info
(
"执行读取文本地址
"
);
Calendar
c
=
Calendar
.
getInstance
();
if
(
c
.
get
(
Calendar
.
HOUR_OF_DAY
)
==
1
)
{
c
.
add
(
Calendar
.
DATE
,
-
7
);
...
...
src/main/java/com/zhiwei/finance/PushFinanceByTime.java
View file @
001eca12
...
...
@@ -66,7 +66,7 @@ public class PushFinanceByTime extends Thread {
cal
.
add
(
Calendar
.
HOUR_OF_DAY
,
3
);
sendsEmail
(
cal
,
list
,
url
);
sleep
(
1000
*
60
*
60
);
}
else
if
(
cal
.
get
(
Calendar
.
HOUR_OF_DAY
)
==
15
)
{
// 1
1
}
else
if
(
cal
.
get
(
Calendar
.
HOUR_OF_DAY
)
==
15
)
{
// 1
5
cal
.
add
(
Calendar
.
HOUR_OF_DAY
,
-
3
);
List
<
NewsResult
>
list
=
ESUtil
.
pushByKey
(
cal
.
getTime
(),
new
Date
(),
sources
,
"media"
);
String
url
=
PushFinanceByTime
.
class
.
getClassLoader
().
getResource
(
"/"
).
getPath
()
+
"/"
...
...
src/main/java/com/zhiwei/util/MongoConnection.java
View file @
001eca12
...
...
@@ -23,7 +23,7 @@ public class MongoConnection {
private
MongoClient
client
;
public
MongoConnection
()
{
client
=
new
MongoClient
(
"192.168.0.
36"
,
260
17
);
client
=
new
MongoClient
(
"192.168.0.
11"
,
272
17
);
}
public
MongoDatabase
getdb
(
String
dbName
)
{
...
...
src/main/resources/datasource.properties
View file @
001eca12
...
...
@@ -22,7 +22,7 @@ indexName.wechat=mediaspider*
indexName.weibo
=
network*
type
=
media
openid
=
oTc_rssM56GjwdRgwTD2dfQMq4Rg
pushMail
=
949131080@qq.com,yuhualong@zhiweidata.com,ligaodie@zhiweidata.com,shenqiao@zhiweidata.com,chenxi@zhiweidata.com,yexin@zhiweidata.com,liuyi@cffex.com.cn,sunwx@cffex.com.cn,wangjb@cffex.com.cn,liuyang@cffex.com.cn,dengwm@cffex.com.cn,yuanzj@cffex.com.cn,zhourx@cffex.com.cn
pushMail
=
zhangzhiwei@zhiweidata.com,
949131080@qq.com,yuhualong@zhiweidata.com,ligaodie@zhiweidata.com,shenqiao@zhiweidata.com,chenxi@zhiweidata.com,yexin@zhiweidata.com,liuyi@cffex.com.cn,sunwx@cffex.com.cn,wangjb@cffex.com.cn,liuyang@cffex.com.cn,dengwm@cffex.com.cn,yuanzj@cffex.com.cn,zhourx@cffex.com.cn
#,oTc_rsju0ZJsEnzFX3WRgZihNWpc,oTc_rsme_NjN1tVh3GSHLdHtq1o8
########################################
##wechat zan点赞阅读
...
...
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