| | |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.jeecg.modules.mdc.util.DateUtils; |
| | | import org.jeecg.modules.mdcJc.entity.ClassMonthlyschedule; |
| | | import org.jeecg.modules.mdcJc.entity.MdcClassMonthlyschedule; |
| | | import org.jeecg.modules.mdcJc.entity.MdcQualityMonth; |
| | | import org.jeecg.modules.mdcJc.entity.QualityMonth; |
| | | import org.jeecg.modules.mdcJc.mapper.MdcQualityMonthMapper; |
| | | import org.jeecg.modules.mdcJc.service.IClassMonthlyscheduleService; |
| | | import org.jeecg.modules.mdcJc.service.IClassMonthlyScheduleService; |
| | | import org.jeecg.modules.mdcJc.service.IMdcQualityMonthService; |
| | | import org.jeecg.modules.utils.BeanMapper; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | public class MdcQualityMonthServiceImpl extends ServiceImpl<MdcQualityMonthMapper,MdcQualityMonth> implements IMdcQualityMonthService { |
| | | |
| | | @Autowired |
| | | private IClassMonthlyscheduleService classMonthlyscheduleService; |
| | | private IClassMonthlyScheduleService classMonthlyScheduleService; |
| | | |
| | | @Override |
| | | public boolean saveQualityMonth() { |
| | | String date = DateUtils.format(DateUtils.getNow(),DateUtils.STR_YEAR_MONTH); |
| | | List<QualityMonth> list = classMonthlyscheduleService.findListQualityMonth(date); |
| | | List<QualityMonth> list = classMonthlyScheduleService.findListQualityMonth(date); |
| | | if (list == null || list.isEmpty()) { |
| | | return true; |
| | | } |