CeDo
2021-04-15 ae30ebfc3e4a38aed0d91a42da4a1544dbd87ba3
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComActDynUserDAO.java
@@ -13,6 +13,6 @@
 **/
@Mapper
public interface ComActDynUserDAO extends BaseMapper<ComActDynUserDO> {
    @Update("update com_act_dyn set is_topping=(if(DATEDIFF(SYSDATE(),publish_at)>5,0,1)) WHERE is_topping=1")
    @Update("update com_act_dyn set is_topping=0  WHERE is_topping=1 and TIMESTAMPDIFF(MINUTE, publish_at, SYSDATE())>=5*24*60")
    int timedTaskDynIstopping();
}