郑永安
2023-06-19 7a6abd05683528032687c75e80e0bd2030a3e46c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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<SpecialWorkAppointmentInfo> {
 
    int saveOne(SpecialWorkAppointmentInfo appointmentInfo);
 
    int updateOne(SpecialWorkAppointmentInfo appointmentInfo);
    int updateStatus(@Param("id")Long id, @Param("status")byte status);
 
    int updateStatusByIds(@Param("idList")List<Long> idList, @Param("status")byte status);
    SpecialWorkAppointmentInfo queryById(@Param("id")Long id, @Param("status")byte status);
 
    List<SpecialWorkAppointmentInfo> listByConditions(IPage<SpecialWorkAppointmentInfo> page, @Param("query") SpecialWorkAppointmentQuery query);
 
    List<SpecialWorkAppointmentInfo> listByConditions( @Param("query") SpecialWorkAppointmentQuery query);
 
    List<WorkStatisticsBO> statisticsAppointment( @Param("query")SpecialWorkAppointmentQuery query, @Param("status")byte status);
}