浏览代码

团购通知

Longlin 5 年之前
父节点
当前提交
19bd4b7cfb

+ 10 - 1
whepi-web/src/main/java/com/bofeng/service/JmTuangouService.java

@@ -72,7 +72,16 @@ public class JmTuangouService {
     jmTuangou.setUserUpdate(jmTuangou.getUserId());
     jmTuangou.setTimeUpdate(new Date());
 
-    return jmTuangouDao.insert(jmTuangou);
+    Integer success = jmTuangouDao.insert(jmTuangou);
+
+    if (success == 1) {
+      List<UserOpen> userList = userOpenMapper.getUsersByUptownId(uptownId);
+      for (UserOpen user : userList) {
+        epiTemplateMessageService.tuangouSendRemindMessage(user.getUserId(), user.getOpenId(), tgEndTime);
+      }
+    }
+
+    return success;
   }
 
   @Transactional(rollbackFor = Exception.class, propagation = Propagation.REQUIRED)

+ 1 - 1
whepi-web/src/main/resources/application-lll.yml

@@ -57,7 +57,7 @@ yvan:
       结账信息: '5t4LSW4cb7j4mcHxoYyzTvLHnp2gehpxn1faf7G4ABs'
       结算信息: 'GoZBKvyqAfP8uM3xrJk40YHhMoM_E44aPLEoKV_1-pQ'
       每日提醒: 'yJDr5rSc9q9OkX-wuchH4N_msKcnA1zXgjEA3XXxKbs'
-      系统提醒: 'jZknynqXHF2lOuUKQtXwMsbLE3wvLCyM10sikJ957LY'
+      系统提醒: 'BtF6CRrIAHxx7LEJoVmoCWePqqlK_KSzikbL8aCO8yw'
     #  round_out_template_id: 'xpQJsBwlhZ5r7P7Glur8hiNl1IgjQxtMGTVwdVOfGKg'
     #  round_in_template_id: 'oobiXKFatguG1H7K-HPi2lipzF-Qv0pMY12e1JaQxdA'
 

+ 1 - 1
whepi-web/src/main/resources/application.yml

@@ -43,7 +43,7 @@ endpoints:
 #  whitelabel.enabled: false
 
 spring:
-  profiles.active: guojing
+  profiles.active: lll
 
   application:
     name: bofeng-web