haungfuli 2 years ago
parent
commit
3e2f4fda79

+ 2 - 2
winsea-haixin-plugin-wangluohuoyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/service/impl/PublishTaskInfoServiceImpl.java

@@ -71,10 +71,10 @@ public class PublishTaskInfoServiceImpl extends ServiceImpl<PublishTaskInfoMappe
 
 
     /**
-     * 每天0点更新
+     * 每天23点59分更新
      */
     @Transactional
-    @Scheduled(cron = "0 0 0 * * ?")
+    @Scheduled(cron = "0 59 23 * * ?")
     public void rushTime() {
 
         //获取当前年月日

+ 1 - 1
winsea-haixin-plugin-wangluohuoyun/src/main/resources/mapper/NewsInfoMapper.xml

@@ -30,7 +30,7 @@
         FROM hy_news_info
         WHERE delete_flag = '0'
         AND re_common_id = #{commonId}
-        ORDER BY news_flag asc ,create_date DESC
+        ORDER BY create_date DESC
         <if test="currentPage != null and currentPage != ''">
             LIMIT ${startRecord}, ${pageSize}
         </if>