package com.panzhihua.service_community.service.impl; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.panzhihua.common.model.dtos.property.CommonPage; import com.panzhihua.common.model.vos.R; import com.panzhihua.service_community.entity.ComActSocialProjectSchedule; import com.panzhihua.service_community.dao.ComActSocialProjectScheduleDao; import com.panzhihua.service_community.service.ComActSocialProjectScheduleService; import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Service; import javax.annotation.Resource; /** * 项目进度表(ComActSocialProjectSchedule)表服务实现类 * * @author makejava * @since 2021-12-23 14:31:16 */ @Slf4j @Service public class ComActSocialProjectScheduleServiceImpl extends ServiceImpl implements ComActSocialProjectScheduleService { @Resource private ComActSocialProjectScheduleDao comActSocialProjectScheduleDao; @Override public R pageList(CommonPage commonPage) { return R.ok(comActSocialProjectScheduleDao.selectList(new QueryWrapper().lambda().eq(ComActSocialProjectSchedule::getProjectId,commonPage.getParamId()).orderByDesc(ComActSocialProjectSchedule::getCreateTime))); } }