package com.gkhy.safePlatform.specialWork.repository; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.gkhy.safePlatform.specialWork.entity.SpecialWorkAppointmentInfo; import com.gkhy.safePlatform.specialWork.model.bo.WorkStatisticsBO; import com.gkhy.safePlatform.specialWork.model.query.SpecialWorkAppointmentQuery; import org.apache.ibatis.annotations.Param; import org.springframework.stereotype.Repository; import java.util.List; @Repository public interface SpecialWorkAppointmentInfoRepository extends BaseMapper { int saveOne(SpecialWorkAppointmentInfo appointmentInfo); int updateOne(SpecialWorkAppointmentInfo appointmentInfo); int updateStatus(@Param("id")Long id, @Param("status")byte status); int updateStatusByIds(@Param("idList")List idList, @Param("status")byte status); SpecialWorkAppointmentInfo queryById(@Param("id")Long id, @Param("status")byte status); List listByConditions(IPage page, @Param("query") SpecialWorkAppointmentQuery query); List listByConditions( @Param("query") SpecialWorkAppointmentQuery query); List statisticsAppointment( @Param("query")SpecialWorkAppointmentQuery query, @Param("status")byte status); }