package com.template.services.impl; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.template.mapper.ClassScheduleMapper; import com.template.model.pojo.ClassSchedule; import com.template.model.vo.ClassListVo; import com.template.services.ClassScheduleService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.time.LocalDate; import java.util.Collections; import java.util.List; /** *

* 服务实现类 *

* * @author ceshi * @since 2023-11-06 */ @Service public class ClassScheduleServiceImpl extends ServiceImpl implements ClassScheduleService { @Autowired ClassScheduleMapper classScheduleMapper; @Override public ClassListVo classList(LocalDate dateTime, String teacherName,String jsgh) { List list = classScheduleMapper.listVo(teacherName,jsgh,dateTime); ClassListVo classListVo = new ClassListVo(); classListVo.setList(list); String remarks=classScheduleMapper.remarks(dateTime,teacherName,jsgh); classListVo.setRemarks(remarks); return classListVo; } @Override public int removeByRemark(String remark) { return classScheduleMapper.removeByRemark(remark); } /** * @param stateTime * @param endTime * @param teacherName * @param jsgh * @return */ @Override public List listByTime(String stateTime, String endTime, String teacherName, String jsgh) { return classScheduleMapper.listByTime(stateTime,endTime,teacherName,jsgh); } }