3 Commits 1a7ddc78de ... ef08f43eed

Autore SHA1 Messaggio Data
  wuchangfu ef08f43eed 访客 注释掉公众号信息查询判断 1 anno fa
  wuchangfu e12179618a Merge branch 'feature/空调加时' of https://gogs.superdesk.cn/super_service/superdesk_superservice into feature/空调加时 1 anno fa
  wuchangfu 47fc933a92 生产环境 定时任务配置更新 1 anno fa

+ 35 - 20
sql/huanjingpeizhi/formal environment/tomcat_super_service/WEB-INF/classes/quartz_job2.xml

@@ -68,6 +68,7 @@
     </bean>
 
     <!-- 定时更新系统中微信用户资料信息 -->
+    <!--
     <bean id="updateWxUserInfoTimer"
           class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
         <property name="targetObject" ref="updateWxUserInfoTimerTask"/>
@@ -79,7 +80,7 @@
             <value>0 30 4 * * ?</value>
         </property>
     </bean>
-
+    -->
 
     <!-- 定时扫描通知信息表,发送通知消息 -->
     <bean id="executeSendAnnoTimer"
@@ -226,7 +227,9 @@
         </property>
     </bean>
 
-    <!-- 定时推送模板消息给开启订餐的用户,通知他们提前订明天的餐 -->
+   <!-- 定时推送模板消息给开启订餐的用户,通知他们提前订明天的餐 -->
+   <!-- 每天15:30推一次消息 -->
+    <!--
     <bean id="orderDinnerPushTempMsgTimer"
           class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
         <property name="targetObject" ref="orderDinnerPushTempMsgTimerTask"/>
@@ -237,11 +240,13 @@
         <property name="jobDetail" ref="orderDinnerPushTempMsgTimer"/>
         <property name="cronExpression">
             <value>0 30 15 * * ?</value>
-            <!-- 每天15:30推一次消息 -->
+            
         </property>
-    </bean>
+    </bean> -->
 
     <!-- 定时每天10执行一次  提醒用户需要订餐了 -->
+     <!-- 每天10点推一次消息 -->
+    <!--
     <bean id="orderDinnerPushTimer"
           class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
         <property name="targetObject" ref="orderDinnerDatePushTimerTask"/>
@@ -252,10 +257,13 @@
         <property name="jobDetail" ref="orderDinnerPushTimer"/>
         <property name="cronExpression">
             <value>0 0 10 * * ?</value>
-            <!-- 每天10点推一次消息 -->
+           
         </property>
-    </bean>
+    </bean> 
+     -->
     <!-- 定时每天22点执行一次  将所有当天未及时确认的待确认订单置为待评价-->
+    <!-- 每天22点执行一次-->
+    <!--
     <bean id="dinnerConfirmServiceTimer"
           class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
         <property name="targetObject" ref="dinnerConfirmServiceTimerTask"/>
@@ -266,9 +274,11 @@
         <property name="jobDetail" ref="dinnerConfirmServiceTimer"/>
         <property name="cronExpression">
             <value>0 0 22 * * ?</value>
-            <!-- 每天22点执行一次-->
-        </property>
+         </property>
     </bean>
+    -->
+    <!-- 每周日执行一次 -->
+    <!--
     <bean id="dinnerMealTimer"
           class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
         <property name="targetObject" ref="dinnerMealTimerTask"/>
@@ -278,11 +288,11 @@
     <bean id="dinnerMealTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
         <property name="jobDetail" ref="dinnerMealTimer"/>
         <property name="cronExpression">
-            <!-- <value>0 0/2 * * * ?</value> -->
             <value>0 0 15 ? * THU</value>
-            <!-- 每周日执行一次 -->
+         
         </property>
     </bean>
+    -->
     <!-- 每周一 2点清订餐缓存 -->   
     
     
@@ -332,6 +342,7 @@
     </bean>
 
     <!-- 项目服务过期状态更新 -->
+    <!--
     <bean id="updateServiceProjectExpire"
           class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
         <property name="targetObject" ref="updateServiceProjectExpireTask"/>
@@ -342,14 +353,14 @@
         <property name="jobDetail" ref="updateServiceProjectExpire"/>
         <property name="cronExpression">
             <value>0 0 0 * * ? *</value>
-            <!-- 每天0点执行任务调度 -->
         </property>
     </bean>
-
+    -->
 	
 	
 
     <!-- 保存微信端服务模块用户活跃量 -->
+    <!--
     <bean id="moduleUserCountExpire"
           class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
         <property name="targetObject" ref="moduleUserCountTask"/>
@@ -359,12 +370,13 @@
     <bean id="moduleUserCountExpireTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
         <property name="jobDetail" ref="moduleUserCountExpire"/>
         <property name="cronExpression">
-            <value>0 0/10 * * * ? *</value><!-- 每十分钟执行一次 -->
+            <value>0 0/10 * * * ? *</value>
         </property>
     </bean>
-
+    -->
 
     <!--定时每分钟执行获取飞亚达订餐的订餐数据-->
+    <!--
     <bean id="orderDinnerGetOrderInfoTimer"
           class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
         <property name="targetObject" ref="orderDinnerGetOrderInfoTask"/>
@@ -374,9 +386,9 @@
         <property name="jobDetail" ref="orderDinnerGetOrderInfoTimer"/>
         <property name="cronExpression">
             <value>0 40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59 16 * * ?</value>
-            <!-- 从16点40开始执行,每1分钟执行一次,只执行到16点59 -->
         </property>
     </bean>
+    -->
 
     <!-- quartz的调度工厂 调度工厂只能有一个,多个调度任务在list中添加 -->
     <bean class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
@@ -387,11 +399,13 @@
                 <ref local="updateAccessTokenWithOuterUrlTrigger"/>
                 <ref local="updateCookieStoreTrigger"/>
                 <ref local="updateSignContractTrigger"/>
-                <ref local="updateWxUserInfoTrigger"/>
+               <!-- <ref local="updateWxUserInfoTrigger"/> -->
                 <ref local="executeSendAnnoTrigger"/>
-                <ref local="updateServiceProjectExpireTrigger"/>
+               <!--
+                <ref local="updateServiceProjectExpireTrigger"/> -->
                 <ref local="airConditionerAddTimeTrigger"/>
                 <ref local="airConditionerOrderTrigger"/>
+               <!--
                 <ref local="orderDinnerDatePushTrigger"/>
                 <ref local="orderDinnerPushMessageTrigger"/>
                 <ref local="orderDinnerPushTrigger"/>
@@ -400,9 +414,10 @@
                 <ref local="dinnerTransferAccountsTrigger"/>
                 <ref local="orderDinnerRechargeTrigger"/>
                 <ref local="dinnerMealTrigger"/>
+               -->
                 <ref local="cleanRedisTrigger"/>
-                <ref local="moduleUserCountExpireTrigger"/>
-                <ref local="orderDinnerGetOrderInfoTrigger"/>
+               <!--  <ref local="moduleUserCountExpireTrigger"/> 
+                <ref local="orderDinnerGetOrderInfoTrigger"/>  -->
                 <ref local="snycKoalaPassLogTaskTrigger"/>
 				<ref local="repairAutomaticHighPraiseTrigger"/>
                 <!-- <ref local="repairGrabBillPushTrigger" />
@@ -411,4 +426,4 @@
             </list>
         </property>
     </bean>
-</beans>
+</beans>

+ 8 - 8
src/main/java/com/palmnest/webapp/controller/wechat/VisitorUserInfoController.java

@@ -346,10 +346,10 @@ public class VisitorUserInfoController extends BaseFormController {
 			}
 		}
 
-		WxPublicno wxPublicno = publicNoManager.getByDevelopId(wxUser.getDevelopId());
-		if (wxPublicno == null) {
-			return null;
-		}
+//		WxPublicno wxPublicno = publicNoManager.getByDevelopId(wxUser.getDevelopId());
+//		if (wxPublicno == null) {
+//			return null;
+//		}
 		model.addAttribute("openId", openId);
 		model.addAttribute("orgId", wxUser.getOrganizationId());
 		model.addAttribute("developId", wxUser.getDevelopId());
@@ -403,10 +403,10 @@ public class VisitorUserInfoController extends BaseFormController {
 			}
 		}
 
-		WxPublicno wxPublicno = publicNoManager.getByDevelopId(wxUser.getDevelopId());
-		if (wxPublicno == null) {
-			return null;
-		}
+//		WxPublicno wxPublicno = publicNoManager.getByDevelopId(wxUser.getDevelopId());
+//		if (wxPublicno == null) {
+//			return null;
+//		}
 		model.put("openId", openId);
 		model.put("orgId", wxUser.getOrganizationId());
 		model.put("developId", wxUser.getDevelopId());