huanghongfa
2021-01-07 ae33fef700e5d2558dffb03c8f66358da2545791
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActDynServiceImpl.java
@@ -14,6 +14,7 @@
import com.panzhihua.service_community.model.dos.ComActDynDO;
import com.panzhihua.service_community.model.dos.ComActDynUserDO;
import com.panzhihua.service_community.service.ComActDynService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;
import org.springframework.util.ObjectUtils;
@@ -27,6 +28,7 @@
 * @author: huang.hongfa weixin hhf9596 qq 959656820
 * @create: 2020-12-07 14:29
 **/
@Slf4j
@Service
public class ComActDynServiceImpl extends ServiceImpl<ComActDynDAO, ComActDynDO> implements ComActDynService {
    @Resource
@@ -106,4 +108,18 @@
        }
    }
    /**
     * 定时任务刷新社区动态置顶状态
     *
     * @return 刷新结果
     */
    @Override
    public R timedTaskDynIstopping() {
        int num=comActDynUserDAO.timedTaskDynIstopping();
        if (num>0) {
            log.info("一共维护社区动态数量【{}】",num);
        }
        return R.ok();
    }
}