Lius
2024-12-31 c8673cbde4538b109e43042dc93cf33c46dca37e
lxzn-module-mdc/src/main/java/org/jeecg/modules/mdcJc/service/impl/MdcQualityMonthServiceImpl.java
@@ -2,12 +2,10 @@
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;
@@ -24,12 +22,12 @@
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;
        }