shiyunteng
2026-05-22 ff225eded880cea74563368c8c18483efc85ab28
platformx-business-finance-biz/src/main/java/com/by4cloud/platformx/business/mapper/ContractMapper.java
@@ -1,13 +1,16 @@
package com.by4cloud.platformx.business.mapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.by4cloud.platformx.business.dto.AnalysisCommonDTO;
import com.by4cloud.platformx.business.dto.CreditSalesQueryDTO;
import com.by4cloud.platformx.business.entity.Contract;
import com.by4cloud.platformx.business.vo.ContractCreditSalesPageVo;
import com.by4cloud.platformx.business.vo.*;
import com.by4cloud.platformx.common.data.datascope.DataScope;
import com.by4cloud.platformx.common.data.datascope.PlatformxBaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
 * @author 28254
@@ -15,4 +18,40 @@
@Mapper
public interface ContractMapper extends PlatformxBaseMapper<Contract> {
    Page<ContractCreditSalesPageVo> pageByCredit(Page page, @Param("queryDTO") CreditSalesQueryDTO queryDTO, DataScope comp_id);
    List<ContractAmountAnalysisVo> contractAmountAnalysis(@Param("queryDTO")AnalysisCommonDTO commonDTO,@Param("compIds")List<Long> compIds);
   List<ContractIncomeAnalysisVo> contractIncomeAnalysis(@Param("queryDTO")AnalysisCommonDTO commonDTO,@Param("compIds")List<Long> compIds);
   void setSession();
   List<ContractIncomeAnalysisCompVo> contractIncomeAnalysisByComp(@Param("queryDTO")AnalysisCommonDTO commonDTO,@Param("compId") Long compId);
   List<ContractIncomeAnalysisAreaVo> contractAmountAnalysisByArea(@Param("queryDTO")AnalysisCommonDTO commonDTO
                                                   ,@Param("compIds")List<Long> compIds,@Param("smjCompId") Long smj,
                                                   @Param("sgbCompId")Long sgb, @Param("jxcCompId")Long jxc,
                                                   @Param("tfCompId") Long tfgs,@Param("ymjCompId") Long ymj);
   List<ContractIncomeAnalysisAreaVo> contractAmountAnalysisByIndustry(@Param("queryDTO")AnalysisCommonDTO commonDTO
         ,@Param("compIds")List<Long> compIds,@Param("smjCompId") Long smj,
                                                      @Param("sgbCompId")Long sgb, @Param("jxcCompId")Long jxc,
                                                      @Param("tfCompId") Long tfgs,@Param("ymjCompId") Long ymj);
   List<ContractIncomeAnalysisAreaVo> contractAmountAnalysisByMarket(@Param("queryDTO")AnalysisCommonDTO commonDTO
         ,@Param("compIds")List<Long> compIds,@Param("smjCompId") Long smj,
                                                     @Param("sgbCompId")Long sgb, @Param("jxcCompId")Long jxc,
                                                     @Param("tfCompId") Long tfgs,@Param("ymjCompId") Long ymj);
   List<ContractIncomeAnalysisAreaVo> contractAmountAnalysisBySpcBus(@Param("queryDTO")AnalysisCommonDTO commonDTO
         ,@Param("compIds")List<Long> compIds,@Param("smjCompId") Long smj,
                                                     @Param("sgbCompId")Long sgb, @Param("jxcCompId")Long jxc,
                                                     @Param("tfCompId") Long tfgs,@Param("ymjCompId") Long ymj);
   List<ContractIncomeAnalysisAreaVo> contractAmountAnalysisByExportBus(@Param("queryDTO")AnalysisCommonDTO commonDTO
         ,@Param("compIds")List<Long> compIds,@Param("smjCompId") Long smj,
                                                       @Param("sgbCompId")Long sgb, @Param("jxcCompId")Long jxc,
                                                       @Param("tfCompId") Long tfgs,@Param("ymjCompId") Long ymj);
   List<ContractAmountAnalysisCompVo> contractAmountAnalysisByComp(@Param("queryDTO")AnalysisCommonDTO commonDTO,@Param("compId") Long compId);
}