CustomerMapper.java 1.44 KB
package cn.fw.valhalla.dao.mapper;

import cn.fw.valhalla.domain.db.customer.Customer;
import cn.fw.valhalla.domain.dto.CustomerDetailDto;
import cn.fw.valhalla.domain.dto.StammkundeAnalyseDTO;
import cn.fw.valhalla.domain.query.CustomCustomerQuery;
import cn.fw.valhalla.domain.query.CustomerQueryVO;
import cn.fw.valhalla.domain.query.StammkundeAnalyseQueryVO;
import cn.fw.valhalla.domain.vo.customer.CustomerListVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author : kurisu
 * @className : CustomerMapper
 * @description : 车辆档案信息
 * @date: 2020-08-11 16:57
 */
@Repository
public interface CustomerMapper extends BaseMapper<Customer> {
    /**
     * app分页查询
     *
     * @param startIndex
     * @param pageSize
     * @param queryVO
     * @return
     */
    List<CustomerListVO> getAppPageList(@Param("startIndex") Integer startIndex, @Param("pageSize") Integer pageSize, @Param("condition") CustomerQueryVO queryVO);

    /**
     * 查询指定条件的客户
     *
     * @param queryVO
     * @return
     */
    List<StammkundeAnalyseDTO> analyseList(@Param("condition") StammkundeAnalyseQueryVO queryVO);

    /**
     * 查询自定义参数的档案信息
     *
     * @param query
     * @return
     */
    List<CustomerDetailDto> queryCustomList(@Param("condition") CustomCustomerQuery query);
}