Browse Source

修改飞亚达订餐
1、PC端设置项目的订餐提醒开关;
2、微信端设置用户的订餐提醒开关;
3、15:30自动推送给项目开启了提醒且用户也开启了提醒的用户;
4、PC端用户列表、详情、修改需要支持设置用户的订餐提醒开关;

longmeizhen@avic-s.com 2 years ago
parent
commit
ca7bcecf6a

+ 16 - 0
sql/huanjingpeizhi/formal environment/tomcat_super_service/WEB-INF/classes/quartz_job2.xml

@@ -213,6 +213,21 @@
         </property>
     </bean>
 
+    <!-- 定时推送模板消息给开启订餐的用户,通知他们提前订明天的餐 -->
+    <bean id="orderDinnerPushTempMsgTimer"
+          class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
+        <property name="targetObject" ref="orderDinnerPushTempMsgTimerTask"/>
+        <property name="targetMethod" value="run"/>
+    </bean>
+
+    <bean id="orderDinnerPushTempMsgTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
+        <property name="jobDetail" ref="orderDinnerPushTempMsgTimer"/>
+        <property name="cronExpression">
+            <value>0 30 15 * * ?</value>
+            <!-- 每天15:30推一次消息 -->
+        </property>
+    </bean>
+
     <!-- 定时每天10执行一次  提醒用户需要订餐了 -->
     <bean id="orderDinnerPushTimer"
           class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
@@ -365,6 +380,7 @@
                 <ref local="orderDinnerDatePushTrigger"/>
                 <ref local="orderDinnerPushMessageTrigger"/>
                 <ref local="orderDinnerPushTrigger"/>
+                <ref local="orderDinnerPushTempMsgTrigger"/>
                 <ref local="dinnerConfirmServiceTrigger"/>
                 <ref local="dinnerTransferAccountsTrigger"/>
                 <ref local="orderDinnerRechargeTrigger"/>

+ 1 - 1
src/main/java/com/palmnest/dao/dinner/impl/ConsumerDaoImpl.java

@@ -82,7 +82,7 @@ public class ConsumerDaoImpl extends GenericDaoHibernate<Consumer, Long> impleme
 	public Page findList(Map<String, Object> paramets, int pageSize, int pageNo) {
 		
 		StringBuilder sql = getFindListSql(paramets);
-		
+		LOG.info("findList-sql:{}",sql.toString());
 		
 		return pagedQueryByJdbcTemplate(sql.toString(), pageNo, pageSize);
 	}