package com.fjhx.mapper.contract;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fjhx.entity.contract.Contract;
import com.fjhx.params.contract.AdjustInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 采购合同 Mapper 接口
 * </p>
 *
 * @author ${author}
 * @since 2022-09-19
 */
public interface ContractMapper extends BaseMapper<Contract> {

    List<Map<String, Object>> amountStatistics(@Param("ew") QueryWrapper<Object> wrapper);

    Page<Map<String, Object>> getPage(@Param("page") Page<Object> page, @Param("ew") QueryWrapper<Object> wrapper);

    List<Map<String, Object>> getList(@Param("ew") QueryWrapper<Object> wrapper);

    AdjustInfo getAdjustInfo(@Param("qualityTestingId") Long qualityTestingId);

}
