Commit 0e6ea1e3 authored by 陈家荣's avatar 陈家荣

更新数据同步时间为凌晨1点

parent aa226ee8
......@@ -415,11 +415,15 @@ public class KolonMemberServiceImpl implements KolonMemberService {
String sourse = member.user.sourse;
//获取shopID
String shopId = sourse.substring(sourse.lastIndexOf("_") + 1, sourse.length());
MongoPiShop mongoPiShop = mongoPiShopRepository.findFirstById(shopId);
if(Util.isNotNull(mongoPiShop)){
channelCode = mongoPiShop.shopCode;
if(Util.isNotNull(shopId) && shopId.equals("self")){
return channelCode;
}else{
LOGGER.warn("kolon获取门店编号出错,没有找到ID为【"+shopId+"】门店");
MongoPiShop mongoPiShop = mongoPiShopRepository.findFirstById(shopId);
if(Util.isNotNull(mongoPiShop)){
channelCode = mongoPiShop.shopCode;
}else{
LOGGER.warn("kolon获取门店编号出错,没有找到ID为【"+shopId+"】门店");
}
}
}
return channelCode;
......
......@@ -43,7 +43,7 @@ public class FtpScheduledTask {
}
// 每天凌晨1:00触发
@Scheduled(cron = "0 35 12 * * ?")
@Scheduled(cron = "0 00 1 * * ?")
public void scheduledWriteTask() {
writeCSVFile();
}
......
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