package com.doumee.service.business; 
 | 
  
 | 
import com.doumee.dao.business.vo.RetentionCarsVO; 
 | 
import com.doumee.service.business.third.model.PageData; 
 | 
import com.doumee.service.business.third.model.PageWrap; 
 | 
import com.doumee.dao.business.model.Retention; 
 | 
import com.doumee.dao.business.vo.RetentionVo; 
 | 
  
 | 
import java.util.List; 
 | 
  
 | 
/** 
 | 
 * 在厂人员信息 表(滞留)Service定义 
 | 
 * @author 江蹄蹄 
 | 
 * @date 2023/11/30 15:33 
 | 
 */ 
 | 
public interface RetentionService { 
 | 
  
 | 
    /** 
 | 
     * 创建 
 | 
     * 
 | 
     * @param retention 实体对象 
 | 
     * @return Integer 
 | 
     */ 
 | 
    Integer create(Retention retention); 
 | 
  
 | 
    /** 
 | 
     * 主键删除 
 | 
     * 
 | 
     * @param id 主键 
 | 
     */ 
 | 
    void deleteById(Integer id); 
 | 
  
 | 
    /** 
 | 
     * 删除 
 | 
     * 
 | 
     * @param retention 实体对象 
 | 
     */ 
 | 
    void delete(Retention retention); 
 | 
  
 | 
    /** 
 | 
     * 批量主键删除 
 | 
     * 
 | 
     * @param ids 主键集 
 | 
     */ 
 | 
    void deleteByIdInBatch(List<Integer> ids); 
 | 
  
 | 
    /** 
 | 
     * 主键更新 
 | 
     * 
 | 
     * @param retention 实体对象 
 | 
     */ 
 | 
    void updateById(Retention retention); 
 | 
  
 | 
    /** 
 | 
     * 批量主键更新 
 | 
     * 
 | 
     * @param retentions 实体集 
 | 
     */ 
 | 
    void updateByIdInBatch(List<Retention> retentions); 
 | 
  
 | 
    /** 
 | 
     * 主键查询 
 | 
     * 
 | 
     * @param id 主键 
 | 
     * @return Retention 
 | 
     */ 
 | 
    Retention findById(Integer id); 
 | 
  
 | 
    /** 
 | 
     * 条件查询单条记录 
 | 
     * 
 | 
     * @param retention 实体对象 
 | 
     * @return Retention 
 | 
     */ 
 | 
    Retention findOne(Retention retention); 
 | 
  
 | 
    /** 
 | 
     * 条件查询 
 | 
     * 
 | 
     * @param retention 实体对象 
 | 
     * @return List<Retention> 
 | 
     */ 
 | 
    List<Retention> findList(Retention retention); 
 | 
  
 | 
    /** 
 | 
     * 分页查询 
 | 
     * 
 | 
     * @param pageWrap 分页对象 
 | 
     * @return PageData<Retention> 
 | 
     */ 
 | 
    PageData<Retention> findPage(PageWrap<Retention> pageWrap); 
 | 
  
 | 
    /** 
 | 
     * 条件统计 
 | 
     * 
 | 
     * @param retention 实体对象 
 | 
     * @return long 
 | 
     */ 
 | 
    long count(Retention retention); 
 | 
  
 | 
    /** 
 | 
     * 关联表分页查询 
 | 
     * @param pageWrap 
 | 
     * @return 
 | 
     */ 
 | 
    PageData<Retention> findTrainTimePage(PageWrap<Retention> pageWrap); 
 | 
  
 | 
    /** 
 | 
     * 导出 
 | 
     * 
 | 
     * @param pageWrap 分页对象 
 | 
     * @return PageData<RetentionVo> 
 | 
     */ 
 | 
    List<RetentionVo> findPageExcel(PageWrap<Retention> pageWrap); 
 | 
  
 | 
    PageData<RetentionCarsVO> findPageForCars(PageWrap<RetentionCarsVO> pageWrap); 
 | 
} 
 |