From 35735b623ef913c1df2686530b9e81ca5ab05265 Mon Sep 17 00:00:00 2001
From: Cui Zhi Feng <7426394+wuxixiaocui@user.noreply.gitee.com>
Date: 星期二, 29 十月 2024 15:09:35 +0800
Subject: [PATCH] 订单管理:全部订单数量-待付款-已取消-已退款
---
src/main/java/com/mzl/flower/schedule/ScheduleService.java | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/main/java/com/mzl/flower/schedule/ScheduleService.java b/src/main/java/com/mzl/flower/schedule/ScheduleService.java
index afbca3b..a77829f 100644
--- a/src/main/java/com/mzl/flower/schedule/ScheduleService.java
+++ b/src/main/java/com/mzl/flower/schedule/ScheduleService.java
@@ -24,6 +24,7 @@
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang3.time.DateFormatUtils;
import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.context.annotation.Profile;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
@@ -263,6 +264,7 @@
}
@Scheduled(cron = "0 15 17 * * ?")
+ @Profile("prod")
public void DealSendMessageInfoBySupplier() {
log.info("供应商下单供货提示开始:" + DateFormatUtils.format(System.currentTimeMillis(), "yyyy-MM-dd HH:mm:ss"));
// 获取当前日期
@@ -273,11 +275,11 @@
LocalDateTime endDateTime = LocalDateTime.of(currentDate, LocalTime.of(17, 0));
System.out.println("开始时间: " + startDateTime);
System.out.println("结束时间: " + endDateTime);
- List<String> sends = orderMapper.getWaitSendMessageInfoBySupplier("SEND", startDateTime, endDateTime);
+ List<String> sends = orderMapper.getWaitSendMessageInfoBySupplier("COLLECTION", startDateTime, endDateTime);
if(CollectionUtils.isNotEmpty(sends)) {
sends.forEach(s -> {
try {
- SmsUtil.sendSms(s, "SMS_474500141", null);
+ SmsUtil.sendSms(s, "SMS_474905508", null);
} catch (ClientException e) {
log.error("发送短信失败,手机号:" + s, e);
}
--
Gitblit v1.9.3