Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
task-kolon
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
piplus-v3
task-kolon
Commits
0e6ea1e3
Commit
0e6ea1e3
authored
Jul 25, 2016
by
陈家荣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新数据同步时间为凌晨1点
parent
aa226ee8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
KolonMemberServiceImpl.java
...java/com/hdp/pi/service/kolon/KolonMemberServiceImpl.java
+8
-4
FtpScheduledTask.java
src/main/java/com/hdp/pi/utils/kolon/FtpScheduledTask.java
+1
-1
No files found.
src/main/java/com/hdp/pi/service/kolon/KolonMemberServiceImpl.java
View file @
0e6ea1e3
...
@@ -415,6 +415,9 @@ public class KolonMemberServiceImpl implements KolonMemberService {
...
@@ -415,6 +415,9 @@ public class KolonMemberServiceImpl implements KolonMemberService {
String
sourse
=
member
.
user
.
sourse
;
String
sourse
=
member
.
user
.
sourse
;
//获取shopID
//获取shopID
String
shopId
=
sourse
.
substring
(
sourse
.
lastIndexOf
(
"_"
)
+
1
,
sourse
.
length
());
String
shopId
=
sourse
.
substring
(
sourse
.
lastIndexOf
(
"_"
)
+
1
,
sourse
.
length
());
if
(
Util
.
isNotNull
(
shopId
)
&&
shopId
.
equals
(
"self"
)){
return
channelCode
;
}
else
{
MongoPiShop
mongoPiShop
=
mongoPiShopRepository
.
findFirstById
(
shopId
);
MongoPiShop
mongoPiShop
=
mongoPiShopRepository
.
findFirstById
(
shopId
);
if
(
Util
.
isNotNull
(
mongoPiShop
)){
if
(
Util
.
isNotNull
(
mongoPiShop
)){
channelCode
=
mongoPiShop
.
shopCode
;
channelCode
=
mongoPiShop
.
shopCode
;
...
@@ -422,6 +425,7 @@ public class KolonMemberServiceImpl implements KolonMemberService {
...
@@ -422,6 +425,7 @@ public class KolonMemberServiceImpl implements KolonMemberService {
LOGGER
.
warn
(
"kolon获取门店编号出错,没有找到ID为【"
+
shopId
+
"】门店"
);
LOGGER
.
warn
(
"kolon获取门店编号出错,没有找到ID为【"
+
shopId
+
"】门店"
);
}
}
}
}
}
return
channelCode
;
return
channelCode
;
}
}
...
...
src/main/java/com/hdp/pi/utils/kolon/FtpScheduledTask.java
View file @
0e6ea1e3
...
@@ -43,7 +43,7 @@ public class FtpScheduledTask {
...
@@ -43,7 +43,7 @@ public class FtpScheduledTask {
}
}
// 每天凌晨1:00触发
// 每天凌晨1:00触发
@Scheduled
(
cron
=
"0
35 12
* * ?"
)
@Scheduled
(
cron
=
"0
00 1
* * ?"
)
public
void
scheduledWriteTask
()
{
public
void
scheduledWriteTask
()
{
writeCSVFile
();
writeCSVFile
();
}
}
...
...
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