package com.yeejoin.amos.boot.module.cylinder.flc.api.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yeejoin.amos.boot.module.cylinder.flc.api.dto.EquipmentInformDto;
import com.yeejoin.amos.boot.module.cylinder.flc.api.entity.EquipmentInform;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 设备告知单 Mapper 接口
 *
 * @author system_generator
 * @date 2021-12-10
 */
public interface EquipmentInformMapper extends BaseMapper<EquipmentInform> {

    Page<List<EquipmentInformDto>> queryDtoList(Page<EquipmentInformDto> page,
                                                @Param("productCode") String productCode,
                                                @Param("productInformDateStart") String productInformDateStart,
                                                @Param("productInformDateEnd") String productInformDateEnd,
                                                @Param("productUnitId") Long productUnitId,
                                                @Param("regionCode") String regionCode,
                                                @Param("address") String address,
                                                @Param("planProductDateStart") String planProductDateStart,
                                                @Param("planProductDateEnd") String planProductDateEnd,
                                                @Param("acceptUnitId") Long acceptUnitId,
                                                @Param("informStatus") String informStatus,
                                                @Param("sortParam") String sortParam,
                                                @Param("sortRule") String sortRule,
                                                @Param("companyId") Long companyId);


    Page<List<EquipmentInformDto>> queryDtoListSub(Page<EquipmentInformDto> page,
                                                   @Param("productCode") String productCode,
                                                   @Param("productInformDateStart") String productInformDateStart,
                                                   @Param("productInformDateEnd") String productInformDateEnd,
                                                   @Param("productUnitId") Long productUnitId,
                                                   @Param("regionCode") String regionCode,
                                                   @Param("address") String address,
                                                   @Param("planProductDateStart") String planProductDateStart,
                                                   @Param("planProductDateEnd") String planProductDateEnd,
                                                   @Param("acceptUnitId") Long acceptUnitId,
                                                   @Param("informStatus") String informStatus,
                                                   @Param("sortParam") String sortParam,
                                                   @Param("sortRule") String sortRule,
                                                   @Param("companyId") Long companyId);

}
