提交 4f512eac 作者: gh

0-6点发文限制修正

上级 4b1c0742
......@@ -44,7 +44,7 @@ public class SchedulingTask {
/**
* 拉取付费订单(每15min一次)
*/
//@Scheduled(cron = "0 5/15 * * * *")
@Scheduled(cron = "0 5/15 * * * *")
public void retrieveOrderData(){
Calendar calendar = Calendar.getInstance();
......@@ -57,13 +57,13 @@ public class SchedulingTask {
integrationRequestDTO.setRequestDate(calendar.getTime());
//accountOrderService.activeUserByOrder(integrationRequestDTO);
accountOrderService.activeUserByOrder(integrationRequestDTO);
}
/**
* 更新付费用户近一月平均充值(每天一次:4点10分)
*/
//@Scheduled(cron = "0 10 4 * * *")
@Scheduled(cron = "0 10 4 * * *")
public void retrieveMonthOrder(){
Calendar calendar = Calendar.getInstance();
......@@ -76,7 +76,7 @@ public class SchedulingTask {
integrationRequestDTO.setRequestDate(calendar.getTime());
//accountOrderService.calculateAvgMonth(integrationRequestDTO);
accountOrderService.calculateAvgMonth(integrationRequestDTO);
}
......
......@@ -83,6 +83,9 @@ public class CustomerGraphicsServiceImpl extends ServiceImpl<CustomerGraphicsMap
@Autowired
private KanbanCommonMapper kanbanCommonMapper;
@Autowired
private CrowdPackageService crowdPackageService;
@Override
public BaseResult insertCustomerMessage(CustomerMessageSaveDTO saveDto) {
......
......@@ -63,7 +63,7 @@ public class WeChatServiceImpl implements WeChatService{
Calendar instance = Calendar.getInstance();
int i = instance.get(Calendar.HOUR_OF_DAY);
//早上0-6点不发
if (i<FORBID_TIME){
if (i>=FORBID_TIME){
//token
UriComponentsBuilder uriComponentsBuilder = UriComponentsBuilder.fromHttpUrl(customerPath).queryParam("access_token",authorizerToken.getAuthorizerAccessToken());
//找到延时序列
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论